@if(!empty($schadsBreaches) && count($schadsBreaches) > 0)
@foreach($schadsBreaches as $breach) @endforeach
Rule Violated Severity Shifts Involved Details / Reason
{{ $breach->rule_code }} @if(strtolower($breach->severity) === 'illegal') Illegal @else Warning @endif @if(!empty($breach->allocations) && count($breach->allocations) > 0)
    @foreach($breach->allocations as $bAlloc) @php $alloc = $bAlloc->allocation; $shift = $alloc ? $alloc->shift : null; $client = $alloc && $alloc->master ? $alloc->master->participant : null; $status = $alloc && $alloc->master ? ($alloc->master->save_as == 1 ? 'Finalized' : 'Draft') : ''; @endphp @if($alloc && $shift)
  • {{ !empty($shift->date) ? date("d/m/Y", strtotime($shift->date)) : '' }}{{ $shift->shift ?? '' }} ({{ $alloc->start_time ?? '' }} - {{ $alloc->end_time ?? '' }}) @if($client)
    Client: {{ $client->name ?? '' }} @endif @if($status) {{ $status }} @endif
  • @endif @endforeach
@else N/A @endif
{{ $breach->message }}
@else
No SCHADS 2026 breaches detected for this staff member in this week.
@endif