Add asset transaction (movement, disposal, reverse) with UI and seeding
This commit is contained in:
@@ -61,7 +61,12 @@ class AssetController extends Controller
|
||||
|
||||
public function show(Asset $asset): View
|
||||
{
|
||||
$asset->load(['status','class','category','unit','department','personInCharge','user','location','warranty']);
|
||||
$asset->load([
|
||||
'status','class','category','unit','department',
|
||||
'personInCharge','user','location','warranty',
|
||||
'movements.fromLocation','movements.toLocation','movements.fromDepartment','movements.toDepartment',
|
||||
'disposals',
|
||||
]);
|
||||
|
||||
return view('assets.show', compact('asset'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user