@extends('layouts.app',[ 'class' => '', 'folderActive' => 'operations', 'elementActive' => 'planning' ]) @section('content')
Planning des opérations
Opération non attribué :
@if(isset($request->week)) @endif
@if((auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)))
@endif
@foreach($period as $date) @endforeach @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 @if($loop->first) @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 @endif @endforeach @endforeach @endif @endforeach
@endsection @section('modal') @include('modals.plannings.new-planning') @endsection