@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 |