@php setlocale(LC_TIME, 'French') @endphp @if($options['columns']['utilisateurs'] === true) @endif @if($options['columns']['date'] === true) @endif @if($options['columns']['projets'] === true) @endif @if($options['columns']['actions'] === true) @endif @if($options['columns']['libelle'] === true) @endif @if($options['columns']['annee_programme'] === true) @endif @if($options['columns']['departements'] === true) @endif @if($options['columns']['sites'] === true) @endif @if($options['columns']['communes'] === true) @endif @if($options['columns']['financeurs'] === true) @endif @if($options['columns']['heures'] === true) @endif @if($options['columns']['jours'] === true) @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) @endif @if($options['columns']['description_action'] === true) @endif {{-- @if($options['columns']['codes_ghs'] === true) @endif --}} @php $total_panier_repas = 0; @endphp @foreach($data as $temps) @if($options['columns']['utilisateurs'] === true) @endif @if($options['columns']['date'] === true) @endif @if($options['columns']['projets'] === true) @endif @if($options['columns']['actions'] === true) @endif @if($options['columns']['libelle'] === true) @endif @if($options['columns']['annee_programme'] === true) @endif @if($options['columns']['departements'] === true) @endif @if($options['columns']['sites'] === true) @endif @if($options['columns']['communes'] === true) @endif @if($options['columns']['financeurs'] === true) @endif @if($options['columns']['heures'] === true) @endif @if($options['columns']['jours'] === true) @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) @endif @if($options['columns']['description_action'] === true) @endif {{-- @if($options['columns']['codes_ghs'] === true) @endif --}} @endforeach @php $affiche_total = false @endphp @if($options['columns']['utilisateurs'] === true) @php $affiche_total = true @endphp @endif @if($options['columns']['date'] === true) @php $affiche_total = true @endphp @endif @if($options['columns']['projets'] === true) @php $affiche_total = true @endphp @endif @if($options['columns']['actions'] === true) @php $affiche_total = true @endphp @endif @if($options['columns']['libelle'] === true) @php $affiche_total = true @endphp @endif @if($options['columns']['annee_programme'] === true) @php $affiche_total = true @endphp @endif @if($options['columns']['departements'] === true) @php $affiche_total = true @endphp @endif @if($options['columns']['sites'] === true) @php $affiche_total = true @endphp @endif @if($options['columns']['communes'] === true) @endif @if($options['columns']['financeurs'] === true) @php $affiche_total = true @endphp @endif @if($options['columns']['heures'] === true) @endif @if($options['columns']['jours'] === true) @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) @endif
UtilisateursDatesProjetsActionsLibellésAnnée programmeDépartement(s)Site(s)Commune(s)Financeur(s)HeuresJoursJours prévisionnelsTypesCommentairesPanier repasDescriptionCodes GH
{{$temps->utilisateur->nom && $temps->utilisateur && $temps->utilisateur->nom && $temps->utilisateur->prenom ? $temps->utilisateur->nom.' '.$temps->utilisateur->prenom : ''}} {{ \Carbon\Carbon::createFromFormat('Y-m-d', $temps->date)->translatedFormat('l d/m/Y') }}{{$temps->liste_projet_id && $temps->liste_projet && $temps->liste_projet->nom ? $temps->liste_projet->nom : ''}}{{$temps->action_id && $temps->action && $temps->action->nom ? $temps->action->nom : ''}}{{$temps->action_id && $temps->action && $temps->action->libelle ? $temps->action->libelle : ''}}{{$temps->annee_programme ? $temps->annee_programme : ''}}{{ $temps->departements ? collect($temps->departements)->pluck('nom')->implode(' | ') : '' }}{{ $temps->sites ? collect($temps->sites)->map(fn($site) => $site->nom_site . ' - ' . $site->code_site)->implode(' | ') : '' }}{{ $temps->communes ? collect($temps->communes)->pluck('nom')->implode(' | ') : '' }}{{ $temps->action?->financeurs ? collect($temps->action->financeurs)->pluck('nom')->implode(' | '): '' }} @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 {{$temps->jours ? str_replace(',','.',number_format($temps->jours, 2, ',', ' ')) : ''}} @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 {{$temps->type_temps_travail_id && $temps->type_temps_travail->nom ? $temps->type_temps_travail->nom : ''}}{{$temps->commentaire ? $temps->commentaire : ''}} @if($temps->panier_repas === true) Oui @php $total_panier_repas++; @endphp @else Non @endif {{$temps->action_id && $temps->action && $temps->action->description ? "'".$temps->action->description."'" : ''}} {{$temps->action_id && $temps->action && $temps->action->codes_gh ? $temps->action->codes_gh : ''}}
@if($affiche_total === false) TOTAL @endif @if($affiche_total === false) TOTAL @endif @if($affiche_total === false) TOTAL @endif @if($affiche_total === false) TOTAL @endif @if($affiche_total === false) TOTAL @endif @if($affiche_total === false) TOTAL @endif @if($affiche_total === false) TOTAL @endif @if($affiche_total === false) TOTAL @endif @if($affiche_total === false) TOTAL @endif {{number_format($options['total_heures'], 2, ',', ' ')}}{{str_replace(',','.',number_format($options['total_jours'], 2, ',', ' '))}}{{$total_panier_repas}}