Edit Job Appointment
{!! Form::open(['route'=>array('job-appointment.update', $job_appointment->id), 'onsubmit'=>'BtnSubmit.disabled = true','method' => 'put','files'=>true]) !!}
@if($job_appointment->status != "cancelled")
@endif
{!! Form::close() !!}
Customer & Vehicle Detail
{{$errors->first('job_appointment_no')}}
{{$errors->first('appointment_date')}}
{{$errors->first('appointment_time')}}
{!! Form::select("customer_id", [''=>'Select Customer']+$customer, old("customer_id", $job_appointment->customer_id), ['class'=>'form-control select2', 'required', 'id'=>'customer_id'] ) !!}
{{$errors->first('customer_id')}}
{{$errors->first('contact_number')}}
{!! Form::select("vin_number", [''=>'Select VIN No.'],old("vin_number",), ['class'=>'form-control select2', 'required', 'id'=>'vehicle_vin_number'] ) !!}
{{$errors->first('vin_number')}}
{!! Form::select("plate_number", [''=>'Select Plate No.'], 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", $job_appointment->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", $job_appointment->customerVehicle->vehicle_model_id), ['class'=>'form-control select2' ,'id' => 'vehicle_model_id','required'=>'required'] ) !!}
{{$errors->first('emirates')}}
{!! Form::select("status", ['pending'=>'Pending', 'completed'=>'Completed', 'cancelled'=>'Cancelled'], old("status", $job_appointment->status), ['class'=>'form-control', 'id'=>'status'] ) !!}
{{$errors->first('status')}}
{!! Form::select("branch_id", \App\Http\Helpers\Helper::getBranchData(), old("branch_id", $job_appointment->branch_id), ['class'=>'form-control select2' ,'id' => 'branch_id','required'=>'required'] ) !!}
{!! Form::select("job_category", ['regular'=>'Regular', 'insurance'=>'Insurance', 'warranty'=>'Warranty'], old("job_category", $job_appointment->job_category), ['class'=>'form-control', 'id'=>'job_category'] ) !!}
{{$errors->first('job_category')}}
{{$errors->first('created_by')}}
{{$errors->first('remark')}}