@extends('layouts.shell') @section('title', 'Offers') @section('subtitle', 'Promotions attached to existing brands.') @section('actions') Add offer @endsection @section('content')
@csrf
All offers {{ $offers->total() }} total
@forelse ($offers as $offer) @empty @endforelse
Offer Brand Valid Location Status
{{ $offer->title }} {{ $offer->brand?->name }} {{ optional($offer->valid_from)->format('d M Y') }} – {{ optional($offer->valid_until)->format('d M Y') }} {{ $offer->city?->name ?: '—' }} {{ $offer->is_active ? 'Active' : 'Inactive' }} Edit
No offers yet.
{{ $offers->links() }}
@foreach ($offers as $offer)
@csrf @method('DELETE')
@endforeach @endsection