{{-- Filters --}}
@php $statusColors = [ 'Only Me' => 'badge bg-secondary', 'Restricted' => 'badge bg-warning text-dark', 'Public' => 'badge bg-success', 'Draft' => 'badge bg-info text-dark', ]; $badge = fn($name) => $statusColors[$name] ?? 'badge bg-light text-dark'; $sortIcon = fn($key) => $sort===$key ? ($direction==='asc'?'fa-sort-up text-primary':'fa-sort-down text-primary') : 'fa-sort text-muted'; @endphp {{-- Stats --}}
Totals: Total {{ $this->totals['total'] }}, Public {{ $this->totals['public'] }}, Draft {{ $this->totals['draft'] }}, Private {{ $this->totals['private'] }}
{{-- Table --}}
@forelse($fields as $f) {{-- Inline editable cells using contenteditable + blur hook --}} @empty @endforelse
Field Description Status Tracks Created Actions
{{ $f->field }} {{ $f->description }} {{-- show badge, click to cycle through a simple select if you want later --}} {{ $f->status->status ?? 'Unknown' }} {{ $f->tracks_count }} {{ optional($f->created_at)->format('M d, Y') }}
@csrf
@csrf @method('DELETE')
No fields found
Showing {{ $fields->firstItem() ?? 0 }} to {{ $fields->lastItem() ?? 0 }} of {{ $fields->total() }}
{{ $fields->links() }}