@extends('layouts.admin') @section('title', __('Invoices')) @section('page-title', __('Invoices')) @section('content')
| {{ __('Invoice') }} | {{ __('Customer') }} | {{ __('Subscription') }} | {{ __('Amount') }} | {{ __('Status') }} | {{ __('Event') }} | {{ __('Processed') }} |
|---|---|---|---|---|---|---|
| @if($invoiceId) {{ $invoiceId }} @else — @endif |
@if($customer)
{{ $customer->full_name }}
{{ $customer->email }}
@else
—
@if($stripeCustomerId)
{{ $stripeCustomerId }}
@endif
@endif
|
@if($subscription)
{{ $subscription->plan_name }}
{{ $subscription->stripe_subscription_id }}
@else
—
@if($stripeSubscriptionId)
{{ $stripeSubscriptionId }}
@endif
@endif
|
@if($amount !== null) {{ $currency ? $currency . ' ' : '' }}{{ number_format($amount, 2) }} @else — @endif | @php $badge = match ($statusText) { 'paid' => 'bg-green-100 text-green-800', 'open' => 'bg-yellow-100 text-yellow-800', 'void' => 'bg-gray-100 text-gray-800', 'uncollectible' => 'bg-red-100 text-red-800', 'draft' => 'bg-gray-100 text-gray-800', default => 'bg-gray-100 text-gray-800', }; @endphp {{ $statusText !== '' ? $statusText : '—' }} |
{{ __('Stripe') }}
{{ __('API') }}
|
@if(is_numeric($createdTs)) {{ \Carbon\Carbon::createFromTimestamp((int) $createdTs)->diffForHumans() }} @else — @endif |
| {{ __('No invoices found.') }} | ||||||
| @if($invoiceId) {{ $invoiceId }} @else — @endif |
@if($customer)
{{ $customer->full_name }}
{{ $customer->email }}
@else
—
@if($stripeCustomerId)
{{ $stripeCustomerId }}
@endif
@endif
|
@if($subscription)
{{ $subscription->plan_name }}
{{ $subscription->stripe_subscription_id }}
@else
—
@if($stripeSubscriptionId)
{{ $stripeSubscriptionId }}
@endif
@endif
|
@if($amount !== null) {{ $currency ? $currency . ' ' : '' }}{{ number_format($amount, 2) }} @else — @endif | @php $badge = match ($statusText) { 'paid' => 'bg-green-100 text-green-800', 'open' => 'bg-yellow-100 text-yellow-800', 'void' => 'bg-gray-100 text-gray-800', 'uncollectible' => 'bg-red-100 text-red-800', 'draft' => 'bg-gray-100 text-gray-800', default => 'bg-gray-100 text-gray-800', }; @endphp {{ $statusText !== '' ? $statusText : '—' }} |
{{ $event->type }}
{{ $event->event_id }}
|
{{ $event->processed_at?->diffForHumans() ?? $event->created_at?->diffForHumans() ?? '—' }} |
| {{ __('No invoices found.') }} | ||||||