{{ 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_placed')}} {{ $bookingdata->created_at ?? '-'}}
{{__('messages.amount')}} : {{!empty($bookingdata->total_amount) ? getPriceFormat($bookingdata->total_amount): 0}}
{{ optional($bookingdata->customer)->contact_number ?? '-' }}
{{ checkEmpty($bookingdata, 'description') }}
{{ checkEmpty($bookingdata, 'address') }}
{{ optional($bookingdata->provider)->contact_number ?? '-' }}
{{ optional($bookingdata->provider)->address ?? '-' }}
{{ !empty($service->priceType) ? $service->priceType['name'] : "-" }}
{{ checkEmpty($service, 'area') }}
{{ checkEmpty($service, 'price', 0) }}
{{ checkEmpty($service, 'advance_payment_amount', 0) }} %
{{ checkEmpty($service, 'tax', 0) }}
{{ $service->with_transport == 0 ? 'Without Transport' : 'With Transport' }}
{{ checkEmpty($service, 'site_visit') }}
{{ checkEmpty($service, 'charged_price', 0) }}
{{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.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}}% | @php if($bookingdata->service->type === 'fixed'){ $sub_total = ($bookingdata->amount) * ($bookingdata->quantity); }else{ $sub_total = $bookingdata->amount; } @endphp{{!empty($sub_total) ? getPriceFormat($sub_total) : 0}} |
{{__('messages.subtotal_vat')}} | @php $sub_total = $bookingdata->amount; @endphp{{!empty($sub_total) ? getPriceFormat($sub_total) : 0}} |
{{__('messages.discount')}} (-) | {{!empty($bookingdata->discount) ? $bookingdata->discount : 0}}% |
{{__('messages.coupon')}} (-) | @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{{ optional($bookingdata->couponAdded)->code ?? '0' }}{{ $discount }}% |
{{__('messages.extra_charge')}} (+) | {{getPriceFormat($extraValue)}} |
{{__('messages.tax')}} | @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{{!empty($tax_amount) ? getPriceFormat($tax_amount) : 0}} |
{{__('messages.grand_total')}} |
{{!empty($total_amount) ? getPriceFormat($total_amount + $extraValue) : 0}} |