@php use Carbon\Carbon; @endphp
{{-- Header --}}

{{ $institution->display_name }}

Outstanding DSARs drill-down

{{-- Summary stat chips --}}

Outstanding

{{ $totalOutstanding }}

Sent but not yet completed

Flagged

{{ $flaggedCount }}

Require attention

Oldest Outstanding

{{ $oldestDays !== null ? (int) $oldestDays . ' days' : '—' }}

Age of oldest open DSAR
{{-- Filters --}}
{{-- Results --}} @if($grouped->isEmpty())
No outstanding DSARs match the current filters.
@else @foreach($grouped as $claimId => $dsars) @php $claim = $dsars->first()->claim; @endphp
{{ $claim?->client?->fullName ?? '—' }} @if($claim?->slug) {{ $claim->slug }} @endif {{ $dsars->count() }} DSAR{{ $dsars->count() !== 1 ? 's' : '' }}
@foreach($dsars as $dsar) @php $days = $dsar->created_at->diffInDays(); @endphp @endforeach
Status Sent Days Outstanding Latest Response
@if($dsar->is_flagged) @endif {{ ucwords($dsar->status) }} {{ $dsar->created_at->format('d M Y') }} {{ round($days) }}d @if($days > 30) @endif @if($dsar->latestResponse) {{ $dsar->latestResponse->typeLabel }} @else None @endif @can('dsars.view') View @endcan
@endforeach @endif