2323 <ul class =" nav nav-tabs hidden-print" >
2424
2525 @can (' view' , \App \Models \User:: class )
26- @if ($location -> users -> count () > 0 )
2726 <li class =" active" >
2827 <a href =" #users" data-toggle =" tab" >
29- <i class =" fa-solid fa-house-user" style =" font-size : 17px " aria-hidden =" true" ></i >
28+ <i class =" fa-solid fa-house-user fa-fw " style =" font-size : 17px " aria-hidden =" true" ></i >
3029 <span class =" sr-only" >
3130 {{ trans (' general.users' ) } }
3231 </span >
33- <span class =" badge" >
34- {{ number_format ($location -> users -> count ()) } }
35- </span >
32+ {!! ($location -> users -> count () > 0 ) ? ' <span class="badge">' . number_format ($location -> users -> count ()). ' </span>' : ' ' ! !}
3633 </a >
3734 </li >
38- @endif
3935 @endcan
4036
4137 @can (' view' , \App \Models \Asset:: class )
42- @if ($location -> assets ()-> AssetsForShow ()-> count () > 0 )
4338 <li >
4439 <a href =" #assets" data-toggle =" tab" data-tooltip =" true" title =" {{ trans (' admin/locations/message.current_location' ) } }" >
45- <i class =" fa-solid fa-house-laptop" style =" font-size : 17px " aria-hidden =" true" ></i >
46- <span class =" badge" >
47- {{ number_format ($location -> assets ()-> AssetsForShow ()-> count ()) } }
48- </span >
40+ <i class =" fa-solid fa-house-laptop fa-fw" style =" font-size : 17px " aria-hidden =" true" ></i >
41+ {!! ($location -> assets ()-> AssetsForShow ()-> count () > 0 ) ? ' <span class="badge">' . number_format ($location -> assets ()-> AssetsForShow ()-> count ()). ' </span>' : ' ' ! !}
4942 <span class =" sr-only" >
5043 {{ trans (' admin/locations/message.current_location' ) } }
5144 </span >
5245 </a >
5346 </li >
54- @endif
5547
56- @if ($location -> rtd_assets ()-> AssetsForShow ()-> count () > 0 )
5748 <li >
5849 <a href =" #rtd_assets" data-toggle =" tab" data-tooltip =" true" title =" {{ trans (' admin/hardware/form.default_location' ) } }" >
59- <i class =" fa-solid fa-house-flag" style =" font-size : 17px " aria-hidden =" true" ></i >
60- <span class =" badge" >
61- {{ number_format ($location -> rtd_assets ()-> AssetsForShow ()-> count ()) } }
62- </span >
50+ <i class =" fa-solid fa-house-flag fa-fw" style =" font-size : 17px " aria-hidden =" true" ></i >
51+ {!! ($location -> rtd_assets ()-> AssetsForShow ()-> count () > 0 ) ? ' <span class="badge">' . number_format ($location -> rtd_assets ()-> AssetsForShow ()-> count ()). ' </span>' : ' ' ! !}
6352 <span class =" sr-only" >
6453 {{ trans (' admin/hardware/form.default_location' ) } }
6554 </span >
6655 </a >
6756 </li >
68- @endif
6957
70- @if ($location -> assignedAssets ()-> AssetsForShow ()-> count () > 0 )
7158 <li >
7259 <a href =" #assets_assigned" data-toggle =" tab" data-tooltip =" true" title =" {{ trans (' admin/locations/message.assigned_assets' ) } }" >
73- <i class =" fas fa-barcode" style =" font-size : 17px " aria-hidden =" true" ></i >
74- <span class =" badge" >
75- {{ number_format ($location -> assignedAssets ()-> AssetsForShow ()-> count ()) } }
76- </span >
60+ <i class =" fas fa-barcode fa-fw" style =" font-size : 17px " aria-hidden =" true" ></i >
61+ {!! ($location -> assignedAssets ()-> AssetsForShow ()-> count () > 0 ) ? ' <span class="badge">' . number_format ($location -> assignedAssets ()-> AssetsForShow ()-> count ()). ' </span>' : ' ' ! !}
7762 <span class =" sr-only" >
7863 {{ trans (' admin/locations/message.assigned_assets' ) } }
7964 </span >
8065 </a >
8166 </li >
82- @endif
8367 @endcan
8468
8569 @can (' view' , \App \Models \Accessory:: class )
86- @if ($location -> accessories -> count () > 0 )
8770 <li >
8871 <a href =" #accessories" data-toggle =" tab" data-tooltip =" true" title =" {{ trans (' general.accessories' ) } }" >
89- <i class =" far fa-keyboard" style =" font-size : 17px " aria-hidden =" true" ></i >
90- <span class =" badge" >
91- {{ number_format ($location -> accessories -> count ()) } }
92- </span >
72+ <i class =" far fa-keyboard fa-fw" style =" font-size : 17px " aria-hidden =" true" ></i >
73+ {!! ($location -> accessories -> count () > 0 ) ? ' <span class="badge">' . number_format ($location -> accessories -> count ()). ' </span>' : ' ' ! !}
9374 <span class =" sr-only" >
9475 {{ trans (' general.accessories' ) } }
9576 </span >
9677 </a >
9778 </li >
98- @endif
9979
100- @if ($location -> assignedAccessories -> count () > 0 )
10180 <li >
10281 <a href =" #accessories_assigned" data-toggle =" tab" data-tooltip =" true" title =" {{ trans (' general.accessories_assigned' ) } }" >
103- <i class =" fas fa-keyboard" style =" font-size : 17px " aria-hidden =" true" ></i >
104- <span class =" badge" >
105- {{ number_format ($location -> assignedAccessories -> count ()) } }
106- </span >
82+ <i class =" fas fa-keyboard fa-fw" style =" font-size : 17px " aria-hidden =" true" ></i >
83+ {!! ($location -> assignedAccessories -> count () > 0 ) ? ' <span class="badge">' . number_format ($location -> assignedAccessories -> count ()). ' </span>' : ' ' ! !}
10784 <span class =" sr-only" >
10885 {{ trans (' general.accessories_assigned' ) } }
10986 </span >
11087 </a >
11188 </li >
112- @endif
11389 @endcan
11490
11591
11692 @can (' view' , \App \Models \Consumable:: class )
117- @if ($location -> consumables -> count () > 0 )
11893 <li >
11994 <a href =" #consumables" data-toggle =" tab" data-tooltip =" true" title =" {{ trans (' general.consumables' ) } }" >
120- <i class =" fas fa-tint" style =" font-size : 17px " aria-hidden =" true" ></i >
121- <span class =" badge" >
122- {{ number_format ($location -> consumables -> count ()) } }
123- </span >
95+ <i class =" fas fa-tint fa-fw" style =" font-size : 17px " aria-hidden =" true" ></i >
96+ {!! ($location -> consumables -> count () > 0 ) ? ' <span class="badge">' . number_format ($location -> consumables -> count ()). ' </span>' : ' ' ! !}
12497 <span class =" sr-only" >
12598 {{ trans (' general.consumables' ) } }
12699 </span >
127100 </a >
128101 </li >
129- @endif
130102 @endcan
131103
132104 @can (' view' , \App \Models \Component:: class )
133- @if ($location -> components -> count () > 0 )
134105 <li >
135106 <a href =" #components" data-toggle =" tab" data-tooltip =" true" title =" {{ trans (' general.components' ) } }" >
136- <i class =" fas fa-hdd" style =" font-size : 17px " aria-hidden =" true" ></i >
137- <span class =" badge" >
138- {{ number_format ($location -> components -> count ()) } }
139- </span >
107+ <i class =" fas fa-hdd fa-fw" style =" font-size : 17px " aria-hidden =" true" ></i >
108+ {!! ($location -> components -> count () > 0 ) ? ' <span class="badge">' . number_format ($location -> components -> count ()). ' </span>' : ' ' ! !}
140109 <span class =" sr-only" >
141110 {{ trans (' general.components' ) } }
142111 </span >
143112 </a >
144113 </li >
145- @endif
146114 @endcan
147115
148- @if ($location -> uploads -> count () > 0 )
149116 <li >
150- <a href =" #files" data-toggle =" tab" >
117+ <a href =" #files" data-toggle =" tab" data-tooltip = " true " title = " {{ trans ( ' general.files ' ) } } " >
151118
152119 <span class =" hidden-lg hidden-md" >
153120 <i class =" fas fa-barcode fa-2x" ></i >
154121 </span >
155122 <span class =" hidden-xs hidden-sm" >
156- {{ trans (' general.files' ) } }
157- {!! ($location -> uploads -> count () > 0 ) ? ' <span class="badge badge-secondary">' . number_format ($location -> uploads -> count ()). ' </span>' : ' ' ! !}
123+ <i class =" fa-solid fa-file-contract fa-fw" style =" font-size : 17px " aria-hidden =" true" ></i >
124+ <span class =" sr-only" >
125+ {{ trans (' general.files' ) } }
126+ </span >
127+ {!! ($location -> uploads -> count () > 0 ) ? ' <span class="badge">' . number_format ($location -> uploads -> count ()). ' </span>' : ' ' ! !}
158128 </span >
159129 </a >
160130 </li >
161- @endif
162131
163132 <li >
164- <a href =" #history" data-toggle =" tab" data-toggle = " tab " data- tooltip =" true" title =" {{ trans (' general.history' ) } }" >
165- <i class =" fa-solid fa-clock-rotate-left" style =" font-size : 17px " aria-hidden =" true" ></i >
133+ <a href =" #history" data-toggle =" tab" data-tooltip =" true" title =" {{ trans (' general.history' ) } }" >
134+ <i class =" fa-solid fa-clock-rotate-left fa-fw " style =" font-size : 17px " aria-hidden =" true" ></i >
166135 <span class =" sr-only" >
167136 {{ trans (' general.history' ) } }
168137 </span >
182151
183152 <div class =" tab-content" >
184153 @can (' view' , \App \Models \User:: class )
185- <div id =" users" @class ([' tab-pane' ,' active' => $location -> users -> count () > 0 ] ) >
154+ <div id =" users" @class ([' tab-pane' ,' active' ] ) >
186155 @endcan
187156 <h2 class =" box-title" >{{ trans (' general.users' ) } } </h2 >
188157 @include (' partials.users-bulk-actions' )
@@ -205,7 +174,7 @@ class="table table-striped snipe-table"
205174 }' >
206175 </table >
207176 </div ><!-- /.tab-pane -->
208- <div id =" assets" @class ([' tab-pane' , ' active ' => $location -> users -> count () == 0 ] ) >
177+ <div id =" assets" @class ([' tab-pane' ] ) >
209178
210179 <h2 class =" box-title" >{{ trans (' admin/locations/message.current_location' ) } } </h2 >
211180
0 commit comments