@php $sitesetup = App\Models\Setting::where('type','site-setup')->where('key', 'site-setup')->first(); $datetime = $sitesetup ? json_decode($sitesetup->value) : null; @endphp {{ html()->hidden('id',$bookingdata->id ?? null) }}
{{__('messages.book_placed')}} {{ date("$datetime->date_format $datetime->time_format", strtotime($bookingdata->created_at)) ?? '-'}}
{{__('messages.amount')}} : {{!empty($bookingdata->total_amount) ? getPriceFormat($bookingdata->total_amount): 0}}
{{ optional($bookingdata->customer)->contact_number ?? '-' }}
{{ optional($bookingdata->customer)->address ?? '-' }}
{{ optional($bookingdata->provider)->contact_number ?? '-' }}
{{ optional($bookingdata->provider)->address ?? '-' }}
{{optional($booking->handyman)->contact_number ?? '-'}}
{{optional($booking->handyman)->address ?? '-'}}
{{__('messages.title')}} | {{__('messages.price')}} | {{__('messages.quantity')}} | {{__('messages.total_amount')}} |
---|---|---|---|
{{getPriceFormat($chrage->price)}} | {{$chrage->qty}} | {{getPriceFormat($chrage->price * $chrage->qty)}} |
{{__('messages.title')}} | {{__('messages.price')}} | {{__('messages.total_amount')}} |
---|---|---|
{{getPriceFormat($addonservice->price)}} | {{getPriceFormat($addonservice->price)}} |
{{__('messages.service')}} | {{__('messages.price')}} | {{__('messages.quantity')}} | {{__('messages.sub_total')}} |
---|---|---|---|
@php $serviceamount = $bookingdata->amount ? $bookingdata->amount : 0; $quantity = $bookingdata->quantity ? $bookingdata->quantity : 1; $amounttotal = $serviceamount * $quantity; @endphp | {{ getPriceFormat($serviceamount) }} | {{ $quantity }} | {{ getPriceFormat($amounttotal) }} |
{{ __('messages.price') }} | @if($bookingdata->service->type == "hourly"){{ getPriceFormat($bookingdata->amount) }} * {{ $bookingdata->quantity }} / hr = {{ getPriceFormat($bookingdata->final_total_service_price) }} | @else{{ getPriceFormat($bookingdata->amount) }} * {{ $bookingdata->quantity }} = {{ getPriceFormat($bookingdata->amount * $bookingdata->quantity) }} | @endif
{{ __('messages.discount') }} ({{ $bookingdata->discount }}% off) | -{{ getPriceFormat($bookingdata->final_discount_amount) }} | |
{{ __('messages.coupon') }} ({{ $bookingdata->couponAdded->code }}) | -{{ getPriceFormat($bookingdata->final_coupon_discount_amount) }} | |
{{ __('messages.extra_charge') }} | +{{ getPriceFormat($extraCharges) }} | |
{{ __('messages.add_ons') }} | +{{ getPriceFormat($addonTotalPrice) }} | |
{{ __('messages.subtotal_vat') }} | {{ getPriceFormat($bookingdata->final_sub_total) ?? 0 }} | |
{{ __('messages.tax') }} | {{ getPriceFormat($bookingdata->final_total_tax) ?? 0 }} | |
{{ __('messages.grand_total') }} |
{{ getPriceFormat($bookingdata->total_amount) ?? 0 }} |
|
{{ __('messages.advance_payment_amount') }} ({{ $bookingdata->service->advance_payment_amount }}%) | {{ getPriceFormat($bookingdata->advance_paid_amount) }} | |
{{ __('messages.remaining_amount') }} @if($payment != null && $payment->payment_status == 'paid') {{ __('messages.paid') }} @else {{ __('messages.pending') }} @endif | @if($payment != null && $payment->payment_status == 'paid') {{ getPriceFormat( ($bookingdata->total_amount - $bookingdata->advance_paid_amount )- $payment->total_amount) }} @else {{ getPriceFormat($bookingdata->total_amount - $bookingdata->advance_paid_amount) }} @endif | |
{{ __('messages.cancellation_charge') }} ({{ $bookingdata->cancellation_charge }}%) | {{getPriceFormat($bookingdata->cancellation_charge_amount) ?? 0}} | |
{{ __('messages.refund_amount') }} | {{getPriceFormat($refundamount) ?? 0}} |