@extends('layouts.app',[ 'class' => '', 'folderActive' => '', 'elementActive' => '' ]) @section('content')
{{ config('options_crm.societe') }} CRM
@if (auth()->user()->user_id == 1)
$ 874
sales last month
@elseif(auth()->user()->plannings()->where('active', 1)->count() > 0)
@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
@else
Rdv passes non transformes en rapports Total:{{ $rdvs->count() }}
@foreach($rdvs as $rdv) @endforeach
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
@endif
@endsection