{{-- Search --}}
@if ( request('search') || request('status') ) Clear @endif
@if ($publishers->count())
@foreach ($publishers as $publisher) @php $initials = collect( preg_split( '/\s+/', trim($publisher->name) ) ) ->filter() ->take(2) ->map( fn ($word) => strtoupper( mb_substr($word, 0, 1) ) ) ->implode(''); $statusClass = match ($publisher->status) { 'active' => 'badge--success', 'pending' => 'badge--warning', 'suspended' => 'badge--danger', default => 'badge--muted', }; @endphp @endforeach
Publisher Registration Authors Books Licences Status Updated
{{ $initials }}
{{ $publisher->email ?? 'No email' }}
{{ $publisher->registration_number ?? '—' }} {{ number_format( $publisher->authors_count ?? $publisher->authors?->count() ?? 0 ) }} {{ number_format( $publisher->books_count ?? $publisher->books?->count() ?? 0 ) }} {{ number_format( $publisher->school_book_licenses_count ?? $publisher->schoolBookLicenses?->count() ?? 0 ) }} {{ str($publisher->status)->title() }} {{ $publisher->updated_at?->format('d M Y') }}
@can('update', $publisher) @endcan
@if (method_exists($publishers, 'links'))
{{ $publishers->links() }}
@endif @else

No publishers found

Add a publishing partner or adjust your current filters.

@can('create', App\Models\Publisher::class) Add Publisher @endcan
@endif