@can('cms.edit') {{ __('Add banner') }} @endcan @include('admin.cms.partials.nav') @if ($banners->isEmpty()) @else
@foreach ($banners as $banner) @endforeach
{{ __('Banner') }}{{ __('Shown in') }}{{ __('On tap') }}{{ __('Schedule') }}{{ __('Order') }}{{ __('Status') }}
{{ $banner->title }}
{{ __($banner->app->label()) }}{{ $banner->zone?->name ?? __('All zones') }} @if ($banner->action_type) {{ \App\Models\Banner::actionLabels()[$banner->action_type] ?? $banner->action_type }}{{ $banner->action_type === 'screen' ? \App\Models\Banner::screenLabel($banner->action_value) : $banner->action_value }} @else — @endif {{ $banner->starts_at?->toFormattedDateString() ?? __('Now') }} – {{ $banner->ends_at?->toFormattedDateString() ?? __('no end date') }} {{ $banner->sort_order }} @can('cms.edit')
{{ __('Edit') }}
@csrf @method('DELETE')
@endcan
{{ $banners->links() }}
@endif