@extends('layouts.portal') @section('title', 'Second Six Months') @section('heading', 'Assign Second Six-Month Placement') @section('content') @php $locked = $second && $second->evaluations->isNotEmpty(); $placement = old('placement', $second && $second->hospital_id !== $allocation->hospital_id ? 'other' : 'same'); @endphp Back to dashboard

Intern Medical Officer

{{ $allocation->intern->name }}

{{ $allocation->intern->registration_no ?? $allocation->intern->email }}

First six months

{{ $allocation->hospital->name }}

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

{{ $allocation->unit ?? '—' }} · {{ $allocation->consultant?->name ?? 'No consultant' }}

$second, 'border-dashed border-amber-300 bg-amber-50' => ! $second])>

Second six months

@if($second)

{{ $second->hospital->name }}

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

@else

Not assigned yet

@endif

Where will this intern complete the second six months?

Most interns continue at the same hospital. If the intern moves, the receiving hospital's Director will assign their Supervisory Consultant.

@if($locked)
Second-period evaluations have started, so this placement can no longer be changed.
@else
@csrf @method('PUT')
Placement @foreach([ 'same' => ['ri-hospital-line', 'Same hospital', 'Continue at '.$allocation->hospital->name], 'other' => ['ri-arrow-left-right-line', 'Another hospital', 'Transfer for the second six months'], ] as $value => [$icon, $title, $text]) @endforeach
$placement !== 'other'])>
@error('hospital_id')

{{ $message }}

@enderror

Normally the day after the first six months end. Runs for six months.

@error('starts_on')

{{ $message }}

@enderror
@endif
@endsection