@extends('layouts.public') @section('content')

Current specials

Approved promotions

@if(!$publicSpecialsEnabled)
Public specials are currently turned off. Approved promotions remain available to authorized staff in the administration system and can be enabled again from Business Settings.
@else
@forelse($specials as $special)

{{ $special->title }}

@if($special->description)

{{ $special->description }}

@endif@if($special->categories->isNotEmpty() || $special->products->isNotEmpty())
Applies to:@if($special->categories->isNotEmpty()){{ $special->categories->pluck('name')->join(', ') }}@endif@if($special->products->isNotEmpty())
@foreach($special->products->filter(fn($product)=>$product->status==='published' && $product->published_at?->isPast()) as $product){{ $product->name }}@endforeach
@endif
@endif@if($special->terms)
Terms: {{ $special->terms }}
@endif@if($special->ends_at)

Ends {{ $special->ends_at->toFormattedDateString() }}

@endif
@empty
There are no approved public specials at this time.
@endforelse
@endif
@endsection