@if(auth()->user()?->isPlatformUser()) @php $activeWorkspace = app(\App\Models\Solicitor\Solicitor::class); @endphp
  • {{ $activeWorkspace?->name ?? 'No Workspace' }}

  • @endif @can('dashboard.view')
  • Dashboard
  • @endcan @can('tasks.admin')
  • Task Hub
  • @endcan @can('workboard.view') @php $workboardCategories = \App\Models\WorkboardCategory::withCount(['availableItems'])->latest()->get(); $workboardTotal = $workboardCategories->sum('available_items_count'); @endphp
  • Workboard @if($workboardTotal > 0) {{ $workboardTotal }} @endif
    @foreach($workboardCategories as $category) {{ $category->name }} @if($category->available_items_count > 0) {{ $category->available_items_count }} @endif @endforeach @if($workboardCategories->isNotEmpty())
    @endif View All
  • @endcan @can('inbox.view') @php $inboxUnread = \App\Models\Solicitor\SolicitorEmailSender::where('solicitor_id', auth()->user()->solicitor_id) ->withCount(['inboundMessages as unread_count' => fn($q) => $q->whereNull('read_at')]) ->get() ->sum('unread_count'); $triagePending = \App\Models\Contact\Hub\ContactMessage::inbound() ->where('solicitor_id', auth()->user()->solicitor_id) ->whereIn('triage_status', ['pending', 'in_progress']) ->whereIn('triage_queue', ['dsar_evidence', 'dsar_updates', 'dsar_needs_research', 'unknown']) ->count(); @endphp
  • Inbox @if($inboxUnread > 0) {{ $inboxUnread }} @endif
  • Triage @if($triagePending > 0) {{ $triagePending }} @endif
  • @endcan @can('clients.view')
  • Clients
  • @endcan @can('solicitors.view')
  • Solicitors
  • @endcan @can('institutions.view')
  • Institutions
  • @endcan
  • DSARs
    @can('dsars.view') Outstanding DSARs @endcan @can('dsars.types.view') DSAR Types @endcan
  • @can('print-queue.view')
  • Print Queue
  • @endcan {{-- Reports --}} @can('reports.view')
  • Reports
    @can('reports.tranches.view') Tranche Report @endcan @can('reports.status') Status Report @endcan @can('reports.status.days') Days In Status Report @endcan @can('dsars.report') DSAR Report @endcan @can('reports.latest-actions.view') Latest Actions @endcan @can('reports.system-changes.view') System Changes @endcan
  • @endcan {{-- Admin: Tranches, Lead Sources, Monitoring, Communications, Users, Settings --}} @canany(['tranches.view', 'sources.view', 'monitoring.view', 'templates.view', 'templates.create', 'templates.edit', 'communications.logs.view.own', 'communications.logs.view.all', 'users.view', 'roles.view', 'permissions.view', 'statuses.view', 'tags.view', 'doc-types.view', 'key-dates.view', 'workboard.manage'])
  • Admin
    @can('tranches.view') Tranches @endcan @can('sources.view') Lead Sources @endcan @can('monitoring.view') Monitoring @endcan @canany(['templates.view', 'templates.create', 'templates.edit', 'communications.logs.view.own', 'communications.logs.view.all'])
    Communications
    @canany(['templates.view', 'templates.create', 'templates.edit']) Templates @endcanany @canany(['communications.logs.view.own', 'communications.logs.view.all']) Communications Log Dialler Dashboard @endcanany @endcanany @can('users.view')
    Users
    Users @can('roles.view') Roles @endcan @can('permissions.view') Permission Centre @endcan @endcan @canany(['statuses.view', 'tags.view', 'doc-types.view', 'key-dates.view', 'workboard.manage'])
    Settings
    @can('statuses.view') Claim Statuses @endcan @can('tags.view') Tags @endcan @can('doc-types.view') Document Types @endcan @can('key-dates.view') Key Dates @endcan @can('workboard.manage') Workboard Categories @endcan @endcanany
  • @endcanany