ldc-boutique-cnc/resources/views/bo/sliders/create.blade.php
2021-04-14 17:33:55 +02:00

36 lines
1.5 KiB
PHP

@extends('layouts.bo-layout')
@section('content')
<form action="{{route('bo.sliders.store')}}" method="POST" enctype="multipart/form-data">
@csrf
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2"><a href="{{route('bo.sliders.index')}}" class="h2 text-decoration-none"><</a> Sliders <small class="text-muted">Création</small></h1>
<div class="btn-toolbar mb-2 mb-md-0">
<button type="submit" class="btn btn-sm btn-primary">Enregistrer</a>
</div>
</div>
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="form-group">
<label for="name">Label *</label>
<input type="text" id="label" name="label" class="form-control" placeholder="Label * " value="{{ old('label') }}" required>
</div>
<div class="form-group">
<label for="name">Slug</label>
<input type="text" id="slug" name="slug" class="form-control" placeholder="Slug" value="{{ old('slug') }}">
<small class="text-muted"> laisser vide pour une génération automatique </small>
</div>
<div class="form-group">
<label for="name">Commentaire</label>
<input type="text" id="commentaire" name="commentaire" class="form-control" placeholder="Commentaire" value="{{ old('commentaire') }}">
</div>
</form>
@endsection