@extends('layouts.app') @section('title', 'Staff Certificates') @section('content') @include('employee._flash') {{-- Page title ("Staff Certificates") comes from the layout header. --}}

workspace_premium Check and approve the certificates your staff upload (external courses like Oliver McGowan, or training from a previous employer), and upload certificates for them yourself. An approved certificate marks the course complete and files it in their Vault.

{{-- Tabs --}} {{-- What do you want to do? — three option cards (act as tabs) --}} @php $tabs = [ 'approve' => ['fact_check', 'Check & approve', 'Certificates your staff have uploaded — approve or send back', $pending->count(), 'waiting'], 'upload' => ['cloud_upload', 'Upload for a staff member', 'Add training they completed elsewhere — approved straight away', null, null], 'history' => ['history', 'Recently reviewed', 'Certificates already approved or sent back', $recent->count(), 'reviewed'], ]; @endphp

What would you like to do?

@foreach($tabs as $key => [$icon, $label, $help, $count, $countWord]) @php $on = $tab === $key; @endphp @endforeach
@if($pending->isEmpty())
task_alt

Nothing waiting for you to approve

When a staff member uploads a certificate, it will appear here for you to check.

@else
@foreach($pending as $sub)

{{ $sub->user->name }}

{{ $sub->course->title }} {{ $sub->sourceLabel() }}

📅 Completed {{ optional($sub->completion_date)->format('j M Y') }} @if($sub->certificate_number)#️⃣ {{ $sub->certificate_number }}@endif @if($sub->provider)🏫 {{ $sub->provider }}@endif Uploaded {{ $sub->created_at->format('j M, H:i') }}
@if($sub->note)

Note: {{ $sub->note }}

@endif {{-- On-server anti-fake signals --}} @php $flags = $sub->flags(); @endphp @if(!empty($flags))

flag Check before approving

    @foreach($flags as $flag)
  • {{ $flag }}
  • @endforeach
@else

check_circle No automatic warnings — still review the certificate.

@endif
visibility View certificate
@csrf
@csrf
@endforeach
@endif
{{-- /approve --}} {{-- Upload for staff — a manager's upload is approved straight away --}}
cloud_upload

Upload certificates for a staff member

For training they’ve already completed (e.g. with a previous employer). Your upload is approved straight away — the course is marked complete from the certificate date and filed in their Vault. Logged under your name.

{{-- Step 1: pick the staff member --}}

1 Choose the staff member

{{-- Picked person (shown once chosen) --}} {{-- Finder: service filter + type-to-search with a results list --}}
{{-- Searchable service dropdown (value in the hidden #staffService, fires "change") --}}
search
    {{-- Step 2: certificates (shown once a person is picked) --}}

    Choose a staff member to start — filter by service or start typing a name.

    @if($recent->isNotEmpty())
    history

    Recently reviewed

    @foreach($recent as $r) @endforeach
    Staff member Course Outcome By When
    {{ $r->user->name }} {{ $r->course->title }} @if($r->isApproved()) check_circle Approved @else cancel Rejected @endif {{ $r->reviewer->name ?? '—' }} {{ optional($r->reviewed_at)->format('j M Y') }}
    @endif @if($recent->isEmpty())
    history

    Nothing reviewed yet.

    @endif
    {{-- /history --}} @endsection