68 lines
2.9 KiB
PHP
68 lines
2.9 KiB
PHP
@extends('layout.app')
|
|
|
|
@section('title', __('models.classes.informations'))
|
|
@section('description', __('Liste de toutes les :model', ['model' => __('models.classes.informations')]))
|
|
|
|
@section('content')
|
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center">
|
|
@include('breadcrumbs.breadcrumb-body')
|
|
<a href="{{ route('bo.informations.create') }}"
|
|
class="btn btn-primary float-right"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="{{ __('crud.helpers.create_model', ['model' => Str::singular(__('models.classes.informations'))]) }}">
|
|
<i class="fa-solid fa-plus"></i>
|
|
</a>
|
|
</div>
|
|
@include('bo.modules.search-bar')
|
|
<table class="table table-hover">
|
|
@if (count($informationModels) > 0)
|
|
<thead>
|
|
@include('bo.modules.table-col-sorter', [
|
|
'cols' => [
|
|
'title' => Str::ucfirst(__('validation.attributes.title')),
|
|
'message' => Str::ucfirst(__('validation.attributes.message')),
|
|
'type' => Str::ucfirst(__('validation.attributes.announce_type')),
|
|
],
|
|
])
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($informationModels as $informationModel)
|
|
<tr class="list-item border-bottom">
|
|
<td class="text-center align-middle">{{ $informationModel->title }}</td>
|
|
<td class="text-center align-middle">{{ $informationModel->message }}</td>
|
|
<td class="text-center align-middle">{{ $informationModel->type->label() }}</td>
|
|
<td class="text-end align-middle">
|
|
<form action="{{ route('bo.informations.destroy', $informationModel->id) }}"
|
|
method="POST"
|
|
class="btn-group confirmDeleteTS"
|
|
novalidate>
|
|
<a class="btn btn-sm btn-primary"
|
|
href="{{ route('bo.informations.edit', ['information' => $informationModel->id]) }}"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="{{ __('crud.actions.update') }}">
|
|
<i class="fa-solid fa-pencil"></i>
|
|
</a>
|
|
@csrf
|
|
@method('DELETE')
|
|
<button type="submit"
|
|
class="btn btn-sm btn-danger"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="{{ __('crud.actions.delete') }}">
|
|
<i class="fa-solid fa-trash"></i>
|
|
</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
@else
|
|
<tr>
|
|
<td class="text-center fw-bold border-0">{{ __('crud.other.no_model_found', ['model' => Str::singular(__('models.classes.informations'))]) }}</td>
|
|
</tr>
|
|
@endif
|
|
</table>
|
|
{!! $informationModels->links() !!}
|
|
@endsection
|