@php setlocale(LC_TIME, 'French') @endphp
Utilisateurs | @endif @if($options['columns']['date'] === true)Dates | @endif @if($options['columns']['projets'] === true)Projets | @endif @if($options['columns']['actions'] === true)Actions | @endif @if($options['columns']['libelle'] === true)Libellés | @endif @if($options['columns']['annee_programme'] === true)Année programme | @endif @if($options['columns']['departements'] === true)Département(s) | @endif @if($options['columns']['sites'] === true)Site(s) | @endif @if($options['columns']['communes'] === true)Commune(s) | @endif @if($options['columns']['financeurs'] === true)Financeur(s) | @endif @if($options['columns']['heures'] === true)Heures | @endif @if($options['columns']['jours'] === true)Jours | @endif @if($options['columns']['jours_previsionnels'] === true)Jours prévisionnels | @endif @if($options['columns']['type'] === true)Types | @endif @if($options['columns']['commentaire'] === true)Commentaires | @endif @if($options['columns']['panier_repas'] === true)Panier repas | @endif @if($options['columns']['description_action'] === true)Description | @endif {{-- @if($options['columns']['codes_ghs'] === true)Codes GH | @endif --}}
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{$temps->utilisateur->nom && $temps->utilisateur && $temps->utilisateur->nom && $temps->utilisateur->prenom ? $temps->utilisateur->nom.' '.$temps->utilisateur->prenom : ''}} | @endif @if($options['columns']['date'] === true){{ \Carbon\Carbon::createFromFormat('Y-m-d', $temps->date)->translatedFormat('l d/m/Y') }} | @endif @if($options['columns']['projets'] === true){{$temps->liste_projet_id && $temps->liste_projet && $temps->liste_projet->nom ? $temps->liste_projet->nom : ''}} | @endif @if($options['columns']['actions'] === true){{$temps->action_id && $temps->action && $temps->action->nom ? $temps->action->nom : ''}} | @endif @if($options['columns']['libelle'] === true){{$temps->action_id && $temps->action && $temps->action->libelle ? $temps->action->libelle : ''}} | @endif @if($options['columns']['annee_programme'] === true){{$temps->annee_programme ? $temps->annee_programme : ''}} | @endif @if($options['columns']['departements'] === true){{ $temps->departements ? collect($temps->departements)->pluck('nom')->implode(' | ') : '' }} | @endif @if($options['columns']['sites'] === true){{ $temps->sites ? collect($temps->sites)->map(fn($site) => $site->nom_site . ' - ' . $site->code_site)->implode(' | ') : '' }} | @endif @if($options['columns']['communes'] === true){{ $temps->communes ? collect($temps->communes)->pluck('nom')->implode(' | ') : '' }} | @endif @if($options['columns']['financeurs'] === true){{ $temps->action?->financeurs ? collect($temps->action->financeurs)->pluck('nom')->implode(' | '): '' }} | @endif @if($options['columns']['heures'] === true)@if($temps->heures && $temps->minutes === '15') {{(float) $temps->heures.'.25'}} @elseif($temps->heures && $temps->minutes === '30') {{(float) $temps->heures.'.50'}} @elseif($temps->heures && $temps->minutes === '45') {{(float)$temps->heures.'.75'}} @elseif($temps->heures) {{(int) $temps->heures}} @endif | @endif @if($options['columns']['jours'] === true){{$temps->jours ? str_replace(',','.',number_format($temps->jours, 2, ',', ' ')) : ''}} | @endif @if($options['columns']['jours_previsionnels'] === true)@if($temps->temps_travail_previsionnel && array_key_exists($temps->utilisateur_id, $temps->temps_travail_previsionnel)) {{number_format($temps->temps_travail_previsionnel[$temps->utilisateur_id], 2, '.', ',')}} @endif | @endif @if($options['columns']['type'] === true){{$temps->type_temps_travail_id && $temps->type_temps_travail->nom ? $temps->type_temps_travail->nom : ''}} | @endif @if($options['columns']['commentaire'] === true){{$temps->commentaire ? $temps->commentaire : ''}} | @endif @if($options['columns']['panier_repas'] === true)@if($temps->panier_repas === true) Oui @php $total_panier_repas++; @endphp @else Non @endif | @endif @if($options['columns']['description_action'] === true){{$temps->action_id && $temps->action && $temps->action->description ? "'".$temps->action->description."'" : ''}} | @endif {{-- @if($options['columns']['codes_ghs'] === true){{$temps->action_id && $temps->action && $temps->action->codes_gh ? $temps->action->codes_gh : ''}} | @endif --}}
@if($affiche_total === false) TOTAL @endif | @php $affiche_total = true @endphp @endif @if($options['columns']['date'] === true)@if($affiche_total === false) TOTAL @endif | @php $affiche_total = true @endphp @endif @if($options['columns']['projets'] === true)@if($affiche_total === false) TOTAL @endif | @php $affiche_total = true @endphp @endif @if($options['columns']['actions'] === true)@if($affiche_total === false) TOTAL @endif | @php $affiche_total = true @endphp @endif @if($options['columns']['libelle'] === true)@if($affiche_total === false) TOTAL @endif | @php $affiche_total = true @endphp @endif @if($options['columns']['annee_programme'] === true)@if($affiche_total === false) TOTAL @endif | @php $affiche_total = true @endphp @endif @if($options['columns']['departements'] === true)@if($affiche_total === false) TOTAL @endif | @php $affiche_total = true @endphp @endif @if($options['columns']['sites'] === true)@if($affiche_total === false) TOTAL @endif | @php $affiche_total = true @endphp @endif @if($options['columns']['communes'] === true)@endif @if($options['columns']['financeurs'] === true) | @if($affiche_total === false) TOTAL @endif | @php $affiche_total = true @endphp @endif @if($options['columns']['heures'] === true){{number_format($options['total_heures'], 2, ',', ' ')}} | @endif @if($options['columns']['jours'] === true){{str_replace(',','.',number_format($options['total_jours'], 2, ',', ' '))}} | @endif @if($options['columns']['jours_previsionnels'] === true)@endif @if($options['columns']['type'] === true) | @endif @if($options['columns']['commentaire'] === true) | @endif @if($options['columns']['panier_repas'] === true) | {{$total_panier_repas}} | @endif