@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
| Type | Titre | Date |
|---|---|---|
| {{ $doc->type }} | {{ $doc->title }} | {{ optional($doc->document_date)->format('d/m/Y') ?: '—' }} |
| Date | Type | Description | Montant | Statut |
|---|---|---|---|---|
| {{ optional($event->event_date)->format('d/m/Y') }} | {{ \App\Models\EmployeeEvent::TYPES[$event->type] ?? $event->type }} | {{ $event->description }} | {{ $fmt($event->amount) }} | {{ $event->status }} |
| Type | Du | Au | Jours | Statut |
|---|---|---|---|---|
| {{ $lv->type }} | {{ optional($lv->start_date)->format('d/m/Y') }} | {{ optional($lv->end_date)->format('d/m/Y') }} | {{ $lv->days }} | {{ ucfirst($lv->status) }} |