@extends('layouts.shell') @section('title', 'Sliders') @section('subtitle', 'Home banners. After the end date they leave the home page automatically.') @section('actions') Add slider @endsection @section('content')
All sliders {{ $sliders->total() }} total
@forelse ($sliders as $slider) @php $status = $slider->scheduleStatus(); @endphp @empty @endforelse
Image Title Start date End date Status
@if ($slider->imageUrl())@endif
{{ $slider->title ?: 'Untitled' }}
@if ($slider->link_url)
{{ Str::limit($slider->link_url, 42) }}
@endif
{{ $slider->starts_at?->format('d M Y') ?? '—' }} {{ $slider->ends_at?->format('d M Y') ?? '—' }} {{ $status }} Edit
@csrf @method('DELETE')
No sliders yet.
{{ $sliders->links() }}
@endsection