ldc-jeusselin/resources/views/bo/static_pages/index.blade.php

37 lines
1.4 KiB
PHP

@extends('layouts.bo')
@section('content')
<div class="card">
<div class="card-header">
Liste des pages statiques
</div>
<div class="card-body">
<table class="table table-striped table-sm no-wrap-header text-center">
<thead class="table-light">
<tr>
<th scope="col">Type</th>
<th scope="col">Titre</th>
<th scope="col">Mis à jour le</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
@foreach($staticPageModels as $staticPageModel)
<tr>
<td>{{$staticPageModel->type->label()}}</td>
<td>{{$staticPageModel->title}}</td>
<td>{{$staticPageModel->updated_at->isoFormat('DD MMMM Y à HH:mm')}}</td>
<td><a href="{{route('bo.static_pages.edit', $staticPageModel->id)}}" class="btn btn-sm btn-primary">Éditer</a></td>
</tr>
@endforeach
</tbody>
</table>
<div class="row justify-content-center">
<div class="col-12 col-md-6 p-0 p-md-3">
{{ $staticPageModels->links() }}
</div>
</div>
</div>
</div>
@endsection