add shifts column to Location index view
This commit is contained in:
parent
865ffe5e5a
commit
541789ae27
|
@ -33,6 +33,7 @@
|
|||
<th>{{ __('general.name') }}</th>
|
||||
<th>{{ __('general.dect') }}</th>
|
||||
<th>{{ __('location.map_url') }}</th>
|
||||
<th>{{ __('general.shifts') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -51,6 +52,8 @@
|
|||
|
||||
<td>{{ m.iconBool(location.map_url) }}</td>
|
||||
|
||||
<td>{{ m.iconBool(location.shifts.count) }}</td>
|
||||
|
||||
<td>
|
||||
<div class="d-flex ms-auto">
|
||||
|
||||
|
|
|
@ -42,7 +42,10 @@ class LocationsController extends BaseController
|
|||
|
||||
return $this->response->withView(
|
||||
'admin/locations/index',
|
||||
['locations' => $locations, 'is_index' => true]
|
||||
[
|
||||
'locations' => $locations,
|
||||
'is_index' => true,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue