@include('admin.partials.errors')
@if(isset($translation))
{{ Form::model($translation->getFillables(), ['route' => ['translations.update', $translation], 'method' => 'PATCH']) }}
@else
{{ Form::open(['route' => ['translations.store']]) }}
@endif
{{ FormField::text(['name' => 'slug', 'label' => 'Slug *', 'errors' => $errors]) }}
@foreach($languages as $l)
{{ FormField::text(['name' => 'text_'.$l->short, 'label' => 'Traduction en '.strtolower($l->name), 'errors' => $errors]) }}
@endforeach
{{ FormField::buttons(['index' => route('translations.index') , 'label' => isset($translation) ? 'Mettre à jour' : 'Enregistrer']) }}
{{ Form::close() }}