@extends('layouts.admin') @section('header')

WebResto

Gérer votre carte ...
Voir le tutoriel
@stop @section('content') {!! Form::model($plat, array('files' => true)) !!}
{!! Html::link(action('\Plugins\Webresto\Controller\WebrestoController@plats'), "Annuler") !!}
{!! Form::submit("Enregistrer le plat") !!}
@if(count(getAllLangues()) > 1) @endif
Détails du plat
Nom du plat *
{!! Form::text('libelle') !!}
{!! Form::checkbox('actif') !!}
{!! Form::checkbox('menu') !!}
Catégorie :
{!! Form::select('categorie_plat_id', $categories) !!}
Entrée :
{!! Form::checkbox('entree') !!}
Plat :
{!! Form::checkbox('plat') !!}
Dessert :
{!! Form::checkbox('dessert') !!}
Description du plat
{!! Form::textarea('description', old('description'), array('class' => 'editor')) !!}
@if(count(getAllLangues()) > 1) @foreach (getAllLangues() as $langue) @if($langue->suffixe != "fre")
Détails du plat
Nom du plat *
{!! Form::text($langue->suffixe . '_libelle', getTranslation("Plat", "libelle", $plat ? $plat->id : null, $plat ? $plat->libelle : null, $langue->suffixe)) !!}
{!! Form::checkbox('actif') !!}
{!! Form::checkbox('menu') !!}
Catégorie :
{!! Form::select('categorie_plat_id', $categories) !!}
Entrée :
{!! Form::checkbox('entree') !!}
Plat :
{!! Form::checkbox('plat') !!}
Dessert :
{!! Form::checkbox('dessert') !!}
Description du plat
{!! Form::textarea($langue->suffixe . '_description', getTranslation("Plat", "description", $plat ? $plat->id : null, $plat ? $plat->description : null, $langue->suffixe), array ("class" => "editor")) !!}
@endif @endforeach @endif
Prix :*
{!! Form::text('prix') !!} €

Visuel du plat
Visuel :
{!! Form::file('image') !!}
Le poids de votre fichier ne doit pas dépasser 5 Mo
*Champs obligatoires
{!! Html::link(action('\Plugins\Webresto\Controller\WebrestoController@plats'), "Annuler") !!}
{!! Form::submit("Enregistrer le plat") !!}
{!! Form::hidden('id') !!} {!! Form::hidden('visuel') !!} {!! Form::close() !!} @stop @section('css') @parent {!! Html::style("css/jquery.tzCheckbox.css") !!} {!! Html::style("css/tabs.css") !!} @stop @section('js') @parent {!! Html::script("https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js") !!} {!! Html::script("js/jquery.tzCheckbox.js") !!} {!! Html::script("js/tinymce/tinymce.min.js") !!} {!! Html::script("js/jquery.easytabs.min.js") !!} @stop