57 lines
2.3 KiB
PHP
57 lines
2.3 KiB
PHP
<div class="table-responsive">
|
|
<table class="fix-action table">
|
|
<thead>
|
|
<tr class="visually-hidden">
|
|
<th scope="col"></th>
|
|
</tr>
|
|
@php
|
|
$cols = [
|
|
'label' => Str::ucfirst(__('validation.custom.attributes.label')),
|
|
'date' => Str::ucfirst(__('validation.attributes.date')),
|
|
'repeatable' => Str::ucfirst(__('validation.custom.attributes.repeatable')),
|
|
'repeat_frequency' => Str::ucfirst(__('validation.custom.attributes.repeat_frequency')),
|
|
];
|
|
@endphp
|
|
@include('bo.modules.tableColSorter', ['cols' => $cols, 'mobileHide' => []])
|
|
</thead>
|
|
<tbody>
|
|
@forelse ($pickupExceptions as $pickupException)
|
|
<tr>
|
|
<td>
|
|
@if ($pickupException->auto_updated)
|
|
<span data-bs-toggle="tooltip" title="{{ __('Updated automatically') }}">
|
|
<i class="fas fa-robot"></i>
|
|
</span>
|
|
@endif
|
|
<span>{{ $pickupException->label }}</span>
|
|
</td>
|
|
<td>{{ Date::forHumansDate($pickupException->date) }}</td>
|
|
<td>{{ $pickupException->repeatable ? __('Yes') : __('No') }}</td>
|
|
<td>{{ $pickupException->repeat_frequency->label() }}</td>
|
|
<td>
|
|
<div class="btn-group">
|
|
@can('update', $pickupException)
|
|
<a class="btn btn-sm btn-primary" href="{{ route('bo.pickup-exceptions.edit', $pickupException) }}"
|
|
title="{{ Str::ucfirst(__('crud.actions.update')) }}"><i class="fa-solid fa-pen"></i></a>
|
|
@endcan
|
|
@can('delete', $pickupException)
|
|
<form class="d-inline confirmDeleteJS" action="{{ route('bo.pickup-exceptions.destroy', $pickupException) }}" method="POST">
|
|
@method('DELETE')
|
|
@csrf
|
|
<button class="btn btn-sm btn-danger rounded-start-0" title="{{ Str::ucfirst(__('crud.actions.delete')) }}"><i
|
|
class="fa-solid fa-trash"></i></button>
|
|
</form>
|
|
@endcan
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td class="text-center" colspan="20">
|
|
<span class="h3">{{ __('crud.helpers.no_results') }}</span>
|
|
</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|