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

{{ Trans('item_locations.menu') }} {{ Trans('dashboard.others.show_all') }}

@include('layouts.includes.message')
{{ Form::model($item_location, [ 'route' => $item_location->exists ? ['item_locations.update', $item_location->id] : 'item_locations.store', 'method'=> $item_location->exists ? 'PUT' : 'POST', 'files' => true ]) }}

{{ trans('dashboard.form')}} {{ trans('item_locations.menu')}}

{{ Form::label('name', Trans('item_locations.name')) }} {{ Form::text('name', null, [ 'class' => 'form-control', 'placeholder' => Trans('item_locations.name'), 'required' => 'required' ])}}
{{ Form::label('picture', Trans('item_locations.picture')) }} {{ Form::file('picture', [ 'class' => 'form-control' ])}}
{{ Form::label('description', Trans('item_locations.description')) }} {{ Form::textarea('description', null, [ 'class' => 'form-control', 'placeholder' => Trans('item_locations.description'), 'rows' => '3' ])}}
{{ Form::close() }}
@if(UserRole::has('edit_location') || UserRole::has('delete_location')) @endif @foreach($item_locations as $item) @if(UserRole::has('edit_location') || UserRole::has('delete_location')) @endif @endforeach
{{ trans('location.id') }} {{ Trans('item_locations.menu')}}{{ Trans('dashboard.crud.actions')}}
{{ $item->id }} {{ $item->name }} @if(UserRole::has("edit_location")) id) }}" class="btn btn-xs btn-info">{{Trans("dashboard.crud.edit")}} @endif @if(UserRole::has("delete_location")) {{Trans("dashboard.crud.remove")}} @endif @include('layouts.includes.modals.danger', ['model' => $item,'toRoute'=>'item_locations','attribute'=>'name'])
@endsection @section('addJs') @endsection