{{ Form::hidden('id',$bookingdata->id) }} @php $extraValue = 0; $attachments = optional($bookingdata->service)->getMedia('service_attachment'); if(!$attachments->isEmpty()){ $image = $attachments[0]->getFullUrl(); } else { $image = getSingleMedia(optional($bookingdata->service),'service_attachment'); } $status = App\Models\BookingStatus::where('status',1)->orderBy('sequence','ASC')->get()->pluck('label', 'value'); @endphp

{{__('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')}} :
{{optional($bookingdata->payment)->payment_status}}
{{__('messages.booking_date')}} :
{{ $bookingdata->date ?? '-'}}

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

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

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

{{optional($bookingdata->provider)->display_name ?? '-'}}
  • {{__('messages.phone_information')}}

    {{ optional($bookingdata->provider)->contact_number ?? '-' }}

  • {{__('messages.address')}}

    {{ optional($bookingdata->provider)->address ?? '-' }}

  • @if (!empty($bookingdata->service)) @php $service = $bookingdata->service; @endphp
  • {{__('messages.price_type')}}

    {{ !empty($service->priceType) ? $service->priceType['name'] : "-" }}

  • {{__('messages.area')}}

    {{ checkEmpty($service, 'area') }}

  • {{__('messages.price')}}

    {{ checkEmpty($service, 'price', 0) }}

  • @if ($service->is_enable_advance_payment == true)
  • {{__('messages.advance_payment')}}

    {{ checkEmpty($service, 'advance_payment_amount', 0) }} %

  • @endif
  • {{__('messages.tax')}}

    {{ checkEmpty($service, 'tax', 0) }}

  • {{__('messages.transport_facility')}}

    {{ $service->with_transport == 0 ? 'Without Transport' : 'With Transport' }}

  • {{__('messages.site_visit')}}

    {{ checkEmpty($service, 'site_visit') }}

  • {{__('messages.charged_price')}}

    {{ checkEmpty($service, 'charged_price', 0) }}

  • @endif
@if(count($bookingdata->handymanAdded) > 0) @foreach($bookingdata->handymanAdded as $booking)

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

{{optional($booking->handyman)->display_name ?? '-'}}
@endforeach @else

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

-
  • {{__('messages.phone_information')}}

    -

  • {{__('messages.address')}}

    -

@endif
@if($bookingdata->bookingExtraCharge->count() > 0 )

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

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

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

@php if($bookingdata->service->type === 'fixed'){ $sub_total = ($bookingdata->amount) * ($bookingdata->quantity); }else{ $sub_total = $bookingdata->amount; } @endphp
{{__('messages.service')}} {{__('messages.price')}} {{__('messages.quantity')}} {{__('messages.discount')}} {{__('messages.sub_total')}}
{{ isset($bookingdata->amount) ? getPriceFormat($bookingdata->amount) : 0 }} {{!empty($bookingdata->quantity) ? $bookingdata->quantity : 0}} {{!empty($bookingdata->discount) ? $bookingdata->discount : 0}}%{{!empty($sub_total) ? getPriceFormat($sub_total) : 0}}
@php $sub_total = $bookingdata->amount; @endphp @php $discount = ''; if($bookingdata->couponAdded != null){ $discount = optional($bookingdata->couponAdded)->discount ?? '-'; $discount_type = optional($bookingdata->couponAdded)->discount_type ?? 'fixed'; $discount = (float)$discount; if($discount_type == 'percentage'){ $discount = $discount .'%'; } } @endphp @if($bookingdata->bookingExtraCharge->count() > 0 ) @endif @php $coupon_discount = $sub_total * (float)$discount / 100; $discount = $bookingdata->amount * $bookingdata->discount / 100; if(!empty($bookingdata->tax)){ $taxes = json_decode($bookingdata->tax); if (gettype($taxes) === 'string') { $taxes = json_decode($taxes); } foreach($taxes as $key => $value){ if($value->type === 'percent'){ $tax = $value->value; $tax_per = ($sub_total - ($coupon_discount + $discount)) * $tax / 100; }else{ $tax_fix = $value->value; } } $tax_amount = $tax_per ?? 0 + $tax_fix ?? 0; }else{ $tax_amount =0; } $total_amount = ($sub_total - ($coupon_discount + $discount) + $tax_amount); @endphp
{{__('messages.subtotal_vat')}}{{!empty($sub_total) ? getPriceFormat($sub_total) : 0}}
{{__('messages.discount')}} (-) {{!empty($bookingdata->discount) ? $bookingdata->discount : 0}}%
{{__('messages.coupon')}} (-){{ optional($bookingdata->couponAdded)->code ?? '0' }}{{ $discount }}%
{{__('messages.extra_charge')}} (+) {{getPriceFormat($extraValue)}}
{{__('messages.tax')}}{{!empty($tax_amount) ? getPriceFormat($tax_amount) : 0}}
{{__('messages.grand_total')}}

{{!empty($total_amount) ? getPriceFormat($total_amount + $extraValue) : 0}}