@extends('layouts.admin') @section('title', 'Homepage Banners - Admin') @section('content') @php($u = auth()->user())

Homepage banners

Manage the image carousel on the public home page. Only active banners are shown.

Back to Settings
@if(session('success')) @endif @if($errors->any())
@endif @if($u?->hasPermission('settings', 'manage'))
Add banner
@csrf
JPG, PNG, WebP — max 5 MB. Recommended size: 1920 x 450 px (same ratio required).
@endif
Existing banners
@if($banners->isEmpty())

No banners yet. Add one above or the home page will use the default static image.

@else
@if($u?->hasPermission('settings', 'manage')) @endif @foreach($banners as $banner) @if($u?->hasPermission('settings', 'manage')) @endif @if($u?->hasPermission('settings', 'manage')) @endif @endforeach
Preview Name URL Order StatusActions
{{ $banner->name }} @if($banner->url) {{ \Illuminate\Support\Str::limit($banner->url, 40) }} @else — @endif {{ $banner->sort_order }} @if($banner->is_active) Active @else Inactive @endif
@csrf @method('DELETE')
@csrf @method('PUT')
Use 1920 x 450 px (same ratio required).
id ? (bool) old('is_active', $banner->is_active) : $banner->is_active)>
@endif
@endsection