@extends('layouts.production') @section('content')

{{Trans("location.menu") }} {{Trans("dashboard.crud.add")}} {{Trans("dashboard.crud.new")}}

@include('layouts.includes.message')
{{ 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() }}
@if (count($locations) > 0) @foreach ($locations as $location) @endforeach @endif
{{ trans('location.id') }} {{ trans('location.location') }} {{ trans('location.floor_amount') }} {{ trans('dashboard.crud.actions') }}
{{ $location->id }} {{ $location->name}} {{ $location->floor_amount}} {{ trans('dashboard.crud.edit') }} {{ Trans('dashboard.others.show') }}
{{ Form::close() }}
@endsection @section('addJs') @endsection