- {!! __('Dashboard') !!}
- {!! __('vehicle_type_list') !!}
- {!! __('add_vehicle_type') !!}
{!! __('add_vehicle_type') !!}
@if (count($errors) > 0)
@endif
@if(session()->has('message'))
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
{{ session()->get('message') }}
@endif
{!! Form::open(array('route'=>array('vehicle-type.store'), 'method'=>'post','files' => true,'id' => 'ajax-submit')) !!}
{!! Form::close() !!}
{!! Form::label('vehicle_category', __('vehicle_category')) !!}
{!! Form::select('vehicle_category_id',$category, null, ['class' => 'form-control select2','id' => 'vehicle_category_id']) !!}
{!! Form::label('Type Name', 'Type Name') !!}
{!! Form::text('type_name', null, array('class' => 'form-control','id' => 'type_name','required' => 'required', 'autofocus' => 'autofocus','placeholder' => 'Type name'))!!}
{!! Form::label('Min Price', 'Min Price') !!}
{!! Form::text('min_price', null, array('class' => 'form-control','id' => 'min_price','required' => 'required', 'autofocus' => 'autofocus','placeholder' => 'Min Price','onkeypress'=>'return onlyNumberKey(event)' )) !!}
{!! Form::label('Base Price', 'Base Price') !!}
{!! Form::text('base_price', null, array('class' => 'form-control','id' => 'base_price','required' => 'required', 'autofocus' => 'autofocus','placeholder' => 'Base Price','onkeypress'=>'return onlyNumberKey(event)'))!!}
{!! Form::label('Per minute price', 'Per minute price') !!}
{!! Form::text('per_minute_price', null, array('class' => 'form-control','id' => 'per_minute_price','required' => 'required', 'autofocus' => 'autofocus','placeholder' => 'Per minute Price','onkeypress'=>'return onlyNumberKey(event)'))!!}
{!! Form::label('Distance unit', 'Distance unit') !!}
{!! Form::select('distance_unit', ['km'=> 'km'], '1', array('class' => 'form-control','id' => 'distance_unit','required' => 'required' ,'onchange' => 'showhide_div(this.value)')); !!}
{!! Form::label('Per km price', 'Per km price') !!}
{!! Form::text('per_km_price', null, array('class' => 'form-control','id' => 'per_km_price', 'autofocus' => 'autofocus','placeholder' => 'Per km Price','onkeypress'=>'return onlyNumberKey(event)'))!!}
{!! Form::label('Per mile price', 'Per mile price') !!}
{!! Form::text('per_mile_price', null, array('class' => 'form-control','id' => 'per_mile_price', 'autofocus' => 'autofocus','placeholder' => 'Per mile Price','onkeypress'=>'return onlyNumberKey(event)'))!!}
{!! Form::label('Image', __('image')) !!}
{!! Form::file('image',array('class' => 'custom-file-input','id' => 'image')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Form::label('Map Icon', __('map_icon')) !!}
{!! Form::file('map_icon',array('class' => 'custom-file-input','id' => 'map_icon')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Form::checkbox('is_activated', '1',true) !!}
{!! Form::label('Active', 'Active') !!}