40 lines
1.6 KiB
PHP
40 lines
1.6 KiB
PHP
@extends('layouts.bo-layout')
|
|
|
|
@section('content')
|
|
<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">Sliders <small class="text-muted">Liste</small></h1>
|
|
|
|
@if ($errors->any())
|
|
@foreach($errors->all() as $error)
|
|
<span class="float-center text-danger">{{ $error }}</span>
|
|
@endforeach
|
|
@endif
|
|
<a href="{{route('bo.sliders.create')}}" class="btn btn-primary float-right">Créer un slider</a>
|
|
</div>
|
|
<table class="table">
|
|
<thead>
|
|
<th scope="col">Label</th>
|
|
<th scope="col">Slug</th>
|
|
<th scope="col">Commentaire</th>
|
|
<th></th>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($sliders as $slider)
|
|
<tr>
|
|
<td>{{$slider->label}}</td>
|
|
<td>{{$slider->slug}}</td>
|
|
<td>{{$slider->commentaire}}</td>
|
|
<td class="text-center">
|
|
<a href="{{route('bo.sliders.edit', $slider->id)}}" class="btn btn-sm btn-primary">Éditer</a>
|
|
<form action="{{route('bo.sliders.destroy', $slider->id)}}" method="POST" class="d-inline">
|
|
@method('DELETE')
|
|
@csrf
|
|
<input type="submit" class="btn btn-sm btn-danger" value="Supprimer"
|
|
onclick="return confirm('Êtes-vous sûr(e) ?')">
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@endsection
|