{{-- --}}
{{-- --}}
{{-- @if($users_booking)--}}
@if($dataArray)
@foreach ($dataArray as $booking)
@php
$userName = \App\Models\UserBookings::where('reservation_record_id',$booking->reservation_record_id)->first()
@endphp
@php
$User=\App\Models\User::where('id',$userName->user_id)->first()
@endphp
@php
$slot_time = App\Models\TimeSlot::where('id',$booking->slot_id)->first();
$mytime = \Carbon\Carbon::now();
$currentDate = $mytime->toDateString();
@endphp
{{-- @if($slot_time)--}}
{{-- @endif--}}
{{-- --}}
{{-- --}}
@endforeach
@endif
{{__("#ID")}} |
{{__("Booking Date")}} |
{{__("User Name")}} |
{{__("Time From")}} |
{{__("Time To")}} |
{{__("Status")}} |
{{__("Online/Direct")}} |
{{__("Cancellation")}} | {{__("Details")}} | {{__("Change Time Slot")}} |
{{$booking->reservation_record_id}} |
{{$booking->date}} | {{$User->full_name}} | {{$booking->slot_from}} |
{{$booking->slot_to}} |
{{\Illuminate\Support\Facades\App::getLocale() == 'en' ? ($currentDate <= $booking->date? "Coming" : "Expired") : ($currentDate <= $booking->date? "قادم" : "منتهي")}} |
{{\Illuminate\Support\Facades\App::getLocale() == 'en' ? ($booking->is_online == 1 ? 'Online' : 'Direct') : ($booking->is_online == 1 ? 'عبر الانترنت' : 'مباشر')}} |
| --}}
{{-- --}}
{{-- {{__("Details")}}--}}
{{-- --}}
{{-- | |