@extends('admin::layouts.app') @section('content')
@include('admin::partials.title-pad', [ 'title' => __('admin.my_bookings'), 'search' => $search, 'searchPlaceholder' => __('placeholder.search_bookings'), 'filter' => 'admin.bookings.index', 'list' => $orders, ])
{{ __('admin.recent_received_bookings') }}
@forelse($orders as $key => $order) @empty @endforelse
# {{ __('admin.booking_no') }} {{ __('admin.branch_name') }} {{ __('admin.customer_details') }} {{ __('admin.time_slot') }} {{ __('admin.service') }} {{ __('admin.type') }} {{ __('admin.amount') }} {{ __('admin.address') }} {{ __('admin.status') }} {{ __('admin.action') }}
{{ $key + 1 }} {{ $order->order_no }} {{ @$order->branch->name_en }} {{ isset($order->user->name) ? $order->user->name : '' }}
{{ isset($order->user->mobileCode->dial_code) ? $order->user->mobileCode->dial_code : '' }} {{ isset($order->user->mobile_number) ? $order->user->mobile_number : '' }}
{{ isset($order->date) ? Modules\Admin\Helpers\GeneralHelper::dateFormat($order->date) : '-' }}
{{ date('h:i A', strtotime($order->start_time)) }} to {{ date('h:i A', strtotime($order->end_time)) }}
@forelse ($order->services as $service) {{ isset($service->name_en) ? ucfirst($service->name_en) : '' }} @empty NA @endforelse {{ !empty($order->serviceType->service_en) ? $order->serviceType->service_en : '' }} {{ 'EGP ' . $order->payable_amount }} {{ $order->address }} {{ __( 'static.'.$order->status) }}

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

{{-- Pagination --}} {{ $orders->appends(request()->input())->links('admin::partials.pagination') }} {{-- Pagination End --}}
{{-- booking filter modal start --}} @include('admin::partials.modals.booking-filter') {{-- booking filter modal end --}} {{-- booking reject modal start --}} @if (Auth::user()->hasPermission('admin.bookings.rejected')) @endif {{-- booking reject modal end --}} {{-- reschedule --}} @if (Auth::user()->hasPermission('admin.bookings.reschedule')) @endif @if (Auth::user()->hasPermission('admin.bookings.staffs')) @endif @endsection @section('script') @endsection