@extends('layouts.app')
@section('content')
@include('partials.dashboard-filter', [
'filterId' => 'statistiques',
'filterRoute' => 'statistiques',
'pageTitle' => 'Statistiques',
'defaultLabel' =>
'1 an (' .
$debutPeriode->locale('fr')->isoFormat('D MMM YYYY') .
' – ' .
$finPeriode->locale('fr')->isoFormat('D MMM YYYY') .
')',
])
@if ($scope === 'global')
@endif
@if ($scope !== 'services')
@endif
{{-- Tendance + répartition, côte à côte pour une lecture comparative directe --}}
@if ($scope !== 'services' && $topProduits->isNotEmpty())
| Produit |
Qté vendue |
Montant |
@foreach ($topProduits as $item)
| {{ $item->label }} |
{{ number_format($item->quantite, 0, ' ', ' ') }} |
{{ number_format($item->montant, 0, ' ', ' ') }} FCFA |
@endforeach
@endif
@if ($scope !== 'produits' && $servicesModuleEnabled && $topServices->isNotEmpty())
| Service |
Qté vendue |
Montant |
@foreach ($topServices as $item)
| {{ $item->label }} |
{{ number_format($item->quantite, 0, ' ', ' ') }} |
{{ number_format($item->montant, 0, ' ', ' ') }} FCFA |
@endforeach
@endif
@endsection