@extends('layouts.app') @section('content')
| Date | Entreprise | Abonnement | Durée | Montant | Référence | Téléphone | Notes | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $payment->created_at->format('d/m/Y H:i') }} |
{{ $payment->company->name }} {{ $payment->company->subscriber->email ?? 'N/A' }} |
{{ strtoupper($payment->subscription->name) }}
@if($payment->annual)
Annuel @else Mensuel @endif |
@php
$durationYears = 1;
if($payment->notes && preg_match('/Durée:\s*(\d+)\s*an/', $payment->notes, $matches)) {
$durationYears = (int)$matches[1];
}
@endphp
{{ $durationYears }} an(s)
@if($payment->company->subscription_expires_at)
Expire: {{ \Carbon\Carbon::parse($payment->company->subscription_expires_at)->format('d/m/Y') }} @endif |
{{ number_format($payment->amount_paid, 2, ',', ' ') }} {{ $payment->currency }} |
{{ $payment->cash_reference ?? 'N/A' }}
|
{{ $payment->tel ?? 'N/A' }} | @if($payment->notes) @else - @endif |
| Date | Entreprise | Abonnement | Durée | Montant | Référence | Expiration | Statut |
|---|---|---|---|---|---|---|---|
| {{ $payment->created_at->format('d/m/Y H:i') }} |
{{ $payment->company->name }} {{ $payment->company->subscriber->email ?? 'N/A' }} |
{{ strtoupper($payment->subscription->name) }} | @php $durationYears = 1; if($payment->notes && preg_match('/Durée:\s*(\d+)\s*an/', $payment->notes, $matches)) { $durationYears = (int)$matches[1]; } @endphp {{ $durationYears }} an(s) | {{ number_format($payment->amount_paid, 2, ',', ' ') }} {{ $payment->currency }} |
{{ $payment->cash_reference ?? 'N/A' }}
|
@if($payment->company->subscription_expires_at)
@php
$expiresAt = \Carbon\Carbon::parse($payment->company->subscription_expires_at);
$isExpired = $expiresAt->isPast();
@endphp
{{ $expiresAt->format('d/m/Y') }}
@if($isExpired)
Expiré @else {{ $expiresAt->diffForHumans() }} @endif @else - @endif |
Approuvé
{{ $payment->updated_at->format('d/m/Y H:i') }} |