@extends('front') @section('content')
@include('user.partials.sidebar')

{{__('Booking List')}}

@if(count($data['bookingdata']) > 0) @foreach($data['bookingdata'] as $val)
{{ $val->source_name ?? ''}} {{ $val->booking_status_label }}
    @if (!empty($val->service_offer)) @php $service_offer = unserialize($val->service_offer); @endphp
    {{__('Additional Services')}}
      @foreach ($service_offer as $offer) @php [$serviceName, $price] = explode('_', $offer); @endphp
    • {{ $serviceName }} {{ $data['currency'] }}{{ number_format($price, 2) }}
    • @endforeach
    @endif
  • {{__('order_id')}} : {{ $val->order_id ?? '-' }}
  • {{__('Booking Date')}} : {{ $val->bookingdate }} {{ $val->fromtime }} {{ $val->totime }}
  • {{__('Amount')}} : {{ $data['currency'] }}{{ $val->total_amount }} {{ $val->paymenttype }}
  • {{__('Location')}} : {{ $val->user_city }}
  • {{__('Provider')}} :
    @if (isset($val->profile_image) && file_exists(public_path('storage/profile/' .$val->profile_image))) User Profile Image @else Default Profile Image @endif
    {{ $val->provider_name ?? '' }}
    @if($val->booking_status_label=='Open') @if($val->email!='')

    {{($val->email ?? null) ? maskEmail($val->email) : ''}}

    @endif @if($val->phone_number!='')

    {{ ($val->phone_number ?? null) ? mask_mobile_number($val->phone_number) : '' }}

    @endif @else @if($val->email!='')

    {{$val->email ?? ''}}

    @endif @if($val->phone_number!='')

    {{ $val->phone_number ?? '' }}

    @endif @endif
  • @if(!empty($val->coupon_code))
  • {{ __('Coupon Applied') }} : {{ $val->coupon_code }}
  • @endif
{{__('Raise Dispute')}} @if($val->booking_status_label == 'Refund Completed') {{__('View Proof')}} @endif
@if($val->booking_status_label == 'Cancelled' || $val->booking_status_label == 'Provider Cancelled' ) @elseif($val->booking_status_label == 'Completed') @elseif($val->booking_status_label == 'Open') @endif
@endforeach @else

{{__('No Bookings Available')}}

@endif
{{ $data['bookingdata']->links('pagination::bootstrap-4') }}
@endsection