2021-04-29 20:57:37 +00:00
|
|
|
@extends('layouts.app')
|
2021-04-28 17:05:04 +00:00
|
|
|
|
2021-04-29 20:57:37 +00:00
|
|
|
@section('title', 'Ajouter un menu')
|
2021-04-28 17:05:04 +00:00
|
|
|
|
2021-04-29 20:57:37 +00:00
|
|
|
@section('content')
|
2021-05-01 16:54:32 +00:00
|
|
|
<h1 class="title">Nouveau menu</h1>
|
2021-04-28 17:05:04 +00:00
|
|
|
|
2021-04-29 20:57:37 +00:00
|
|
|
<form method="POST" action="{{ route('menus.store') }}">
|
|
|
|
@csrf
|
2021-05-01 16:54:32 +00:00
|
|
|
<div class="field">
|
|
|
|
<label class="label">Titre du menu</label>
|
|
|
|
<div class="control">
|
|
|
|
<input id="title" name="title" type="text" placeholder="ex : pizza" class="@error('title') is-invalid @enderror">
|
|
|
|
</div>
|
|
|
|
<p class="help">Ou encore : pâtes, kebab, choucroute…</p>
|
|
|
|
</div>
|
2021-04-29 20:57:37 +00:00
|
|
|
|
|
|
|
@error('title')
|
|
|
|
<div class="alert alert-danger">{{ $message }}</div>
|
|
|
|
@enderror
|
|
|
|
|
2021-05-01 16:54:32 +00:00
|
|
|
<input class="button is-primary" type="submit" value="Nouveau menu">
|
2021-04-29 20:57:37 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
@endsection
|