@extends('layouts.app') @section('title', 'Billing – ' . $user->name) @section('content') {{-- ── Page Header ── --}}
{{-- --}}

Billing for {{ $user->name }}

Stripe billing details — admin view

View User All Users
{{-- ── Alerts (converted to toasters) ── --}} {{-- ── Subscriptions ── --}} @if($subscriptions->isNotEmpty())

Subscriptions

{{ $subscriptions->count() }}

Each service subscription is managed separately. The user can cancel from their own Billing page.

@foreach($subscriptions as $i => $sub)
{{ $sub->order?->service_address_display ?: ($sub->order?->product_display_name ?? $sub->provider_product_id ?? 'Subscription #' . $sub->id) }}
@if($sub->order)
${{ number_format($sub->order->product_price ?? 0, 2) }}/mo
@endif
Product / Service {{ $sub->order?->product_display_name ?? $sub->provider_product_id ?? '—' }}
Current Period @if($sub->current_period_start && $sub->current_period_end) {{ $sub->current_period_start->format('d/m/Y') }} – {{ $sub->current_period_end->format('d/m/Y') }} @else — @endif
Next Payment {{ $sub->current_period_end ? $sub->current_period_end->format('d/m/Y') : '—' }}
Status {{ ucfirst(str_replace('_', ' ', $sub->status)) }}
@if($sub->cancel_at_period_end)
This subscription will cancel at the end of the current billing period.
@elseif(in_array($sub->status, ['active', 'trialing'])) @endif
@endforeach
@else

This user has no active subscriptions.

@endif {{-- ── Payment History ── --}}

Payment History & Invoices

@if($paymentHistories->count())
@foreach($paymentHistories as $i => $ph) @endforeach
Date Type Amount Status Invoice
{{ $ph->created_at->format('d/m/Y') }} {{ ucfirst(str_replace('_', ' ', $ph->type)) }} {{ $ph->formatted_amount }} {{ strtoupper($ph->currency) }} {{ ucfirst(str_replace('_', ' ', $ph->status)) }} @if($ph->invoice_hosted_url || $ph->invoice_pdf_url || $ph->stripe_invoice_id) @else @endif
{{ $paymentHistories->links('pagination::bootstrap-4') }}
@else

No payment history yet.

@endif
{{-- Router Payment Details Modal --}} @endsection @push('scripts') @endpush @push('styles') @endpush