@extends('layouts.shell') @section('title', 'Brands') @section('subtitle', 'Sports brands, contracts, home order, and trusted badges.') @section('actions') Add brand @endsection @section('content')
@if ($categoryId) Clear @endif
@csrf @if ($categoryId) @endif
Sports brands {{ $brands->count() }} total
@forelse ($brands as $brand) @php $contractStatus = $brand->contractStatusLabel(); @endphp @empty @endforelse
Brand Sports Trusted Status Contract Contract status Home Home order
@if ($brand->imageUrl()) @endif
{{ $brand->name }}
@if ($brand->owner_name)
{{ $brand->owner_name }}
@endif
{{ $brand->sports->pluck('name')->join(', ') ?: '—' }} {{ $brand->is_trusted ? 'Yes' : 'No' }} {{ $brand->is_active ? 'Active' : 'Inactive' }}
{{ optional($brand->contract_start_date)->format('Y-m-d') ?? '—' }} → {{ optional($brand->contract_end_date)->format('Y-m-d') ?? '—' }}
{{ $contractStatus }} {{ $brand->show_on_home ? 'Yes' : 'No' }} {{ $brand->home_sort_order }} Edit
{{ $categoryId ? 'No brands in this category.' : 'No brands yet.' }}
@foreach ($brands as $brand)
@csrf @method('DELETE') @if ($categoryId) @endif
@endforeach @endsection