@extends('layouts.app') @section('title', 'Suivi des Loyers - GSI Mobilier') @section('page-title', 'Suivi des Loyers') @section('page-description', 'Suivez les paiements mensuels de vos locataires') @section('content')

Mois sélectionné

{{ \Carbon\Carbon::parse($currentMonth)->locale('fr')->isoFormat('MMMM YYYY') }}

Reçu ce Mois

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

FCFA

En Attente

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

FCFA

Montant d'Avance

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

FCFA

Total Attendu

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

FCFA

@forelse($tenants as $tenant)
{{ strtoupper(substr($tenant->name, 0, 1)) }}

{{ $tenant->name }}

{{ $tenant->unit_number ?? 'N/A' }}

@if($tenant->hasPaidMonth)
@else
@endif
Bâtiment {{ $tenant->building->name }}
Loyer Mensuel {{ number_format($tenant->monthly_rent, 0, ',', ' ') }} FCFA

Impayés

@if($tenant->unpaidMonths > 0)

{{ $tenant->unpaidMonths }} mois

@else

-

@endif

Avance

@if($tenant->advanceMonths > 0)

{{ (int) $tenant->advanceMonths }} mois

@else

-

@endif
Voir le Calendrier @if(!$tenant->hasPaidMonth) Enregistrer Paiement @endif
@empty

Aucun locataire actif

Ajoutez des locataires pour commencer le suivi

Ajouter un Locataire
@endforelse

Légende

Payé

Loyer du mois réglé

Non Payé

À relancer

Avance

Mois futurs payés

@endsection