@extends('layouts.app') @section('title', 'Hero Slides') @section('nav_website', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Homepage Hero Slides') @section('page_subtitle', 'The rotating banner at the top of the homepage') @section('content') @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif @php $inp = 'w-full border-[0.5px] border-gray-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-teal-500/20 focus:border-teal-400'; @endphp
Back to Website CMS {{-- Add --}}

Add a Slide

@csrf
{{-- List --}} @if($slides->isEmpty())
No slides yet. Add one above (the homepage shows a gradient placeholder until then).
@else
@foreach($slides as $s)
@if($s->image_path)@else
Gradient
@endif
{{ $s->title ?: 'Untitled slide' }} @if(!$s->active)Hidden@endif

{{ $s->caption }}

Translate
@csrf @method('DELETE')
@csrf @method('PATCH')
@endforeach
@endif
@endsection