@extends('layouts.app',[ 'class' => '', 'folderActive' => 'operations', 'elementActive' => 'planning' ]) @section('content')
@foreach($period as $date) | {{ $date->format('d/m') }} | @endforeachRdv non attribués | Rdv non transformé en rapport | % Rapports validés | @foreach($has_planning_users as $user) @isset($plannings[$user->user_id]) @foreach($plannings[$user->user_id] as $planning) @php $color = '#6ba6e3'; 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||
---|---|---|---|---|---|---|
{{ $user->user->user_firstname }} {{ $user->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
{{ number_format($calc, 2, ',' ,' ') }}% ({{$planning->operation->rapportsValidated->count()}}/{{$planning->operation->rapports->count()}})
@endif
|