File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ public function getRestore($id)
288288 public function show ($ modelId = null )
289289 {
290290 $ this ->authorize ('view ' , AssetModel::class);
291- $ model = AssetModel::withTrashed ()->withCount ( ' assets ' )-> find ($ modelId );
291+ $ model = AssetModel::withTrashed ()->find ($ modelId );
292292
293293 if (isset ($ model ->id )) {
294294 return view ('models/view ' , compact ('model ' ));
Original file line number Diff line number Diff line change 4242 <i class =" fas fa-barcode fa-2x" ></i >
4343 </span >
4444 <span class =" hidden-xs hidden-sm" >
45- {{ trans (' general.assets' ) } }
46- {!! ($model -> assets_count > 0 ) ? ' <badge class="badge badge-secondary">' . number_format ($model -> assets_count ). ' </badge>' : ' ' ! !}
45+ {{ trans (' general.assets' ) } }
46+ {!! ($model -> assets () -> AssetsForShow () -> count () > 0 ) ? ' <badge class="badge badge-secondary">' . number_format ($model -> assets () -> AssetsForShow () -> count () ). ' </badge>' : ' ' ! !}
4747 </span >
4848 </a >
4949 </li >
You can’t perform that action at this time.
0 commit comments