{{ Form::hidden('id',$bookingdata->id) }}

{{__('messages.book_id')}} {{ '#' . $bookingdata->id ?? '-'}}

{{__('messages.book_placed')}} {{ $bookingdata->created_at ?? '-'}}

@if($bookingdata->handymanAdded->count() == 0) @hasanyrole('admin|demo_admin|provider') {{ __('messages.assign') }} @endhasanyrole @endif
@if($bookingdata->payment_id !== null) {{__('messages.invoice')}} @endif

{{__('messages.payment_method')}}

{{__('messages.cash_after')}}

{{__('messages.amount')}} : {{!empty($bookingdata->total_amount) ? getPriceFormat($bookingdata->total_amount): 0}}

{{__('messages.booking_status')}} :
{{ App\Models\BookingStatus::bookingStatus($bookingdata->status)}}
{{__('messages.payment_status')}} :
{{ ucwords(str_replace('_', ' ', optional($bookingdata->payment)->payment_status ?: 'pending'))}}
{{__('messages.booking_date')}} :
{{ $bookingdata->date ?? '-'}}

{{__('messages.customer_information')}}

{{optional($bookingdata->customer)->display_name ?? '-'}}

{{__('messages.provider_information')}}

{{optional($bookingdata->provider)->display_name ?? '-'}}
@if(count($bookingdata->handymanAdded) > 0)
@foreach($bookingdata->handymanAdded as $booking)

{{__('messages.handyman_information')}}

{{optional($booking->handyman)->display_name ?? '-'}}
@endforeach
@endif
@if($bookingdata->bookingExtraCharge->count() > 0 )

{{__('messages.extra_charge')}}

@foreach($bookingdata->bookingExtraCharge as $chrage) @endforeach
{{__('messages.title')}} {{__('messages.price')}} {{__('messages.quantity')}} {{__('messages.total_amount')}}
{{getPriceFormat($chrage->price)}} {{$chrage->qty}} {{getPriceFormat($chrage->price * $chrage->qty)}}
@endif

{{__('messages.booking_summery')}}

{{__('messages.service')}} {{__('messages.price')}} {{__('messages.quantity')}} {{__('messages.sub_total')}}
{{ isset($bookingdata->amount) ? getPriceFormat($bookingdata->amount) : 0 }} {{!empty($bookingdata->quantity) ? $bookingdata->quantity : 0}} {{getPriceFormat($bookingdata->final_total_service_price)}}
@if($bookingdata->bookingPackage == null) @endif @if($bookingdata->couponAdded != null) @endif @if($bookingdata->bookingExtraCharge->count() > 0 ) @endif @if($bookingdata->service->is_enable_advance_payment == 1 ) @endif
{{__('messages.price')}} {{getPriceFormat($bookingdata->service->price)}} * {{$bookingdata->quantity}} = {{getPriceFormat($bookingdata->final_total_service_price)}}
{{__('messages.discount')}} ({{$bookingdata->discount}}% off) -{{getPriceFormat($bookingdata->final_discount_amount)}}
{{__('messages.coupon')}} ({{($bookingdata->couponAdded->code)}}) -{{ getPriceFormat($bookingdata->final_coupon_discount_amount) }}
{{__('messages.subtotal_vat')}} {{getPriceFormat($bookingdata->final_sub_total)}}
{{__('messages.extra_charge')}} +{{getPriceFormat($bookingdata->getExtraChargeValue())}}
{{__('messages.tax')}} {{getPriceFormat($bookingdata->final_total_tax)}}
{{__('messages.grand_total')}}

{{getPriceFormat($bookingdata->total_amount)}}

{{__('messages.advance_payment_amount')}} ({{$bookingdata->service->advance_payment_amount}}%) {{getPriceFormat($bookingdata->advance_paid_amount)}}
{{__('messages.remaining_amount')}} {{getPriceFormat($bookingdata->total_amount - $bookingdata->advance_paid_amount )}}