{{-- @include('admin::partials.title-pad', [
'title' => __('admin.staffs_availability'),
'search' => $search,
'searchPlaceholder' => __('admin.staffs_availability'),
'create' => '',
'list' => $branchWorkHours,
]) --}}
| # |
Weekday |
{{-- Date | --}}
Available Slots |
Availabilty Status |
Action |
@forelse ($branchWorkHours as $branchWorkHour)
| {{ $loop->iteration }} |
{{ ucfirst($branchWorkHour->day) }} |
{{--
{{ date('d/m/Y', strtotime($branchWorkHour->date)) }}
| --}}
@if (isset($branchWorkHour->slots) && count($branchWorkHour->slots))
@foreach ($branchWorkHour->slots as $slot)
{{ \App\Helpers\GeneralHelper::convertTimeRangeTo12Hour($slot) }}
@endforeach
@endif
|
@if ($branchWorkHour->status == 'open')
{{ $branchWorkHour->status }}
@else
{{ $branchWorkHour->status }}
@endif
|
@if ($branchWorkHour->status == 'open')
@if (Auth::user()->hasPermission('admin.staff.create-availability'))
@endif
@if (Auth::user()->hasPermission('admin.staff.create-unavailability'))
@endif
@if (Auth::user()->hasPermission('admin.staff.availability-delete'))
@endif
@endif
|
@empty
{{ __('admin::message.no_records_found') }}
@endforelse
@endsection
@section('script')
@endsection