@extends('admin.layout.app') @section('title', 'Tax Invoice') @push('headerscript') @endpush @section('content')

Tax Invoice

logo

{{ Helper::getBusinessData()->business_name }}

{{ Helper::getBusinessData()->address }}

{{ Helper::getBusinessData()->email_id }} {{ Helper::getBusinessData()->web_link }} {{ Helper::getBusinessData()->contact_no }}



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->customer?->vat_number }} Created By : {{ $job_card->created_by }}
@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 : {{ $total_spare_part }}

@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) }}

@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 {{ number_format($sp_amount + $s_amount + $ss_amount - ($sp_discount + $s_discount + $ss_discount), 2) }}
5% VAT AED AED {{ $s_vat + $sp_vat + $ss_vat }}

Amount in words @php $total_amount = $job_card->net_amount; $t_amount = new NumberFormatter( 'en', NumberFormatter::SPELLOUT, ); $num = explode('.', $total_amount); function capitalizeWords($str) { return ucwords($str); } $amount_in_words = capitalizeWords($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

-------------------------

Customer Signature

-------------------------

Auto Repairing LLC


@include('admin.advisor.models.sendMail') @include('admin.advisor.models.whatsapp') @endsection @push('footerscript') @endpush