Add Vehicle Make
@if (count($errors) > 0)
@endif
@if(session()->has('message'))
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
{{ session()->get('message') }}
@endif
{!! Form::open(['route' => ['vehicleMake.update',$vehicleMake->id] , 'method' => 'POST','files' => true]) !!}
{!! Form::close() !!}
{!! Form::label('Make Name', 'Make Name') !!}
{!! Form::text('make_name', $vehicleMake->make_name, array('class' => 'form-control','id' => 'make_name', 'autofocus' => 'autofocus','placeholder' => 'Make name'))!!}
{!! Form::file('image',array('class' => 'custom-file-input','id' => 'image')) !!}
{!! Form::label('Image', 'Choose file',array('class' => 'custom-file-label')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
@if ("/storage/vehicle_images/{{ $vehicleMake->image }}")
{!! Html::image($vehicleMake->image,'No Image',array( 'width' => 70, 'height' => 70 )) !!}
@endif
is_activated==1 ? 'checked' : '' }}>
{!! Form::label('Active', 'Active') !!}