@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.booking_date')}}
{{ date("$datetime->date_format $datetime->time_format", strtotime($bookingdata->date)) ?? '-'}}
{{__('messages.booking_status')}}
{{ App\Models\BookingStatus::bookingStatus($bookingdata->status)}}
{{__('messages.total_amount')}}
{{ getPriceFormat($bookingdata->total_amount) }}
{{__('messages.payment_method')}}
{{ isset($payment) ? ucfirst($payment->payment_type) : '-' }}
{{ __('messages.payment_status') }}
@if(isset($payment) && $payment->payment_status) @php $statusClass = match($payment->payment_status) { 'paid', 'advanced_paid' => 'text-success', 'Advanced Refund' => 'text-warning', default => 'text-danger', }; @endphp{{ str_replace('_', ' ', ucfirst($payment->payment_status)) }}
@else{{ __('messages.pending') }}
@endif{{ __('landingpage.cancel_reason') }}
{{ $bookingdata->reason ?? __('messages.no_reason_provided') }}
{{__('messages.customer')}}
{{ __('messages.provider') }} @if($bookingdata->handymanAdded->isNotEmpty() && $bookingdata->provider->id == optional($bookingdata->handymanAdded->first())->handyman->id) ({{ __('landingpage.as_handyman') }}) @endif
{{__('messages.handyman')}}
{{__('messages.quantity')}} | {{ $bookingdata->quantity }} | |||
{{__('landingpage.service_total_time')}} | @php $formattedDuration = convertToHoursMins($bookingdata->duration_diff) @endphp {{ $formattedDuration }} | |||
{{__('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.subtotal_vat') }} | {{ getPriceFormat($bookingdata->total_amount) ?? 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.pending')}} @endif | @if($payment != null && $payment->payment_status == 'paid') {{ __('messages.paid') }} @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}} |
{{__('messages.title')}} | {{__('messages.price')}} | {{__('messages.quantity')}} | {{__('messages.total_amount')}} |
---|---|---|---|
{{$charge->title}} | {{getPriceFormat($charge->price)}} | {{$charge->qty}} | {{getPriceFormat($charge->price * $charge->qty)}} |
{{__('messages.title')}} | {{__('messages.price')}} | {{__('messages.total_amount')}} |
---|---|---|
{{getPriceFormat($addonservice->price)}} | {{getPriceFormat($addonservice->price)}} |