@extends('layouts.app') @section('title', 'Tableau de bord - GSI Mobilier') @section('page-title', 'Tableau de bord') @section('page-description', 'Vue d\'ensemble de votre gestion immobilière') @section('content')

Bâtiments

{{ $totalBuildings }}

Locataires Actifs

{{ $totalTenants }}

En Caisse

{{ number_format($cashInHand, 0, ',', ' ') }} FCFA

+{{ number_format($totalPayments, 0, ',', ' ') }} - {{ number_format($totalExpenses, 0, ',', ' ') }}

Revenus/Mois

{{ number_format($expectedMonthlyRevenue, 0, ',', ' ') }} FCFA

Remboursements

Payé: {{ number_format($totalReimbursements, 0, ',', ' ') }} FCFA | Restant: {{ number_format($reimbursementOutstanding, 0, ',', ' ') }} FCFA

Exporter PDF

Paiements ce mois

{{ number_format($paymentsThisMonth, 0, ',', ' ') }}

FCFA - {{ date('F Y') }}

Dépenses ce mois

{{ number_format($expensesThisMonth, 0, ',', ' ') }}

FCFA - {{ date('F Y') }}

Cautions Non Payées

{{ $tenantsWithoutDeposit }}

Locataires concernés

Évolution Financière

Derniers 6 mois

Paiements vs Dépenses

Comparaison mensuelle

Répartition des Paiements

Par type de paiement

Bénéfice Net Mensuel

Santé financière

Dépenses par Bâtiment

Top 5 bâtiments

Santé Financière Globale

Indicateurs clés

Taux d'Encaissement @php $collectionRate = $totalPayments > 0 ? round(($totalPayments / ($totalPayments + $expectedMonthlyRevenue)) * 100) : 0; @endphp {{ min(100, $collectionRate) }}%
Ratio Dépenses/Revenus @php $expenseRatio = $totalPayments > 0 ? round(($totalExpenses / $totalPayments) * 100) : 0; @endphp {{ $expenseRatio }}%
Marge Bénéficiaire @php $margin = $totalPayments > 0 ? round((($totalPayments - $totalExpenses) / $totalPayments) * 100) : 0; @endphp {{ $margin }}%

Gestion de la Caisse

Flux de trésorerie global

Solde Disponible

{{ number_format($cashInHand, 0, ',', ' ') }}

FCFA

Santé Financière {{ $cashFlowRatio }}%
@php $healthColor = $cashFlowRatio >= 70 ? 'bg-green-400' : ($cashFlowRatio >= 40 ? 'bg-yellow-400' : 'bg-red-400'); @endphp
Total

Entrées (Paiements)

{{ number_format($totalPayments, 0, ',', ' ') }}

FCFA

Total

Sorties (Dépenses)

{{ number_format($totalExpenses, 0, ',', ' ') }}

FCFA

Actuel

Solde en Caisse

{{ number_format($cashInHand, 0, ',', ' ') }}

FCFA

@if($cashFlowRatio < 30)

Attention : Caisse Faible

Vos dépenses représentent plus de 70% de vos entrées. Pensez à optimiser vos coûts.

@elseif($cashFlowRatio < 50)

Gestion Modérée

Votre caisse est correcte mais pourrait être améliorée.

@else

Excellente Gestion

Votre caisse est bien gérée avec un bon équilibre entre entrées et sorties.

@endif

Flux du Mois en Cours

Encaissé ce Mois

{{ number_format($paymentsThisMonth, 0, ',', ' ') }} FCFA

Dépenses ce Mois

{{ number_format($expensesThisMonth, 0, ',', ' ') }} FCFA

Bénéfice Net ce Mois

{{ number_format($paymentsThisMonth - $expensesThisMonth, 0, ',', ' ') }} FCFA

Paiements Récents

@forelse($recentPayments as $payment)

{{ $payment->tenant->name }}

{{ $payment->building->name ?? 'N/A' }} - {{ $payment->payment_date->format('d/m/Y') }}

+{{ number_format($payment->amount, 0, ',', ' ') }}

{{ ucfirst($payment->payment_type) }}

@empty

Aucun paiement récent

@endforelse

Dépenses Récentes

@forelse($recentExpenses as $expense)

{{ $expense->category }}

{{ $expense->description }} - {{ $expense->expense_date->format('d/m/Y') }}

-{{ number_format($expense->amount, 0, ',', ' ') }}

@empty

Aucune dépense récente

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