@extends('layouts.admin') @section('content')
| ID | Identifiant # | Abonné | Plan | Payé avec | Status | Proch. Date. Factur. | Action |
|---|---|---|---|---|---|---|---|
{{ $abonnement->id }} |
{{ $abonnement->plateform_subscription_id }} | {{ $abonnement->user->first_name }} {{ $abonnement->user->last_name }} | ${{ $abonnement->plan->prix }}/{{ $abonnement->plan->periodicite }} | {{ $abonnement->paymentPlateform?->name }} | @php $statusClasses = [ 'active' => 'text-success fw-bold', 'expired' => 'text-danger fw-bold', 'pending' => 'text-warning fw-bold', 'suspended' => 'text-secondary fw-bold', ]; $statusIcons = [ 'active' => '', 'expired' => '', 'pending' => '', 'suspended' => '', ]; $statusText = ucfirst($abonnement->status); // Capitalize first letter @endphp {!! $statusIcons[$abonnement->status] ?? '' !!} {{ $statusText }} | {{ $abonnement->next_billing_time ? date('d/m/Y H:i', strtotime($abonnement->next_billing_time)) : 'Never' }} |