@extends('layouts.erp') @section('title', $item->last_name.' '.$item->first_name) @section('page_title', $item->last_name.' '.$item->first_name) @section('page_sub', $item->employee_number.' · '.($item->position ?: 'Employé')) @section('content') @php $fmt = fn ($n) => number_format((float) $n, 0, ',', ' ').' F'; $initials = strtoupper(substr((string) $item->first_name, 0, 1).substr((string) $item->last_name, 0, 1)); $statusClass = match ($item->status) { 'actif' => 'ok', 'suspendu', 'conge' => 'warn', default => 'gray', }; @endphp
Modifier
{{ $initials }}

{{ $item->last_name }} {{ $item->first_name }}

{{ $item->employee_number }} · {{ $item->position ?: 'Poste non renseigné' }}
{{ ucfirst($item->status ?: '—') }}
@if($item->phone) Appeler @endif
Fiche
Poste{{ $item->position ?: '—' }}
Département{{ $item->department ?: '—' }}
Agence{{ $item->boutique->name ?? '—' }}
Embauche{{ optional($item->hire_date)->format('d/m/Y') ?: '—' }}
Contrat{{ $item->contract_type ?: '—' }}
Fin de contrat{{ optional($item->contract_end)->format('d/m/Y') ?: '—' }}
Salaire{{ $item->salary !== null ? $fmt($item->salary) : '—' }}
Téléphone@if($item->phone){{ $item->phone }}@else — @endif
Statut{{ ucfirst($item->status ?: '—') }}
Documents
@if($item->documents->isEmpty())
Aucun document.
@else
@foreach($item->documents as $doc) @endforeach
TypeTitreDate
{{ $doc->type }} {{ $doc->title }} {{ optional($doc->document_date)->format('d/m/Y') ?: '—' }}
@endif
@csrf
Avances, prêts, primes, sanctions, formations
@if($item->events->isEmpty())
Aucun événement.
@else
@foreach($item->events as $event) @endforeach
DateTypeDescriptionMontantStatut
{{ optional($event->event_date)->format('d/m/Y') }} {{ \App\Models\EmployeeEvent::TYPES[$event->type] ?? $event->type }} {{ $event->description }} {{ $fmt($event->amount) }} {{ $event->status }}
@endif
@csrf
Congés / Absences
@if($item->leaves->isEmpty())
Aucun congé.
@else
@foreach($item->leaves as $lv) @endforeach
TypeDuAuJoursStatut
{{ $lv->type }} {{ optional($lv->start_date)->format('d/m/Y') }} {{ optional($lv->end_date)->format('d/m/Y') }} {{ $lv->days }} {{ ucfirst($lv->status) }}
@endif
@endsection