@extends("layouts.admin.app") @section("page-title") {{__("Dashboard")}} @endSection @section("page-nav-title")
{{__("#ID")}} | {{__("Booking Date")}} | {{__("User Name")}} | {{__("Time From")}} | {{__("Time To")}} | {{__("Status")}} | {{__("Online/Direct")}} | {{__("Cancellation")}} | {{--{{__("Details")}} | --}} {{--{{__("Change Time Slot")}} | --}}
---|---|---|---|---|---|---|---|---|---|
{{$booking->reservation_record_id}} | {{$booking->date}} | @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{{$User->full_name}} | @php $slot_time = App\Models\TimeSlot::where('id',$booking->slot_id)->first(); $mytime = \Carbon\Carbon::now(); $currentDate = $mytime->toDateString(); @endphp {{-- @if($slot_time)--}}{{$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 ? 'عبر الانترنت' : 'مباشر')}} |
|
{{-- @endif--}}
{{-- --}} {{-- --}} {{-- {{__("Details")}}--}} {{-- --}} {{-- | --}} {{--