{{-- resources/views/pages/adherent/dashboard.blade.php --}}
{{-- En-tête --}}

Bonjour, {{ $adherent->prenom_dirigeant }} 👋

{{ $adherent->raison_sociale }} — {{ $adherent->regime_label }}

{{ ucfirst(str_replace('_', ' ', $adherent->statut)) }} @if($adherent->date_expiration)

Expire le {{ $adherent->date_expiration->format('d/m/Y') }}

@endif
{{-- Alerte reclassement --}} @if($adherent->risque_reclassement)
⚠️

Attention : votre CA approche du seuil de reclassement IGS → Réel

Votre CA ({{ number_format($adherent->ca_annuel_ht, 0, ',', ' ') }} FCFA) dépasse 80% du seuil IGS (50M FCFA). Un reclassement en Réel Simplifié pourrait être nécessaire.

Simuler →
@endif {{-- Cards principales --}} @if($adherent->regime_fiscal === 'IGS') {{-- ─── Dashboard IGS ─── --}}

Classe IGS

{{ $adherent->classe_igs }}

Art. C40 CGI 2026

IGS Annuel

{{ number_format($adherent->igs_annuel, 0, ',', ' ') }}

FCFA / an

Avec CGA (−50%)

{{ number_format($adherent->igs_annuel_cga, 0, ',', ' ') }}

FCFA / an

Économies CGA

{{ number_format($adherent->economies_cga, 0, ',', ' ') }}

FCFA économisés/an

{{-- Timeline échéances IGS --}}

📅 Échéances IGS 2026

@foreach([ ['T1', '15 Avril', 'Acompte T1'], ['Ann.', '30 Avril', 'IGS Annuel'], ['T2', '15 Juil.', 'Acompte T2'], ['T3', '15 Oct.', 'Acompte T3'], ['T4', '15 Jan. 27', 'Acompte T4'], ] as [$code, $date, $label]) @php $isPast = now() > \Carbon\Carbon::parse($date.' 2026') ?? false; @endphp
{{ $code }}
{{ $date }}
{{ $label }}
@if($adherent->classe_igs >= 1)
{{ $code !== 'Ann.' ? number_format($adherent->igs_annuel_cga / 4, 0, ',', ' ').' F' : number_format($adherent->igs_annuel_cga, 0, ',', ' ').' F' }}
@endif
@endforeach
@if($adherent->dsf_obligatoire)
⚠️ DSF obligatoire — À déposer avant le 15 mai 2026
@endif
@else {{-- ─── Dashboard Réel ─── --}}

Régime

{{ $adherent->regime_label }}

Abattement CGA

50%

Sur IS et IRPP

Patente

Exonéré

Art. 119 CGI 2026

@endif {{-- Navigation rapide --}}
@foreach([ [route('adherent.documents'), '📄', 'Mes documents', 'Attestation CGA, reçus, guides'], [route('adherent.messages'), '💬', 'Messagerie', $messagesNonLus > 0 ? $messagesNonLus.' message(s) non lu(s)' : 'Contacter CGA_MaFiscalite'], [route('adherent.paiements'), '💳', 'Paiements', 'Historique cotisations'], [route('adherent.simulateur-igs'), '🧮', 'Simulateur IGS', 'Recalculer mon IGS'], ] as [$url, $icon, $titre, $desc])
{{ $icon }}
{{ $titre }}
{{ $desc }}
@endforeach