@extends('admin.layout') @section('title', 'Banner Home') @section('subtitle', 'Slide carousel di bagian atas home customer') @php $inputClass = 'w-full rounded-xl border border-line px-3 py-2 text-sm outline-none focus:border-brand focus:ring-2 focus:ring-brand/20'; $labelClass = 'block text-[11px] font-semibold uppercase tracking-wide text-sub mb-1'; @endphp @section('content')

{{ $banners->where('is_active', true)->count() }} dari {{ $banners->count() }} banner tampil di aplikasi. Banner tanpa gambar tampil sebagai kartu teks di aplikasi.

+ Tambah banner
@csrf
@forelse ($banners as $banner)
{{-- Pratinjau meniru kartu oranye di aplikasi: tag di atas, judul & keterangan di dasar. --}}
imageUrl()) style="background-image: url('{{ $banner->imageUrl() }}')" @endif> {{-- Lapisan gelap supaya teks tetap terbaca di atas gambar apa pun. --}} @if ($banner->imageUrl())
@endif @if ($banner->tag) {{ $banner->tag }} @else {{-- Tanpa tag, kartu tidak perlu pil kosong — teksnya tetap menempel di dasar berkat justify-between di wadah. --}} @endif @if ($banner->displayTitle() || $banner->displaySubtitle())
@if ($banner->displayTitle())

{{ $banner->displayTitle() }}

@endif @if ($banner->displaySubtitle())

{{ $banner->displaySubtitle() }}

@endif
@endif
{{ $banner->is_active ? 'Tampil' : 'Disembunyikan' }} Urutan {{ $banner->sort_order }} @if ($banner->image_path) Bergambar @else Tanpa gambar @endif
@csrf
Ubah
@csrf @method('PUT')
@csrf @method('DELETE')
@empty

Belum ada banner. Home customer akan tampil tanpa carousel.

@endforelse
@endsection