@extends('layouts.app') @section('title', $communicator->name) @section('page-title', $communicator->name) @section('content')
{{-- Profile header --}}
{{ strtoupper(substr($communicator->name, 0, 2)) }}

{{ $communicator->name }}

@if($communicator->tier) {{ $communicator->tier->name }} @endif {{ ucfirst($communicator->status) }}
Phone: {{ $communicator->full_phone }}
@if($communicator->momo_number)
MoMo: {{ $communicator->momo_number }}
@endif
Region: {{ $communicator->region?->name ?? 'โ€”' }}
@if($communicator->constituency)
Constituency: {{ $communicator->constituency }}
@endif
Languages: {{ $communicator->languages_list ?: 'โ€”' }}
@if($communicator->notes)

{{ $communicator->notes }}

@endif
{{-- Stats row --}}
{{ $communicator->deployments->count() }}
Total Deployments
{{ $communicator->deployments->where('status', 'completed')->count() }}
Completed
{{ $communicator->appraisals->where('status', 'completed')->count() }}
Appraisals Done
{{-- Deployments --}}

Recent Deployments

+ Deploy
@forelse($communicator->deployments->sortByDesc('deployment_date')->take(6) as $d)
{{ $d->station->name }}{{ $d->programme ? ' ยท '.$d->programme->name : '' }}
{{ $d->deployment_date->format('d M Y') }}
{{ ucfirst($d->status) }}
@empty
No deployments yet
@endforelse
{{-- Appraisals --}}

Appraisal History

+ Open Appraisal
@forelse($communicator->appraisals->sortByDesc('year')->sortByDesc('quarter') as $a)
{{ $a->quarter_label }}
@if($a->total_score !== null)
Score: {{ $a->total_score }} / 50 ({{ $a->score_percentage }}%)
@endif @if($a->tierBefore && $a->tierAfter && $a->status === 'completed')
{{ $a->tierBefore->name }} โ†’ {{ $a->tierAfter->name }}
@endif
{{ ucfirst($a->status) }}
@empty
No appraisals yet
@endforelse
@endsection