@extends('adminlte::page') @section('title', 'Dashboard') @section('content_header')

Dashboard - Benvenuto {{ Auth::user()->name }}

@stop @section('content')

📊 Statistiche Generali

{{ $stats['total_commesse'] }}

Totale Commesse

{{ $stats['total_clienti'] }}

Totale Clienti

{{ $stats['total_utenti'] }}

Totale Utenti

{{ $stats['commesse_attive'] }}

Commesse Attive

📋 Commesse Recenti

@if($commesse_recenti->count() > 0)
@foreach($commesse_recenti as $commessa) @endforeach
Commessa Cliente Prodotto Venditore Data
{{ $commessa->multipla }}.{{ $commessa->id }}.{{ $commessa->prodotto->codice ?? 'N/A' }}.{{ $commessa->venditore->id ?? 'N/A' }} {{ $commessa->cliente->ragionesociale ?? 'N/A' }} {{ $commessa->prodotto->nome ?? 'N/A' }} {{ $commessa->venditore->name ?? 'N/A' }} {{ $commessa->created_at->format('d/m/Y') }}
@else

Nessuna commessa trovata.

@endif

👥 Le Tue Attività

@if(!empty($roleData)) @foreach($roleData as $key => $value)
{{ ucfirst(str_replace('_', ' ', $key)) }} {{ $value }}
@endforeach @else

Nessuna attività specifica per il tuo ruolo.

@endif
@if(!empty($notifications))

⚠️ Notifiche

@foreach($notifications as $key => $value) @if($value > 0)
{{ ucfirst(str_replace('_', ' ', $key)) }}: {{ $value }}
@endif @endforeach
@endif

⚡ Azioni Rapide

@if(in_array('Amministratore', $userRoles)) @endif
@stop @section('css') @stop @section('js') @stop