@extends('layouts.app') @section('title', 'Not Started Courses') @section('content') @include('partials.flash') @php $role = auth()->user()->primaryRole(); @endphp arrow_back Compliance {{-- Filters --}}
@if($services->count() >= 1)
@endif
search
@if($q !== '' || $serviceId) Clear @endif
{{-- Not-started list --}}
hourglass_empty

Not started ({{ $notStarted->total() }})

@forelse($notStarted as $row) @php $detail = \Illuminate\Support\Facades\Route::has($role.'.compliance.worker') ? route($role.'.compliance.worker', $row->user_id) : null; $due = $row->due_at ? \Illuminate\Support\Carbon::parse($row->due_at) : null; @endphp @empty @endforelse
Care Worker Course Service Due
@if($detail){{ $row->worker }}@else{{ $row->worker }}@endif {{ $row->course }} {{ $row->service }} @if($due) Due {{ $due->format('j M Y') }} @php $left = (int) now()->startOfDay()->diffInDays($due->startOfDay(), false); @endphp · {{ $left }}d left @else No deadline @endif
task_alt

{{ $q !== '' || $serviceId ? 'No not-started courses match your filters.' : 'Nothing outstanding — everyone has started their training.' }}

@if($notStarted->hasPages())
{{ $notStarted->links() }}
@endif
@endsection