- {!! __('Dashboard') !!}
- {!! __('vehicle_model_list') !!}
- {!! __('edit_vehicle_model') !!}
Edit Vehicle Model
@if (count($errors) > 0)
@endif
@if(session()->has('message'))
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
{{ session()->get('message') }}
@endif
{!! Form::model($vehicleModel, ['route' => ['vehicle-model.update', $vehicleModel->id], 'method' => 'post', 'id' => 'ajax-submit','files' => true]) !!}
{!! Form::close() !!}
{!! Form::label('Vehicle Type', 'Vehicle Type') !!}
{!! Form::label('Vehicle Make', 'Vehicle Make') !!}
{!! Form::label('Model Name', 'Model Name') !!}
{!! Form::text('model_name', null, array('class' => 'form-control','id' => 'model_name','required' => 'required', 'autofocus' => 'autofocus','placeholder' => 'Model name'))!!}
{!! Form::label('image', __('image')) !!}
{!! Form::file('image',array('class' => 'custom-file-input','id' => 'image')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Html::image(apiImage($vehicleModel->image,env('VEHICLE_PATH')),'No Image',array( 'width' => 100, 'height' => 100 )) !!}
{!! Form::checkbox('is_activated', '1',true) !!}
{!! Form::label('Active', 'Active') !!}