@extends('layouts.app') @section('title', 'Rapports') @section('page-title', 'Rapports') @section('content')
Ventes par période, magasin et client
Mouvements entre magasins
Vue consolidée par magasin
Ventes, achats, dépenses et cautions
Achats par fournisseur et produit
Effectifs par magasin et poste
Pour ce rapport, sélectionnez une période (date de début et date de fin) puis cliquez sur Générer.
@endifDu {{ $dateFrom->format('d/m/Y') }} au {{ $dateTo->format('d/m/Y') }}
@endifTotal ventes
{{ number_format($resultat['total_ventes'], 0, ',', ' ') }}
Total achats
{{ number_format($resultat['total_achats'], 0, ',', ' ') }}
Total dépenses
{{ number_format($resultat['total_depenses'], 0, ',', ' ') }}
Cautions déposées
{{ number_format($resultat['total_cautions_depot'], 0, ',', ' ') }}
Dernières ventes, achats et dépenses (jusqu'à 50 lignes).
| Date | Réf. | Client | Magasin | Montant |
|---|---|---|---|---|
| Date | Fournisseur | Produit | Magasin | Montant |
| Date | Produit | Origine → Destination | Quantité | |
| {{ $row->date_vente->format('d/m/Y') }} | {{ $row->reference ?? '—' }} | {{ $row->client?->nom ?? '—' }} | {{ $row->magasin?->nom ?? '—' }} | {{ number_format($row->montant ?? 0, 0, ',', ' ') }} |
| {{ $row->date_achat->format('d/m/Y') }} | {{ $row->fournisseur?->nom ?? '—' }} | {{ $row->produit?->designation ?? '—' }} | {{ $row->magasin?->nom ?? '—' }} | {{ number_format($row->montant ?? 0, 0, ',', ' ') }} |
| {{ $row->date_transfert->format('d/m/Y') }} | {{ $row->produit?->designation ?? '—' }} | {{ $row->magasinOrigine?->nom ?? '—' }} → {{ $row->magasinDestination?->nom ?? '—' }} | {{ $row->quantite ?? 0 }} |
| Magasin | Produit | Quantité | Seuil alerte |
|---|---|---|---|
| {{ $row->magasin?->nom ?? '—' }} | {{ $row->produit?->designation ?? '—' }} | {{ $row->quantite ?? 0 }} | {{ $row->seuil_alerte ?? '—' }} |
| Nom | Matricule | Magasin | Rôle |
|---|---|---|---|
| {{ $row->name ?? '—' }} | {{ $row->matricule ?? '—' }} | {{ $row->magasin?->nom ?? '—' }} | {{ $row->roles->first()?->name ?? '—' }} |