@if(!isset($data->bookingPackage)) booking @else @php $media = optional(optional($data->bookingPackage)->package)->getFirstMedia('package_attachment'); $url = $media ? $media->getUrl() : asset('images/default.png'); @endphp booking @endif
@if(!isset($data->bookingPackage)) #{{$data->id}} {{$servicename ?? '-'}} @else #{{$data->id}} {{$servicepackagename ?? '-'}} @endif
@php $rating = round($total_rating, 1); @endphp @foreach(range(1,5) as $i) @if($rating >0) @if($rating >0.5) @else @endif @endif @php $rating--; @endphp @endforeach
({{ round($total_rating,1) }})
@php $sitesetup = App\Models\Setting::where('type','site-setup')->where('key', 'site-setup')->first(); $datetime = $sitesetup ? json_decode($sitesetup->value) : null; @endphp {{date("$datetime->date_format $datetime->time_format", strtotime($data->date))}}
{{__('landingpage.booking_detail')}}
  • {{__('landingpage.location')}}: {{$data->address}}
  • {{__('landingpage.provider')}}: {{($data->provider)->display_name}}
  • {{__('messages.status')}}: {{str_replace("_"," ",$data->status) ?? '-'}}
@if($data->total_amount > 0)
{{__('landingpage.payment_detail')}}
  • {{__('landingpage.total')}}: {{getPriceFormat($data->total_amount)}}
  • {{__('messages.method')}}: {{ $payment->payment_type ?? '-' }}
  • {{ __('messages.status') }}: @if(!empty($payment)) @if($payment->payment_type === 'cash' && $payment->payment_status === 'pending') {{ __('landingpage.pending_approval') }} @else {{ str_replace("_", " ", $payment->payment_status) ?? '-' }} @endif @else {{ __('landingpage.pending') }} @endif
@endif
@if($data->status == 'cancelled' && $refund_amount > 0 )
{{ __('messages.refund_successfully') }}: {{ getPriceFormat($refund_amount) }}
@endif