@extends('admin.layout') @section('title', 'Tableau de bord') @section('content')

Tableau de bord

Entreprises actives
{{ $stats['active_companies'] }}/{{ $stats['total_companies'] }}
Factures en attente
{{ $stats['pending_invoices'] }}
Factures en retard
{{ $stats['overdue_invoices'] }}
Chiffre d'affaires mensuel
{{ number_format($stats['monthly_revenue'], 0, ',', ' ') }} FCFA

Actions rapides

Générer les factures mensuelles

Entreprises récentes

@foreach($recent_companies as $company)

{{ $company->name }}

{{ $company->contact_person }}

{{ $company->is_active ? 'Actif' : 'Inactif' }}

{{ number_format($company->monthly_amount, 0, ',', ' ') }} FCFA/mois

@endforeach

Factures récentes

@foreach($recent_invoices as $invoice)

{{ $invoice->invoice_number ?? 'N/A' }}

{{ $invoice->company->name ?? 'N/A' }}

{{ ucfirst($invoice->status ?? 'N/A') }}

{{ number_format($invoice->amount_ttc ?? 0, 0, ',', ' ') }} FCFA

@endforeach
@endsection