@foreach($period as $date) | {{ $date->format('d/m') }} | @endforeachRdv non attribués | Rdv non transformé en rapport | % Rapports validés | @foreach($plannings as $planning) @php $color = '#6ba6e3'; if(isset($planning)) { switch ($planning->operation->statut_operation) { case -1: $color = '#16aaff'; break; case 1: $color = '#6c757d'; break; case 2: $color = '#f7b924'; break; case 3: $color = '#3ac47d'; break; } } @endphp||
---|---|---|---|---|---|---|
{{ $planning->user->user_firstname }} {{ $planning->user->user_lastname }} | @endif @foreach($period as $cell) @if($planning->start->format('Y-m-d 00:00:00') > $cell->format('Y-m-d 00:00:00') || $planning->end->format('Y-m-d 00:00:00') < $cell->format('Y-m-d 00:00:00')) @if($planning->end->format('Y-m-d 00:00:00') < $cell->format('Y-m-d 00:00:00') && $cell->format('Y-m-d 00:00:00')<=date("Y-m-d 00:00:00",strtotime('now')))@else | @endif @else | {{ ($planning->start->format('Y-m-d') == $cell->format('Y-m-d') || ($planning->start->format('Y-m-d') <= $cell->format('Y-m-d') && $loop->first)) ? $planning->operation->operation_title : '' }} | @endif @endforeach@if($planning->operation->rdv->count() > 0) @endif | @if($planning->operation->rdvLeft->count() > 0) @endif | @if($planning->operation->rapports->count() == 0) Aucun rapport @else @php $calc = isset($planning) && $planning->operation->rapports->count() > 0 ? ($planning->operation->rapportsValidated->count() / $planning->operation->rapports->count()) * 100 : 0 @endphp @endif |
Rdv passes non transformes en rapports Total:{{ $rdvs->count() }}
Date | Bénéficiaire | Inspecteur | Type | Action |
---|---|---|---|---|
{{ date("d/m/Y", strtotime($rdv->date_rdv)) }} | {{ $rdv['proprietaire_name'] ?? '' }}
{{ $rdv['proprietaire_adresse'] ?? '' }} {{ $rdv['proprietaire_cp'] ?? '' }} {{ $rdv['proprietaire_ville'] ?? '' }} @if (isset($rdv->operation)) Opération : {{ $rdv->operation->operation_title }} @endif |
{{ $rdv->user->user_firstname }} {{ $rdv->user->user_lastname }} | {{ config('types.type_rapport')[$rdv['type_rdv']] }} | Voir le RDV |