@extends('layouts.admin') @section('title', 'Paiements') @section('content')

Paiements d'abonnement

Suivi des paiements Premium, paiements manuels et remboursements.

Réglages et Wave Exporter (CSV)

{{ number_format($stats['revenue_month'], 0, ',', ' ') }}

FCFA encaissés ce mois-ci

{{ number_format($stats['revenue_total'], 0, ',', ' ') }}

FCFA encaissés au total

{{ $stats['paid_month'] }}

Paiements ce mois-ci

{{ $stats['active_subscribers'] }}

Abonnés actifs

{{ $stats['expiring_7d'] }}

Abonnements qui expirent sous 7 j

{{ $stats['pending'] }}

En attente

{{ $stats['refunded'] }}

Remboursés

Enregistrer un paiement reçu

Pour un paiement hors ligne (espèces, virement). Le Premium est prolongé immédiatement.

@csrf
@error('note')

{{ $message }}

@enderror
@error('confirm')

{{ $message }}

@enderror

Filtrer

Paiements ({{ $payments->total() }})

@if ($payments->isEmpty())

Aucun paiement ne correspond à ces filtres.

@else
@foreach ($payments as $p) @endforeach
DateRéf.ClientFormuleMontantFournisseurStatutActions
{{ $p->created_at->format('d/m/Y H:i') }} PAY-{{ $p->id }}@if ($p->provider_ref)
{{ \Illuminate\Support\Str::limit($p->provider_ref, 22) }}@endif
{{ $p->user?->name ?? 'Compte supprimé' }}
{{ $p->user?->phone }}
{{ $plans[$p->plan]['label'] ?? $p->plan }}
{{ $p->days }} jours
{{ $p->amountLabel() }} {{ $p->providerLabel() }} {{ $p->statusLabel() }} @if ($p->note)

{{ \Illuminate\Support\Str::limit($p->note, 60) }}

@endif
@if ($p->status === 'pending')
@csrf @method('PATCH')
@endif @if ($p->status === 'paid')
Rembourser
@csrf @method('PATCH')
@endif
{{ $payments->links('partials.pagination') }} @endif
@endsection