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

Edit Customer

{!! Form::open(['route'=>array('customer.update', $customer->id), 'onsubmit'=>'BtnSubmit.disabled = true','method' => 'put']) !!}
{{$errors->first('customer_code')}}
{{$errors->first('name')}}
{{$errors->first('contact_number')}}
{!! Form::select("group_master_id", [''=>'Select Status']+$status, $customer->group_master_id, ['class'=>'form-control', 'required','id'=>'group_master_id'] ) !!}
{{$errors->first('group_master_id')}}
{!! Form::select("account_group_id", [''=>'Select ']+$accountGroups, old("account_group_id",$customer->account_group_id), ['class'=>'form-control', 'disabled', 'id'=>'account_group_id'] ) !!}
{{$errors->first('account_group_id')}}
{{$errors->first('land_line')}}
{{$errors->first('email')}}
{{$errors->first('vat_number')}}
{{$errors->first('credit_limit')}}
{{$errors->first('opening_date')}}
{{$errors->first('c_opening_balance')}}
{{$errors->first('address')}}
vat_check== 'yes' ? 'checked': ''}}>
{{$errors->first('vat_check')}}
@php $i =1; @endphp @foreach($customer_vehicle_details as $customer_vehicle_detail) @php $i++; @endphp @endforeach
Vehicle Brand* Vehicle Model* Vehicle Color* Emirates* Plate Number VIN Number*
{!! Form::select("vehicle_brand_id[]", [''=>'Select Brand']+$vehicleBrands, old("vehicle_brand_id", $customer_vehicle_detail->vehicle_brand_id), ['class'=>'form-control' ,'id' => 'vehicle_brand_id'.$i,'required'=>'required'] ) !!} {!! Form::select("vehicle_model_id[]", [''=>'Select Model']+$vehicleModels, old("vehicle_model_id", $customer_vehicle_detail->vehicle_model_id), ['class'=>'form-control' ,'id' => 'vehicle_model_id'.$i,'required'=>'required'] ) !!} {!! Form::select("vehicle_color_id[]", [''=>'Select Color']+$vehicleColors, old("vehicle_color_id", $customer_vehicle_detail->vehicle_color_id), ['class'=>'form-control' ,'id' => 'vehicle_color_id'.$i,'required'=>'required'] ) !!} {!! Form::select("emirates[]", [''=>'Select Emirates', 'AUH'=>'AUH', 'AJM'=>'AJM', 'SHJ'=>'SHJ', 'DXB'=>'DXB', 'FUJ'=>'FUJ', 'RAK'=>'RAK', 'UAQ'=>'UAQ', 'Bahrain'=>'Bahrain', 'Kuwait'=>'Kuwait', 'Oman'=>'Oman', 'Qatar'=>'Qatar', 'Saudi Arabia'=>'Saudi Arabia', 'United Arab Emirates'=>'United Arab Emirates'], old("emirates",$customer_vehicle_detail->emirates), ['class'=>'form-control' ,'id' => 'emirates1','required'=>'required'] ) !!}
{!! Form::close() !!}
@endsection @push('footerscript') @endpush