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

Estimation

logo

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

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

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

Est : {{ $estimation->estimation_number }}

ESTIMATION

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


Name : {{ $estimation->customer?->name }} Plate No. : {{ $estimation->customerVehicle ? $estimation->customerVehicle->plate_number:' '}}
Contact : {{ $estimation->customer?->contact_number }} Emirates : {{ $estimation->customerVehicle->emirates }}
Address : {{ $estimation->customer?->address }} Brand : {{ $estimation->customerVehicle->vehicleBrand->vehicle_brand }}
VIN No. : {{ $estimation->customerVehicle->vin_number }} Model : {{ $estimation->customerVehicle->vehicleModel->vehicle_model }}
TRN : {{ $estimation->customer?->vat_number }} Created By : {{ $estimation->created_by }}
@if ($estimation->estimationJobDescriptions)

Customer Complaints

@foreach ($estimation->estimationJobDescriptions as $estimation_detail) @endforeach
Description
{{ $i . '.' }} {{ $estimation_detail->job_description }}

@endif @if (count($estimation->estimationSpareParts) > 0)

Spare Parts

@foreach ($estimation->estimationSpareParts as $estimation_detail) @endforeach
Parts Description Unit Price Qty. Amount 5% Vat Net Total
{{ $i . '.' }} {{ $estimation_detail->sparePart->part_description }} {{ $estimation_detail->sp_selling_price }} {{ $estimation_detail->quantity }} {{ $estimation_detail->quantity * $estimation_detail->sp_selling_price }} @if ($estimation->show_vat == 'yes') {{ $estimation_detail->quantity * $estimation_detail->sp_selling_price * 0.05 }} @else {{ 0 }} @endif @if ($estimation->show_vat == 'yes') {{ number_format($estimation_detail->quantity * $estimation_detail->sp_selling_price + $estimation_detail->quantity * $estimation_detail->sp_selling_price * 0.05, 2) }} @else {{ $estimation_detail->quantity * $estimation_detail->sp_selling_price }} @endif

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

@endif @if (count($estimation->estimationServices) > 0)

Services

@foreach ($estimation->estimationServices as $estimation_detail) @endforeach
Work Description Time Selling Price Amount 5% Vat Net Total
{{ $i . '.' }} {{ $estimation_detail->service->service_name }} {{ $estimation_detail->s_time }} {{ $estimation_detail->s_selling_price }} {{ $estimation_detail->s_selling_price * $estimation_detail->s_time }} @if ($estimation->show_vat == 'yes') {{ $estimation_detail->s_selling_price * $estimation_detail->s_time * 0.05 }} @else {{ 0 }} @endif @if ($estimation->show_vat == 'yes') {{ number_format($estimation_detail->s_selling_price * $estimation_detail->s_time + $estimation_detail->s_selling_price * $estimation_detail->s_time * 0.05, 2) }} @else {{ $estimation_detail->s_selling_price * $estimation_detail->s_time }} @endif

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

@endif @if (count($estimation->estimationSubletServices) > 0)
Sublet Service
@foreach ($estimation->estimationSubletServices as $estimation_sublet_service) @endforeach
Sublet Description Time Selling price Amount 5% Vat Net Total
{{ $i . '.' }} {{ $estimation_sublet_service->service->service_name }} {{ $estimation_sublet_service->ss_time }} {{ $estimation_sublet_service->ss_selling_price }} {{ $estimation_sublet_service->ss_time * $estimation_sublet_service->ss_selling_price }} @if ($estimation->show_vat == 'yes') {{ $estimation_sublet_service->ss_time * $estimation_sublet_service->ss_selling_price * 0.05 }} @else {{ 0 }} @endif @if ($estimation->show_vat == 'yes') {{ $estimation_sublet_service->ss_time * $estimation_sublet_service->ss_selling_price + $estimation_sublet_service->ss_time * $estimation_sublet_service->ss_selling_price * 0.05 }} @else {{ $estimation_sublet_service->ss_time * $estimation_sublet_service->ss_selling_price }} @endif

Total Sublet Service Cost: : {{ number_format($total_sublet_service, 2) }}

@endif
Remark :
Total Amount In Words : @php $total_amount = $spare_part_gross+ $service_gross + $sublet_gross+ $total_vat; $t_amount = new NumberFormatter('en', NumberFormatter::SPELLOUT); $num = explode('.', $total_amount); function capitalizeWords($str) { return ucwords(strtolower($str)); } $dollars_in_words = $t_amount->format($num[0]); $dollars_in_words_capitalized = capitalizeWords($dollars_in_words); $cents_in_words = isset($num[1]) ? $t_amount->format($num[1]) . ' Fils Only' : 'Only'; $cents_in_words_capitalized = capitalizeWords($cents_in_words); @endphp AED {{ $dollars_in_words_capitalized }} {{ $cents_in_words_capitalized }}
Gross Amount AED {{ number_format($spare_part_gross+ $service_gross + $sublet_gross, 2) }}
5% VAT {{ number_format($total_vat, 2) }}
Net Total AED {{ number_format($spare_part_gross+ $service_gross + $sublet_gross+$total_vat , 2) }}
Conditions of Estimate:-
  1. After dismantling, if any additional work or spare parts not covered by this estimate then a supplemnetary estimate will be provided.
  2. All deliveries are subject to availability of spare parts
  3. Spare parts price subject to change without prior notice prices prevailing at the time of actual delivery shall be charged.
  4. This estimate is valid for 15 days only,from the date.

I/we hereby accept the terms mentioned above.

Name.................................................................. Signature.............................................................


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