@extends('layouts.portal') @section('title', 'Director Dashboard') @section('heading', 'Hospital Director Dashboard') @section('content') @include('partials.welcome-card', ['intro' => 'Assign Supervisory Consultants and second six-month placements, and give final approval to quarterly evaluations.']) @include('partials.stats', ['icons' => ['ri-hospital-line','ri-user-heart-line','ri-user-search-line','ri-calendar-todo-line','ri-inbox-unarchive-line']]) @include('partials.evaluation.queue', [ 'title' => 'Evaluations awaiting your approval', 'reviewRoute' => 'director.evaluations.edit', 'empty' => 'No evaluations are waiting for your approval.', ])

Intern Medical Officers

Interns, Consultants & Placements

@if($n = $interns->whereNull('consultant_id')->count()) {{ $n }} awaiting consultant @endif @if($n = $interns->where('period', 1)->whereNull('secondPeriod')->count()) {{ $n }} second period to assign @endif
@forelse($interns as $a) @empty @endforelse
Intern Period Unit / Specialty Supervisory Consultant Second six months
{{ $a->intern->name }}{{ $a->hospital->name }} P{{ $a->period }} {{ $a->starts_on->format('j M Y') }} – {{ $a->endsOn()->format('j M Y') }} {{ $a->unit ?? '—' }}{{ $a->specialty }} @if($a->consultant) {{ $a->consultant->name }} @else Not assigned @endif @if($a->period === 2) This is the second period @elseif($s = $a->secondPeriod) @if($s->hospital_id === $a->hospital_id) Same hospital @else {{ $s->hospital->name }} @endif From {{ $s->starts_on->format('j M Y') }} @else Not assigned @endif
No interns are currently placed at your hospitals.
@include('partials.hospital-table', ['eyebrow' => 'Your institutions', 'title' => 'Assigned Hospitals']) @endsection