DSARs
@can('dsars.create')
@endcan
@if($draftTranches->isNotEmpty())
@foreach($draftTranches as $draftTranche)
Draft tranche in progress
— {{ $draftTranche->dsars->count() }} DSAR(s) awaiting review
started {{ $draftTranche->created_at->diffForHumans() }}
Continue
@endforeach
@endif
@if($totalCount > 0)
@php
$sentPct = $totalCount > 0 ? round($sentCount / $totalCount * 100) : 0;
$receivedPct = $totalCount > 0 ? round($receivedCount / $totalCount * 100) : 0;
@endphp
{{ $sentCount }} / {{ $totalCount }} Sent ({{ $sentPct }}%)
{{ $receivedCount }} / {{ $totalCount }} Received ({{ $receivedPct }}%)
@endif
@if($dsars->count())
@php $needsPostingCount = $dsars->where('status', 'needs posting')->count(); @endphp
@can('dsars.mark-posted')
@if($needsPostingCount > 0)
@if(count($postIds) > 0)
@endif
@endif
@endcan
@else
No DSARs have been created.
@endif
@if($showAdd)