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

Edit Estimation

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

Customer Detail

{{$errors->first('inspection_number')}}
{{$errors->first('estimation_number')}}
{{$errors->first('estimation_date')}}
{!! Form::select("customer_id", [''=>'select customer']+$customer, old("customer_id",$estimation->customer_id), ['class'=>'form-control select2', 'required', 'id'=>'customer_id'] ) !!}
{{$errors->first('customer_id')}}
{{$errors->first('contact_number')}}
{!! Form::select("vin_number", [''=>'select '], old('vin_number'), ['class'=>'form-control select2', 'required', 'id'=>'vehicle_vin_number'] ) !!}
{{$errors->first('vin_number')}}
{!! Form::select("plate_number", [''=>'select '], old("plate_number"), ['class'=>'form-control select2', 'id'=>'plate_number'] ) !!}
{{$errors->first('plate_number')}}
{!! Form::select("vehicle_brand_id", [''=>'Select Brand']+$vehicleBrands, old("vehicle_brand_id", $estimation->customerVehicle->vehicle_brand_id), ['class'=>'form-control select2' ,'id' => 'vehicle_brand_id','required'=>'required'] ) !!}
{!! Form::select("vehicle_model_id", [''=>'Select Model']+$vehicleModels, old("vehicle_model_id", $estimation->customerVehicle->vehicle_model_id), ['class'=>'form-control select2' ,'id' => 'vehicle_model_id','required'=>'required'] ) !!}
{{$errors->first('emirates')}}
{{$errors->first('vehicle_km_in')}}
{{$errors->first('delivery_date')}}
{!! Form::select("estimation_status", ['pending'=>'Pending','yes'=>'Yes','no'=>'No','cancelled'=>'Cancelled'], old("estimation_status",$estimation->estimation_status), ['class'=>'form-control', 'id'=>'estimation_status'] ) !!}
{{$errors->first('estimation_status')}}
{!! Form::select("branch_id", \App\Http\Helpers\Helper::getBranchData(), old("branch_id",$estimation->branch_id), ['class'=>'form-control select2' ,'id' => 'branch_id','required'=>'required'] ) !!}
{!! Form::select("job_category", ['regular'=>'Regular', 'insurance'=>'Insurance', 'warranty'=>'Warranty'], old("job_category", $estimation->job_category), ['class'=>'form-control', 'id'=>'job_category'] ) !!}
{{$errors->first('job_category')}}
{{$errors->first('created_by')}}
{{$errors->first('brought_name')}}
show_vat == 'yes' ? 'checked' : ''}}>
{!! Form::select("insurance_id", [''=>'select ', ]+$insurance, old("insurance_id", $estimation->insurance_id), ['class'=>'form-control', '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')}}

Job Description

@foreach($estimation->estimationJobDescriptions as $estimation_job_d) @php $jd_count++; @endphp @endforeach
Job Description

Spare Parts

@foreach($estimation->estimationSpareParts as $estimation_detail) @php $i++; @endphp @endforeach
Spare Parts* Cost Price* Selling Price* Qty.* Total 5% Vat Net Total Department Approved
sp_approved == 'yes' ? 'checked':''}}>

Service Details

@foreach($estimation->estimationServices as $estimation_detail) @php $j++; @endphp @endforeach
Service description* Cost Price* Selling Price* Time* Total 5% Vat Net Total Department Approved
s_approved == 'yes' ? 'checked':''}}>

Sublet service

@foreach($estimation->estimationSubletServices as $estimation_sublet_service) @php $ss_count++; @endphp @endforeach
Services Cost Price* Selling Price* Time* Total 5% Vat Net Total Department Approved
{!! Form::select("ss_department_id[]", [''=>'select']+$departments, old("ss_department_id[]",$estimation_sublet_service->ss_department_id), ['class'=>'form-control', 'required', 'id'=>'ss_department_id'.$ss_count] ) !!} ss_approved == 'yes' ? 'checked':''}}>
{!! Form::select("supervisor_id", [''=>'select Supervisor'], $estimation->supervisor_id, ['class'=>'form-control', 'id'=>'supervisor_id'] ) !!}
{{$errors->first('supervisor_id')}}
{!! Form::select("technician_id", [''=>'select technician'], old("technician_id", $estimation->technician_id), ['class'=>'form-control', 'id'=>'technician_id'] ) !!}
{{$errors->first('technician_id')}}
@if($estimation->estimation_status != "cancelled") @endif @if($estimation->job_category == "insurance") Insurance Print @endif
{!! Form::close() !!}
@include('admin.advisor.models.customer') @include('admin.advisor.models.service') @include('admin.advisor.models.sparePart') @include('admin.advisor.models.sendMail') @include('admin.advisor.models.whatsapp') @endsection @push('footerscript') @endpush