@extends('admin.layouts.app') @section('title', __('admin.menu_banners')) @section('heading', __('admin.menu_banners')) @section('content') @can(\App\Models\Permission::BANNERS_CREATE) @else @endcan
{{ __('admin.cancel') }}
@forelse ($banners as $banner) @php $positionClass = match ($banner->position) { 'home_top' => ' text-indigo-700', 'home_middle' => 'text-sky-700', 'home_bottom' => ' text-violet-700', default => 'text-slate-700', }; @endphp @empty @endforelse
# {{ __('admin.image') }} {{ __('admin.title') }} {{ __('admin.banner_position') }} {{ __('admin.sort_order') }} {{ __('admin.status') }} {{ __('admin.banner_schedule') }} {{ __('admin.updated_at') }} {{ __('admin.actions') }}
{{ $banner->id }} {{ $banner->resolvedAltText() }}

{{ $banner->localizedTitle() }}

{{ locale_field($banner, 'alt_text') ?: __('admin.banner_alt_fallback') }}

{{ __("admin.banner_position_{$banner->position}") }} {{ $banner->sort_order }}

{{ $banner->starts_at?->format('Y-m-d H:i') ?? '—' }}

{{ $banner->ends_at?->format('Y-m-d H:i') ?? '—' }}

{{ $banner->updated_at?->diffForHumans() }}
{{ __('admin.banner_empty') }}
{{ $banners->links() }}
@endsection