@extends('layouts.back') @section('title', sprintf('%s - %s', __('models.classes.sliders'), Str::ucfirst(__('liste')))) @section('breadcrumb', request()->route()->getName()) @section('content')
@include('back.breadcrumb.breadcrumb-body')

{{ $currentType->label }} {{ Str::ucfirst(__('liste')) }}

@push('scripts') @endpush
@include('back.modules.searchBar')
{{ $sliders->withQueryString()->onEachSide(1)->links() }}
@php $rst = !is_null(request()->rst); $routeName = request()->route()->getName(); $noOrder = Session::get("$routeName.sort_col") !== 'order' and (Session::has("$routeName.sort_col") or Session::has("$routeName.sort_way")); $noOrder = Session::get("$routeName.sort_col") !== '' and (Session::has("$routeName.sort_col") or Session::has("$routeName.sort_way")); $cols = ['title' => __('Titre'), 'order' => __('Ordre'), 'status' => __('Publication'), 'updated_at' => __('Mis à jour')]; @endphp @include('back.modules.tableColSorter', [ 'cols' => $cols, 'mobileHide' => ['status']]) @if($sliders->count()) @foreach ($sliders as $slider) @if(!$noOrder or $rst) @endif @endforeach @else @endif
{{ $slider->title }} @if(!($loop->first and $sliders->onFirstPage()))
@csrf
@endif @if (!($loop->last and $sliders->currentPage() === $sliders->lastPage()))
@csrf
@endif
@csrf
{{ $slider->updated_at->formatLocalized('%d/%m/%Y à %I:%M') }}
{{ __('Aucun résultat pour les :models', ['models' => __('models.classes.sliders') ]) }}
{{ $sliders->withQueryString()->onEachSide(1)->links() }}
@endsection