@extends('layouts.app') @section('page-title', 'Tableau de bord') @section('page-subtitle', 'Vue d\'ensemble complète de votre activité') @section('content')
👋 Bienvenue, {{ Auth::user()->name }}!
Tableau de bord complet • Période: @if($period === 'week') Cette semaine @elseif($period === 'month') Ce mois @elseif($period === 'year') Cette année @else Tout le temps @endif
📦 Total Commandes
{{ $analytics['total_orders'] }}
Pending: {{ $analytics['pending_orders_total'] }} | Exp: {{ $analytics['shipments_total'] }}
⏳ En Attente
{{ $analytics['pending_orders_pending'] }}
{{ $analytics['pending_percentage'] }}% du total
✅ Confirmées
{{ $analytics['pending_orders_confirmed'] }}
{{ $analytics['confirmed_percentage'] }}%
❌ Annulées
{{ $analytics['pending_orders_cancelled'] }}
{{ $analytics['cancelled_percentage'] }}%
📞 Pas de Réponse
{{ $analytics['pending_orders_no_response'] }}
{{ $analytics['no_response_percentage'] }}%
🚚 Expéditions
{{ $analytics['shipments_sent'] }}
{{ $analytics['sent_percentage'] }}% envoyées
💰 Revenu Total
{{ number_format($analytics['total_revenue'], 0) }} MAD
💵 {{ number_format($analytics['total_collected'], 0) }} MAD
💵 Confirmé
{{ number_format($analytics['confirmed_revenue'], 0) }} MAD
Confirmées
Période
Analytics
Statuts
Expéditions
Revenu
Top Produits
@if(count($productsStats) > 0)
Produits
@foreach($productsStats as $index => $product) @endforeach
# Produit Qty Prix Total
{{ $index + 1 }} {{ substr($product['name'], 0, 30) }} {{ $product['quantity'] }} {{ number_format($product['price'], 0) }} {{ number_format($product['total'], 0) }}
@else

Aucune donnée disponible

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