@extends('layout.app') @section('title', 'Mon Abonnement') @section('content')
Mon Abonnement
@if(!$company->trial)
@endif @if($subscription)
{{ ucfirst($subscription->name) }}
Prix mensuel
@if($subscription->name == 'enterprise') - @else {{ number_format($subscription->value, 2, ',', ' ') }} {{ $company->currency_symbol ?? '€' }} @endif
Prix annuel
@if($subscription->name == 'enterprise') - @else {{ number_format($subscription->annual_monthly_value ?? 0, 2, ',', ' ') }} {{ $company->currency_symbol ?? '€' }} @endif
Statut
{{ $statusFrench }}
Jours restants
{{ $company->days_left == 'Illimité' ? 'Illimité' : $company->days_left . ' jours' }}
@if($company->subscription_expires_at)
Expiration le :
{{ \Carbon\Carbon::parse($company->subscription_expires_at)->format('d/m/Y') }}
@endif @if($company->ai_credits !== null)
Crédits Docteur IA
{{ $company->ai_credits }} crédits restants
@endif
@else

Aucun abonnement

Vous n'avez pas encore d'abonnement actif.

Choisir un abonnement
@endif
receipt
Total Factures
{{ $totalInvoices }}
check_circle
Payées
{{ $paidInvoices }}
pending
En attente
{{ $pendingInvoices }}
Dernières Factures
@if($invoices->count() > 0)
@foreach($invoices->take(5) as $invoice) @endforeach
Référence Date Montant Mode de paiement Statut Actions
{{ $invoice->paddle_invoice_number ?? $invoice->custom_id }} {{ \Carbon\Carbon::parse($invoice->created_at)->format('d/m/Y') }} @if($company->trial > 0) 0 {{ $invoice->currency ?? '€' }} @else {{ number_format($invoice->amount_paid, 2, ',', ' ') }} {{ $invoice->currency ?? '€' }} @endif @if($invoice->mode == 'stripe') Stripe @elseif($invoice->mode == 'paypal') PayPal @elseif($invoice->mode == 'cash') Espèces @elseif($invoice->mode == 'paddle') @if($invoice->paddle_mode) @php $paddleModeLower = strtolower($invoice->paddle_mode); $icon = 'fa-credit-card'; if(str_starts_with($paddleModeLower, 'visa')) { $icon = 'fab fa-cc-visa'; } elseif(str_starts_with($paddleModeLower, 'mastercard')) { $icon = 'fab fa-cc-mastercard'; } elseif(str_starts_with($paddleModeLower, 'amex') || str_starts_with($paddleModeLower, 'american')) { $icon = 'fab fa-cc-amex'; } elseif(str_starts_with($paddleModeLower, 'paypal')) { $icon = 'fab fa-paypal'; } elseif(str_starts_with($paddleModeLower, 'apple')) { $icon = 'fab fa-apple-pay'; } elseif(str_starts_with($paddleModeLower, 'google')) { $icon = 'fab fa-google-pay'; } @endphp {{ ucfirst($invoice->paddle_mode) }} @else Paddle @endif @else {{ ucfirst($invoice->mode ?? 'N/A') }} @endif @if($invoice->status == 'paid') Payée @elseif($invoice->status == 'approved') Approuvé @elseif($invoice->status == 'pending') En attente @elseif($invoice->status == 'cancelled') Annulée @else {{ ucfirst($invoice->status) }} @endif @if($invoice->mode == 'paddle' && $invoice->paddle_transaction_id) @endif
@else

Aucune facture pour le moment.

@endif
Informations Complémentaires
Mode de paiement

@if($invoices->whereIn('status', ['paid', 'approved'])->isNotEmpty()) @php $paymentModes = $invoices->whereIn('status', ['paid', 'approved'])->pluck('mode')->unique()->filter(); @endphp @foreach($paymentModes as $mode) @if($mode == 'stripe') Stripe @elseif($mode == 'paypal') PayPal @elseif($mode == 'cash') Espèces @else {{ ucfirst($mode) }} @endif @if(!$loop->last), @endif @endforeach @else Aucun paiement effectué @endif

Total dépensé

{{ number_format($totalAmount, 2, ',', ' ') }} EUR

@if($company->trial > 0)
Période d'essai : Vous êtes actuellement en période d'essai. Profitez de toutes les fonctionnalités gratuitement !
@endif
@push('scripts') @endpush @endsection