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

Create Job Appointment

{!! Form::open(['route'=>array('job-appointment.store'), 'onsubmit'=>'BtnSubmit.disabled = true','method' => 'post']) !!}

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"), ['class'=>'form-control select2', 'required', 'id'=>'customer_id'] ) !!}
{{$errors->first('customer_id')}}
{{$errors->first('contact_number')}}
{!! Form::select("vin_number", [''=>'Select VIN No. ']+$vin_no, old("vin_number"), ['class'=>'form-control select2', 'required', 'id'=>'vehicle_vin_number'] ) !!}
{{$errors->first('vin_number')}}
{!! Form::select("plate_number", [''=>'Select Plant No. ']+$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"), ['class'=>'form-control select2' ,'id' => 'vehicle_brand_id','required'=>'required'] ) !!}
{!! Form::select("vehicle_model_id", [''=>'Select Model'], old("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"), ['class'=>'form-control', 'id'=>'status'] ) !!}
{{$errors->first('status')}}
{!! Form::select("branch_id", \App\Http\Helpers\Helper::getBranchData(), old("branch_id"), ['class'=>'form-control' ,'id' => 'branch_id','required'=>'required'] ) !!}
{!! Form::select("job_category", ['regular'=>'Regular', 'insurance'=>'Insurance', 'warranty'=>'Warranty'], old("job_category"), ['class'=>'form-control', 'id'=>'job_category'] ) !!}
{{$errors->first('job_category')}}
{{$errors->first('created_by')}}
{{$errors->first('remark')}}
{!! Form::close() !!}
@include('admin.advisor.models.customer') @endsection @push('footerscript') @endpush