@extends('admin.layout') @section('title') Comptabilité @endsection @section('content')

Statistiques de Travail des Employés

Filtres appliqués:
Période: {{ \Carbon\Carbon::parse($start_date)->format('d/m/Y') }} - {{ \Carbon\Carbon::parse($end_date)->format('d/m/Y') }}
@if(isset($selectedChantier) && $selectedChantier)
Chantier: {{ $selectedChantier->nom }}
@else
Tous les chantiers
@endif
@foreach($employeeStats as $stat) @endforeach
Employé Jours de Travail Total Jours d'Absence Jours Réellement Travaillés Taux de Présence
{{ $stat['name'] ?? '' }} {{ $stat['total_work_days'] ?? '' }} {{ $stat['total_absence_days'] ?? '' }} {{ $stat['real_worked_days'] ?? '' }} @if($stat['total_work_days'] > 0) {{ round(($stat['real_worked_days'] / $stat['total_work_days']) * 100, 1) }}% @else N/A @endif

Distribution des Jours de Travail @if(isset($selectedChantier) && $selectedChantier) - Chantier: {{ $selectedChantier->nom }} @endif

Taux de Présence par Employé @if(isset($selectedChantier) && $selectedChantier) - Chantier: {{ $selectedChantier->nom }} @endif

@endsection @section('script') @endsection