@extends('layouts.admin')
@section('title', $k['title'])
@section('heading', $k['title'])
@php
$icons = ['enquiries' => 'mail', 'volunteers' => 'users', 'subscribers' => 'heart'];
$colKeys = array_keys($k['cols']);
$firstKey = $colKeys[0];
$metaKeys = array_values(array_diff($colKeys, [$firstKey, 'type', 'created_at']));
$dateKey = array_key_exists('created_at', $k['cols']) ? 'created_at' : null;
$typeLabels = ['contact' => 'Contact', 'partner' => 'Partner', 'campaign' => 'Campaign'];
$activeType = request('type');
$base = route('admin.inbox.index', $k['key']);
@endphp
@section('content')
{{ $items->total() }} {{ $items->total() === 1 ? $k['single'] : \Illuminate\Support\Str::plural($k['single']) }}@if ($k['has_read'] && ($unreadCount ?? 0)) · {{ $unreadCount }} unread@endif{{ $k['title'] }}
@if ($q || request('unread') || $activeType) Nothing matches your filters. @else Nothing here yet. @endif