{{ Form::model($location,[
'route' => $location->exists ? ['locations.update', $location->id] : 'locations.store',
'method' => $location->exists ? 'PUT' : 'POST'
]) }}
{{ Form::label('name', trans('location.location')) }}
{{ Form::text('name', null, ['class' => 'form-control', 'placeholder' => trans('location.location'), 'required' => 'required']) }}
{{ $errors->first('name') }}
{{ Form::label('floor_amount', trans('location.floor_amount')) }}
{{ Form::number('floor_amount', null, [
'class' => 'form-control',
'placeholder' => trans('location.floor_amount'),
'required' => 'required'
]) }}
{{ $errors->first('amount') }}
{{ Form::close() }}