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

Work Shop Invoice

{!! Form::open(['route'=>array('billing-job-card.update', $job_card->id), 'onsubmit'=>'BtnSubmit.disabled = true','method' => 'put']) !!}

Customer Detail

@if($job_card->direct_invoice == 'yes') @else
{{$errors->first('job_card_number')}}
@endif
{{$errors->first('bill_no')}}
{{$errors->first('insurance_invoice_no')}}
{{$errors->first('bill_date')}}
{{$errors->first('customer_id')}}
{{$errors->first('contact_number')}}
{{$errors->first('plate_number')}}
{{$errors->first('emirates')}}
{{$errors->first('vehicle_vin_number')}}
{{$errors->first('vehicle_km_in')}}
{{$errors->first('due_date')}}
{{$errors->first('service_reminder_date')}}
@if($job_card->job_card_vat) job_card_vat == 'yes'? 'checked' : ''}}> @else customer->vat_check == 'yes'? 'checked' : ''}}> @endif
{!! Form::select("branch_id", \App\Http\Helpers\Helper::getBranchData(), old("branch_id",$job_card->branch_id), ['class'=>'form-control' ,'id' => 'branch_id','required'=>'required', 'disabled'] ) !!}
{!! Form::select("job_category", ['regular'=>'Regular', 'insurance'=>'Insurance', 'warranty'=>'Warranty'], old("job_category", $job_card->job_category), ['class'=>'form-control', 'disabled', 'id'=>'job_category'] ) !!}
{{$errors->first('job_category')}}
{{$errors->first('created_by')}}
{!! Form::select("insurance_id", [''=>'select ', ]+$insurance, old("insurance_id", $job_card->insurance_id), ['class'=>'form-control', 'readonly', 'id'=>'insurance_id'] ) !!}
{{$errors->first('insurance_id')}}
{{$errors->first('claim_no')}}
{{$errors->first('excess_amount')}}
{{$errors->first('policy_no')}}
{{$errors->first('police_report_no')}}
{{$errors->first('lpo_no')}}
{{$errors->first('lpo_date')}}
{{$errors->first('complete_date')}}

Spare Parts

@foreach($job_card->jobCardSpareParts as $job_card_detail) @php $i++; $sp_discount += $job_card_detail->sp_discount; $sp_gross_amount += $job_card_detail->sp_selling_price * $job_card_detail->quantity; if($job_card->job_card_vat){ $sp_vat_amount += $job_card->job_card_vat == 'yes' ? (($job_card_detail->sp_total - $job_card_detail->sp_discount) *0.05) : 0; } else{ $sp_vat_amount += $job_card->customer->vat_check == 'yes' ? (($job_card_detail->sp_total - $job_card_detail->sp_discount) *0.05) : 0; } @endphp @endforeach
Spare Parts* Unit Price* Qty.* Amount Discount Gross Amount 5% VAT Amount Inc. Tax.
request_discount == 'Approved' ? '': 'readonly'}}> @if($job_card->job_card_vat) @else @endif @if($job_card->job_card_vat) @else @endif

Service Details

@foreach($job_card->jobCardServices as $job_card_detail) @php $j++; $s_discount += $job_card_detail->s_discount; $service_g_amount += $job_card_detail->s_total; if($job_card->job_card_vat){ $s_vat_amount += $job_card->job_card_vat == 'yes' ? (($job_card_detail->s_total -$job_card_detail->s_discount) *0.05) : 0; }else{ $s_vat_amount += $job_card->customer->vat_check == 'yes' ? (($job_card_detail->s_total -$job_card_detail->s_discount) *0.05) : 0; } @endphp @endforeach
Service description* Service Price Time Amount Discount Gross Amount 5% VAT Amount Inc. Tax.
request_discount == 'Approved' ? '': 'readonly'}}> @if($job_card->job_card_vat) @else @endif @if($job_card->job_card_vat) @else @endif

Sublet Service

{{-- --}} {{-- --}} @foreach($job_card->jobCardSubletServices as $job_card_sublet_service) @php $ss_g_amount += $job_card_sublet_service->ss_time * $job_card_sublet_service->ss_selling_price; if($job_card->job_card_vat){ $ss_vat += $job_card->job_card_vat == 'yes' ? (($job_card_sublet_service->ss_selling_price*$job_card_sublet_service->ss_time - $job_card_sublet_service->ss_discount) *0.05) : 0; }else{ $ss_vat += $job_card->customer->vat_check == 'yes' ? (($job_card_sublet_service->ss_selling_price*$job_card_sublet_service->ss_time - $job_card_sublet_service->ss_discount) *0.05) : 0; } $ss_discount = $job_card_sublet_service->ss_discount; $k++; @endphp @endforeach
Services Selling Price Time Amount Discount Gross Amount 5% VAT Amount Inc. Tax. Department--}} {{-- Job No.--}} {{--
request_discount == 'Approved' ? '': 'readonly'}}> @if($job_card->job_card_vat) @else @endif @if($job_card->job_card_vat) @else @endif
{{$errors->first('discount_amount')}}
{{$errors->first('t_gross_amount')}}
{{$errors->first('vat_amount')}}
{{$errors->first('net_amount')}}
{{$errors->first('paid_amount')}}
{{$errors->first('advance_amount')}}
{{$errors->first('balance_amount')}}
{!! Form::select("receipts", [''=>'Receipt Number', ]+$receipts, old("receipts"), ['class'=>'form-control', 'id'=>'receipts'] ) !!}
{{$errors->first('receipts')}}
@if($job_card->invoice_status == 'yes') @endif @if($job_card->invoice_status == 'yes' && $job_card->job_category == 'insurance') @endif @if($job_card->invoice_status == 'yes') @endif
{!! Form::close() !!}
@include('admin.advisor.models.sendMail') @include('admin.advisor.models.whatsapp') @endsection @push('footerscript') @endpush