@php
$attr = [];
if($data->employee_id > 0) {
$attr = ['readonly' => true];
$countries = [];
$countries[$data->dial_code] = $data->dial_code;
}
@endphp
@if($data->employee_id <= 0)
{{Form::label('id', __('deliveryboy.store'), array('class' => 'control-label'))}}
{{Form::select('stores[]', $stores, isset($data->store_id) ? explode(',', $data->store_id) : '', ['class' => 'form-control select2', 'id' => 'stores', 'multiple'=>'multiple','data-live-search'=>'true'])}}
@endif
{{ Form::label('id', __('deliveryboy.name'), array('class' => 'control-label')) }}
{{ Form::text('name', $data->full_name, ['class' => 'form-control'] + $attr) }}
{{ Form::label('id', __('deliveryboy.email'), array('class' => 'control-label')) }}
{{ Form::email('email', $data->email, ['class' => 'form-control'] + $attr) }}
@if($data->employee_id <= 0)
{{Form::label('id', __('deliveryboy.password'), array('class' => 'control-label'))}}
{{ Form::password('password', array('class' => 'form-control'))}}
{{Form::label('id', __('deliveryboy.conf-password'), array('class' => 'control-label'))}}
{{ Form::password('confirm_password', array('class' => 'form-control'))}}
@endif
{{Form::label('id', __('deliveryboy.brand-name'), array('class' => 'control-label'))}}
{{ Form::text('vehicle_brand',$data->vehicle_brand_name, array('class' => 'form-control'))}}
{{Form::label('id', __('deliveryboy.model-number'), array('class' => 'control-label'))}}
{{ Form::text('model_number',$data->model_number, array('class' => 'form-control'))}}
{{Form::label('id', __('deliveryboy.color'), array('class' => 'control-label'))}}
{{ Form::input('color', 'vehicle_color', $vehicle->color, array('class' => 'form-control')) }}
{{Form::label('id', __('deliveryboy.license'), array('class' => 'control-label'))}}
{{ Form::text('license',$data->driving_license, array('class' => 'form-control'))}}
{{Form::label('id', __('deliveryboy.exp-date'), array('class' => 'control-label'))}}
{{ Form::input('text','dl_expiry_date',dateFormat($data->dl_expiry_date,SHOW_DATE), array('class' => 'form-control datepicker-input'))}}
{{Form::label('id', __('deliveryboy.purchase-date'), array('class' => 'control-label'))}}
{{ Form::input('text','purchase_date',dateFormat($data->purchase_date,SHOW_DATE), array('class' => 'form-control datepicker-input'))}}
{{Form::label('id', __('deliveryboy.vehicle-type'), array('class' => 'control-label'))}}
{{Form::select('vehicle_type', $vehicleType, $data->vehicle_type_id, ['class' => 'form-control select2','data-live-search'=>'true' ,'title'=>__('common.select-option')])}}
{{Form::label('id', __('deliveryboy.vehicle-make'), array('class' => 'control-label'))}}
{{Form::select('vehicle_make', $vehicleMake, $data->vehicle_make_id, ['class' => 'form-control select2','data-live-search'=>'true','title'=>__('common.select-option')])}}
{{Form::label('id', __('deliveryboy.vehicle-model'), array('class' => 'control-label'))}}
{{Form::select('vehicle_model',$vehicleModel, $vehicle->vehicle_model_id, ['class' => 'form-control select2','data-live-search'=>'true','title'=>__('common.select-option')])}}
{{Form::label('id', __('deliveryboy.manu-year'), array('class' => 'control-label'))}}
{{ Form::text('mfg_year',$vehicle->mfg_year, array('class' => 'form-control'))}}
{{Form::label('id', __('deliveryboy.plate-number'), array('class' => 'control-label'))}}
{{ Form::text('license_plate_no',$vehicle->license_plate_no, array('class' => 'form-control'))}}
{{Form::label('status', __('deliveryboy.rider_status'), array('class' => 'control-label'))}}
{{ Form::select('status', onlineStatus(),$data->status, array('class' => 'form-control ','id'=>'status')) }}
{{ Form::label('is_active', __('roles.status'), array('class' => 'control-label')) }}