@if ($business->logo_image) logo @endif

{{ $business->business_name }}

{{ $business->address }}
{{ Helper::getBusinessData()->email_id }} {{ Helper::getBusinessData()->web_link }}

Invoice :{{ $job_card->job_category == 'insurance' ? $job_card->insurance_invoice_no : $job_card->bill_no }}

TAX INVOICE

JobCard : {{ $job_card->job_card_number }}

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


{{-- --}} {{-- --}}
Name : {{$job_card->customer?->name }} Plate No. : {{ $job_card->customerVehicle ? $job_card->customerVehicle->plate_number:' ' }}
Contact : {{ $job_card->customer?->contact_number }} Emirates : {{ $job_card->customerVehicle->emirates }}
Address : {{ $job_card->customer?->address }} Brand : {{ $job_card->customerVehicle->vehicleBrand?->vehicle_brand }}
VIN No. : {{ $job_card->customerVehicle->vin_number }} Model : {{ $job_card->customerVehicle->vehicleModel->vehicle_model }}
TRN : {{ $job_card->t_r_n }} --}} {{-- Created By--}} {{-- --}} {{-- : {{ $job_card->created_by }}--}} {{-- KM : {{$job_card->vehicle_km_in}}
@if (count($job_card->jobCardSpareParts) > 0)
Spare Parts
@foreach ($job_card->jobCardSpareParts as $job_card_detail) @endforeach
No. Name Unit Price Qty. Amount Discount Gross Amount 5% VAT Net Amount
{{ $j . '.' }} {{ $job_card_detail->sparePart->part_description }} {{ $job_card_detail->sp_selling_price }} {{ $job_card_detail->quantity }} {{ $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 }}

Total Spare Parts : {{ number_format($total_spare_part, 2) }}

@endif @if (count($job_card->jobCardServices) > 0)
Services
@foreach ($job_card->jobCardServices as $job_card_detail) @endforeach
Sr. No. Work Description Price Time Amount Discount Gross Amount 5% VAT Net Amount
{{ $i }} {{ $job_card_detail->service->service_name }} {{ $job_card_detail->s_selling_price }} {{ $job_card_detail->s_time }} {{ $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 }}

Total Services : {{ number_format($total_service, 2) }}

@endif @if (count($job_card->jobCardSubletServices) != 0)

Sublet Service

@foreach ($job_card->jobCardSubletServices as $job_card_sublet_service) @endforeach
Sr. No. Sublet Description Price Time Amount Discount Gross Amount 5% VAT Net Amount
{{ $i . '.' }} {{ $job_card_sublet_service->service->service_name }} {{ $job_card_sublet_service->ss_selling_price }} {{ $job_card_sublet_service->ss_time }} {{ $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 }}

Total Services : {{ $total_sublet_service }}

@endif
Notes
Total AED {{ number_format($sp_amount + $s_amount + $ss_amount, 2) }}
Discount AED {{ $sp_discount + $s_discount + $ss_discount }}

Gross Total AED @php $netTotal = $sp_amount + $s_amount + $ss_amount - ($sp_discount + $s_discount + $ss_discount); @endphp {{ number_format($netTotal, 2) }}
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 amount in words and capitalize $amount_in_words = ucwords($t_amount->format($num[0])); @endphp AED {{ $amount_in_words }} @if (isset($num[1])) {{ $num[1] > 0 ? 'And ' . $t_amount->format($num[1]) . ' Fils Only' : 'Only' }} @endif
Payment Type : {{ $job_card->payment_type }}
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) }}

The repaired vehicle checked and received in good condition