@extends('admin::layouts.app') @section('content')
{{-- @include('admin::partials.title-pad', [ 'title' => __('admin.staffs_availability'), 'search' => $search, 'searchPlaceholder' => __('admin.staffs_availability'), 'create' => '', 'list' => $branchWorkHours, ]) --}}

{{-- --}} @forelse ($branchWorkHours as $branchWorkHour) {{-- --}} @empty

{{ __('admin::message.no_records_found') }}

@endforelse
# WeekdayDateAvailable Slots Availabilty Status Action
{{ $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
@endsection @section('script') @endsection