@extends('layouts.admin-modern') @section('title', 'Gestion Abonnements') @section('content')
Gérez les plans et les abonnés
Revenus abonnements
{{ number_format($monthlyRevenue ?? 0, 2) }} €
ce mois
Abonnés actifs
{{ $activeSubscribers ?? 0 }}
Plans actifs
{{ $activePlans ?? 0 }}
Taux conversion
{{ $conversionRate ?? 0 }}%
{{ number_format($plan->price, 2) }} €/{{ $plan->interval }}
{{ $plan->subscribers_count ?? 0 }} abonnés
Aucun plan configuré
| Utilisateur | Type | Plan | Début | Fin | Statut | Actions |
|---|---|---|---|---|---|---|
|
{{ substr($subscription->user->name ?? 'U', 0, 1) }}
{{ $subscription->user->name ?? 'N/A' }} {{ $subscription->user->email ?? 'N/A' }} |
{{ ucfirst($subscription->user->role ?? 'N/A') }} | {{ $subscription->plan->name ?? 'N/A' }} | {{ $subscription->started_at?->format('d/m/Y') ?? $subscription->starts_at?->format('d/m/Y') ?? 'N/A' }} | {{ $subscription->current_period_end?->format('d/m/Y') ?? $subscription->ends_at?->format('d/m/Y') ?? 'N/A' }} | @php $statusClasses = [ 'active' => 'bg-green-100 text-green-800', 'cancelled' => 'bg-red-100 text-red-800', 'expired' => 'bg-gray-100 text-gray-800', 'paused' => 'bg-yellow-100 text-yellow-800', ]; @endphp {{ ucfirst($subscription->status) }} |
Les abonnements apparaîtront ici.