diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.php
index e000ed5c28..c6aa083bf5 100644
--- a/resources/views/locations/view.blade.php
+++ b/resources/views/locations/view.blade.php
@@ -25,7 +25,7 @@
{{ trans('general.users') }}
- {!! (($location->users) && ($location->users->count() > 0 )) ? ''.number_format($location->users->count()).'' : '' !!}
+ {!! ($location->users->count() > 0 ) ? ''.number_format($location->users->count()).'' : '' !!}
@@ -38,7 +38,7 @@
{{ trans('admin/locations/message.current_location') }}
- {!! (($location->assets) && ($location->assets()->AssetsForShow()->count() > 0 )) ? ''.number_format($location->assets()->AssetsForShow()->count()).'' : '' !!}
+ {!! ($location->assets()->AssetsForShow()->count() > 0 ) ? ''.number_format($location->assets()->AssetsForShow()->count()).'' : '' !!}
@@ -51,7 +51,7 @@
{{ trans('admin/hardware/form.default_location') }}
- {!! (($location->rtd_assets) && ($location->rtd_assets()->AssetsForShow()->count() > 0 )) ? ''.number_format($location->rtd_assets()->AssetsForShow()->count()).'' : '' !!}
+ {!! ($location->rtd_assets()->AssetsForShow()->count() > 0 ) ? ''.number_format($location->rtd_assets()->AssetsForShow()->count()).'' : '' !!}
@@ -63,7 +63,7 @@
{{ trans('admin/locations/message.assigned_assets') }}
- {!! (($location->rtd_assets) && ($location->assignedAssets()->AssetsForShow()->count() > 0 )) ? ''.number_format($location->assignedAssets()->AssetsForShow()->count()).'' : '' !!}
+ {!! ($location->assignedAssets()->AssetsForShow()->count() > 0 ) ? ''.number_format($location->assignedAssets()->AssetsForShow()->count()).'' : '' !!}
@@ -76,7 +76,7 @@
{{ trans('general.accessories') }}
- {!! (($location->accessories) && ($location->accessories->count() > 0 )) ? ''.number_format($location->accessories->count()).'' : '' !!}
+ {!! ($location->accessories->count() > 0 ) ? ''.number_format($location->accessories->count()).'' : '' !!}
@@ -88,7 +88,7 @@
{{ trans('general.consumables') }}
- {!! (($location->consumables) && ($location->consumables->count() > 0 )) ? ''.number_format($location->consumables->count()).'' : '' !!}
+ {!! ($location->consumables->count() > 0 ) ? ''.number_format($location->consumables->count()).'' : '' !!}
@@ -100,7 +100,7 @@
{{ trans('general.components') }}
- {!! (($location->components) && ($location->components->count() > 0 )) ? ''.number_format($location->components->count()).'' : '' !!}
+ {!! ($location->components->count() > 0 ) ? ''.number_format($location->components->count()).'' : '' !!}
diff --git a/resources/views/manufacturers/view.blade.php b/resources/views/manufacturers/view.blade.php
index 3872801a69..5e7bccc633 100644
--- a/resources/views/manufacturers/view.blade.php
+++ b/resources/views/manufacturers/view.blade.php
@@ -41,7 +41,7 @@
{{ trans('general.assets') }}
- {!! (($manufacturer->assets) && ($manufacturer->assets()->AssetsForShow()->count() > 0 )) ? ''.number_format($manufacturer->assets()->AssetsForShow()->count()).'' : '' !!}
+ {!! ($manufacturer->assets()->AssetsForShow()->count() > 0 ) ? ''.number_format($manufacturer->assets()->AssetsForShow()->count()).'' : '' !!}
@@ -55,7 +55,7 @@
{{ trans('general.licenses') }}
- {!! (($manufacturer->licenses) && ($manufacturer->licenses->count() > 0 )) ? ''.number_format($manufacturer->licenses->count()).'' : '' !!}
+ {!! ($manufacturer->licenses->count() > 0 ) ? ''.number_format($manufacturer->licenses->count()).'' : '' !!}
@@ -68,7 +68,7 @@
{{ trans('general.accessories') }}
- {!! (($manufacturer->accessories) && ($manufacturer->accessories->count() > 0 )) ? ''.number_format($manufacturer->accessories->count()).'' : '' !!}
+ {!! ($manufacturer->accessories->count() > 0 ) ? ''.number_format($manufacturer->accessories->count()).'' : '' !!}
@@ -81,7 +81,7 @@
{{ trans('general.consumables') }}
- {!! (($manufacturer->consumables) && ($manufacturer->consumables->count() > 0 )) ? ''.number_format($manufacturer->consumables->count()).'' : '' !!}
+ {!! ($manufacturer->consumables->count() > 0 ) ? ''.number_format($manufacturer->consumables->count()).'' : '' !!}
diff --git a/resources/views/models/view.blade.php b/resources/views/models/view.blade.php
index a98e14b4ee..fea13dd607 100755
--- a/resources/views/models/view.blade.php
+++ b/resources/views/models/view.blade.php
@@ -43,7 +43,7 @@
{{ trans('general.assets') }}
- {!! (($model->assets_count) && ($model->assets_count > 0 )) ? ''.number_format($model->assets_count).'' : '' !!}
+ {!! ($model->assets_count > 0 ) ? ''.number_format($model->assets_count).'' : '' !!}
diff --git a/resources/views/suppliers/view.blade.php b/resources/views/suppliers/view.blade.php
index 4edfda1885..a0dea958e6 100755
--- a/resources/views/suppliers/view.blade.php
+++ b/resources/views/suppliers/view.blade.php
@@ -35,7 +35,7 @@
{{ trans('general.assets') }}
- {!! (($supplier->assets) && ($supplier->assets()->AssetsForShow()->count() > 0 )) ? ''.number_format($supplier->assets()->AssetsForShow()->count()).'' : '' !!}
+ {!! ($supplier->assets()->AssetsForShow()->count() > 0 ) ? ''.number_format($supplier->assets()->AssetsForShow()->count()).'' : '' !!}
@@ -48,7 +48,7 @@
{{ trans('general.accessories') }}
- {!! (($supplier->accessories) && ($supplier->accessories->count() > 0 )) ? ''.number_format($supplier->accessories->count()).'' : '' !!}
+ {!! ($supplier->accessories->count() > 0 ) ? ''.number_format($supplier->accessories->count()).'' : '' !!}
@@ -60,7 +60,7 @@
{{ trans('general.licenses') }}
- {!! (($supplier->licenses) && ($supplier->licenses->count() > 0 )) ? ''.number_format($supplier->licenses->count()).'' : '' !!}
+ {!! ($supplier->licenses->count() > 0 ) ? ''.number_format($supplier->licenses->count()).'' : '' !!}
@@ -72,7 +72,7 @@
{{ trans('general.components') }}
- {!! (($supplier->components) && ($supplier->components->count() > 0 )) ? ''.number_format($supplier->components->count()).'' : '' !!}
+ {!! ($supplier->components->count() > 0 ) ? ''.number_format($supplier->components->count()).'' : '' !!}
@@ -84,7 +84,7 @@
{{ trans('general.consumables') }}
- {!! (($supplier->consumables) && ($supplier->consumables->count() > 0 )) ? ''.number_format($supplier->consumables->count()).'' : '' !!}
+ {!! ($supplier->consumables->count() > 0 ) ? ''.number_format($supplier->consumables->count()).'' : '' !!}
@@ -96,7 +96,7 @@
{{ trans('admin/asset_maintenances/general.asset_maintenances') }}
- {!! (($supplier->asset_maintenances) && ($supplier->asset_maintenances->count() > 0 )) ? ''.number_format($supplier->asset_maintenances->count()).'' : '' !!}
+ {!! ($supplier->asset_maintenances->count() > 0 ) ? ''.number_format($supplier->asset_maintenances->count()).'' : '' !!}