logo

{{$business->business_name}}

{{$business->address}}
{{ $business->email_id }}    {{ $business->web_link }} {{ $business->contact_no }}


Bill. No: {{ $job_card->bill_no }}

TAX INVOICE

Date: {{ date('d-M-Y', strtotime($job_card->bill_date)) }}

Name : {{ $job_card->customer?->name }} Brand : {{ $job_card->customerVehicle->vehicleBrand->vehicle_brand }}
Contact : {{ $job_card->customer?->contact_number }} VIN No. : {{ $job_card->customerVehicle->vin_number }}
Plate No. : {{ $job_card->customerVehicle ? $job_card->customerVehicle->plate_number:' ' }} Model : {{ $job_card->customerVehicle->vehicleModel->vehicle_model }}
Emirates : {{ $job_card->customerVehicle?->emirates }} KM's In : {{ $job_card->vehicle_km_in }}
TRN No. : {{ $job_card->customer?->vat_number }}
@if (count($job_card->jobCardSpareParts) > 0) @foreach ($job_card->jobCardSpareParts as $job_card_detail) @endforeach @endif @if (count($job_card->jobCardServices) > 0) @foreach ($job_card->jobCardServices as $job_card_detail) @endforeach @endif @if (count($job_card->jobCardSubletServices) > 0) @foreach ($job_card->jobCardSubletServices as $job_card_sublet_service) @endforeach @endif
Sl. Description Qty Unit Price Amt (Excl. VAT) Discount Gross Amount 5% VAT Total (Inc. VAT)

Spare Part

{{ $i . '.' }} {{ $job_card_detail->sparePart->part_description }} {{ $job_card_detail->quantity }} {{ $job_card_detail->sp_selling_price }} {{ $job_card_detail->sp_total }} {{ $job_card_detail->sp_discount }} {{ $job_card_detail->sp_total - $job_card_detail->sp_discount }} {{ $job_card_detail->sp_vat }} {{ $job_card_detail->sp_total_with_tax }}

Services

{{ $i }} {{ $job_card_detail->service->service_name }} {{ $job_card_detail->s_time }} {{ $job_card_detail->s_selling_price }} {{ $job_card_detail->s_total }} {{ $job_card_detail->s_discount }} {{ $job_card_detail->s_total - $job_card_detail->s_discount }} {{ $job_card_detail->s_vat }} {{ $job_card_detail->s_total_with_tax }}

Sublet Services

{{ $i . '.' }} {{ $job_card_sublet_service->service->service_name }} {{ $job_card_sublet_service->ss_time }} {{ $job_card_sublet_service->ss_selling_price }} {{ $job_card_sublet_service->ss_total_amount }} {{ $job_card_sublet_service->ss_discount }} {{ $job_card_sublet_service->ss_total_amount - $job_card_sublet_service->ss_discount }} {{ $job_card_sublet_service->ss_vat }} {{ $job_card_sublet_service->ss_total_with_tax }}
Notes: Total AED {{ $sp_amount + $s_amount + $ss_amount }}
Discount AED {{ $sp_discount + $s_discount + $ss_discount }}
Gross Total AED {{ $sp_amount + $s_amount + $ss_amount - ($sp_discount + $s_discount + $ss_discount) }}
5% VAT AED AED {{ $s_vat + $sp_vat + $ss_vat }}
Amount in words: @php $total_amount = $sp_amount + $s_amount + $ss_amount + ($s_vat + $sp_vat + $ss_vat) - ($sp_discount + $s_discount + $ss_discount); $t_amount = new NumberFormatter('en', NumberFormatter::SPELLOUT); $num = explode('.', $total_amount); // Format the Dirhams part (whole number part) with ucwords to capitalize each word $dirhams = ucwords($t_amount->format($num[0])) ; @endphp AED {{ $dirhams }} @if (isset($num[1])) {{ $num[1] > 0 ? 'And ' . ucwords($t_amount->format($num[1])) . ' Fils Only' : 'Only' }} @endif Net Amount AED {{ number_format($sp_amount + $s_amount + $ss_amount + ($s_vat + $sp_vat + $ss_vat) - ($sp_discount + $s_discount + $ss_discount),2) }}
Advance Amount AED {{ $job_card->advance_amount }}
Paid Amount AED {{ $job_card->paid_amount }}
Balance Amount AED {{ number_format($sp_amount + $s_amount + $ss_amount + ($s_vat + $sp_vat + $ss_vat) - ($sp_discount + $s_discount + $ss_discount) - $job_card->advance_amount - $job_card->paid_amount,2) }}