@extends('layouts.admin') @section('content')
{{ Form::open(array('route' => $routes, 'method' => 'POST' ,'id' => 'ajaxSave','files' => true));}}
@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) }}
{{ Form::label('id', __('deliveryboy.phone'), array('class' => 'control-label')) }}
{{Form::select('dial_code', $countries, $data->dial_code, ['class' => 'form-control select2'])}}
{{ Form::text('phone', $data->phone, ['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')) }}

{{ __('deliveryboy.documents') }}

{{Form::label('id', __('deliveryboy.profile-image'), array('class' => 'control-label'))}} {{ Form::file('image', array('class' => 'form-control'))}} @if (is_object($data) && ($data->photo)) @endif
{{Form::label('id', __('deliveryboy.vehicle-image'), array('class' => 'control-label'))}} {{ Form::file('vehicle_image', array('class' => 'form-control'))}} @if (is_object($vehicle) && ($vehicle->vehicle_image)) @endif
{{Form::label('id', __('deliveryboy.licence-image'), array('class' => 'control-label'))}} {{ Form::file('dl_image', array('class' => 'form-control'))}} @if ($data->dl_image) @php $extension = pathinfo($data->dl_image, PATHINFO_EXTENSION); $file = pathinfo($data->dl_image, PATHINFO_FILENAME) ; @endphp @if( $extension=="pdf") {{ $file .".".$extension}} @else @endif @endif
{{Form::label('id', __('deliveryboy.register-certificate'), array('class' => 'control-label'))}} {{ Form::file('rc_image', array('class' => 'form-control'))}} @if (is_object($vehicle) && ($vehicle->rc_image)) @endif
  • {{ Form::submit( __('common.save'), array('class' => 'btn btn-primary width80'));}}
{{ Form::close(); }}
@endsection @section('script') @endsection