@props(['route' => '#', 'title' => 'Edit']) {{ $slot ?? 'Edit' }}
@csrf @method('DELETE')
@props(['route' => '#', 'status' => false])
@csrf @method('PATCH')
@props(['status' => 'unknown', 'class' => '']) @php $classes = match($status) { 'active', 'confirmed', 'published', '1', 'true' => 'bg-green-100 text-green-700', 'inactive', 'cancelled', 'draft', '0', 'false' => 'bg-red-100 text-red-700', 'pending' => 'bg-yellow-100 text-yellow-700', 'featured' => 'bg-purple-100 text-purple-700', default => 'bg-gray-100 text-gray-700' }; @endphp {{ ucfirst($status) }} @props(['route' => '#', 'title' => 'View']) {{ $slot ?? 'View' }}