@extends('layouts.app',[ 'class' => '', 'folderActive' => '', 'elementActive' => '' ]) @section('content')
{{ config('options_crm.societe') }} CRM
@include('dashboard.taches.tache')
@if (isset($request->week)) @endif
@foreach ($period as $date) @endforeach @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 @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
@endsection