@extends('back.layout.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @push('styles') @endpush @section('content')
@php $dashWidgets = [ ['label' => 'BdC à envoyer', 'count' => $widgets['bdc_a_envoyer'], 'statuses' => ['waiting_deal']], ['label' => 'En attente de signature','count' => $widgets['attente_signature'], 'statuses' => ['waiting_signature', 'signature_reminder']], ['label' => "En attente d'éléments", 'count' => $widgets['attente_elements'], 'statuses' => ['waiting_element', 'requested_elements']], ['label' => 'En attente de maquette', 'count' => $widgets['attente_maquette'], 'statuses' => ['waiting_draft', 'waiting_draft_walidation', 'draft_reminder']], ['label' => 'En attente justifs', 'count' => $widgets['attente_justif'], 'statuses' => ['waiting_proof']], ['label' => 'À facturer', 'count' => $widgets['a_facturer'], 'statuses' => ['waiting_billing']], ['label' => 'Opérations facturées', 'count' => $widgets['facturees'], 'statuses' => ['billing_done']], ]; $dashWidgets = array_filter($dashWidgets, fn($w) => $w['count'] > 0); @endphp @foreach ($dashWidgets as $w) @endforeach {{-- Modal dashboard opérations --}}
{{-- Rappels en cours --}}

Rappels en cours

@if ($reminders->isEmpty())
Aucun rappel actif.
@else
@foreach ($reminders as $reminder) @endforeach
Date Client Commercial Message
{{ $reminder->alert_date }} @if ($reminder->client) {{ $reminder->client->name }} @else — @endif {{ $reminder->commercial?->firstname ?? '—' }} {{ $reminder->note }}
@can('edit-operations')
Marquer fait
@endcan
@endif
{{-- Modal de confirmation : marquer un rappel comme fait --}} @can('stats-dashboard') {{-- Graphique mensuel --}}

Montants/mois

Opérations par type

@endcan @endsection @push('scripts') @endpush