@extends('layouts.admin') @section('title', 'Allocations') @section('heading', 'Hospital Allocations') @section('subheading', 'Every six-month placement. Period 1 comes from the Ministry of Health; period 2 is assigned by the period-1 Hospital Director.') @section('content')
@include('admin.partials.toolbar', ['placeholder' => 'Search by intern, reg. no or hospital…', 'noun' => 'placements', 'filters' => [ 'batch' => ['' => 'All batches'] + $batches->all(), 'period' => ['' => 'Both periods', '1' => 'First six months', '2' => 'Second six months'], 'filter' => ['' => 'All placements', 'no_consultant' => 'Without consultant', 'no_second_period' => 'Second period not assigned'], ]])
@forelse($items as $a) @empty @include('admin.partials.empty', ['cols' => 5, 'message' => 'No placements found', 'icon' => 'ri-node-tree']) @endforelse
InternPeriod

{{ $a->intern->name }}

{{ $a->hospital->name }}

{{ $a->consultant?->name ?? 'No consultant yet' }}

P{{ $a->period }}

{{ $a->starts_on->format('j M Y') }} – {{ $a->endsOn()->format('j M Y') }}

@if($a->period === 1 && ! $a->secondPeriod)

P2 not assigned

@endif
@include('admin.partials.pagination', ['items' => $items])
@endsection