@extends('admin.layouts.admin') @section('content')

Subscription Payment Details

Back to List
Payment Information
Transaction ID: {{ substr($payment->stripe_transaction_id, 0, 8) }}...
Subscription ID: {{ $payment->stripe_subscription_id ? substr($payment->stripe_subscription_id, 0, 8) . '...' : 'N/A' }}
Customer ID: {{ $payment->stripe_customer_id ? substr($payment->stripe_customer_id, 0, 8) . '...' : 'N/A' }}
Amount: ${{ number_format($payment->amount, 2) }}
Status: {{ ucfirst($payment->payment_status) }}
Payment Date: {{ $payment->payment_date ? $payment->payment_date->format('M d, Y h:i A') : 'Not processed' }}
Description: {{ $payment->payment_description ?? 'No description' }}
Created: {{ $payment->created_at->format('M d, Y h:i A') }}
Studio Information
@if($payment->studio)
Studio Name: {{ $payment->studio->name }}
Base Price: ${{ number_format($payment->studio->price, 2) }}
Booking Type: {{ ucfirst(str_replace('_', ' ', $payment->studio->booking_type)) }}
Max Guests: {{ $payment->studio->no_guest ?? 'Not specified' }}
Availability: {{ $payment->studio->is_available ? 'Available' : 'Not Available' }}
@else

Studio information not available

@endif
Package Information
@if($payment->package)
Package Name: {{ $payment->package->name }}
Price: ${{ number_format($payment->package->price, 2) }}
Max Guests: {{ $payment->package->max_guests ?? 'Unlimited' }}
Availability: @if($payment->package->availability_from_time && $payment->package->availability_to_time) {{ \Carbon\Carbon::parse($payment->package->availability_from_time)->format('h:i A') }} - {{ \Carbon\Carbon::parse($payment->package->availability_to_time)->format('h:i A') }} @else 24/7 Available @endif
@else

Package information not available

@endif
Customer Information
@if($payment->user) @else

Customer information not available

@endif
Payment Status
Payment Status
{{ ucfirst($payment->payment_status) }}
Payment Processed
{{ $payment->payment_date ? 'Yes' : 'No' }}
Payment Method
Subscription
Last Updated
{{ $payment->updated_at->format('M d, Y h:i A') }}
@if($payment->failure_code)
Error Code
{{ $payment->failure_code }}
@endif @if($payment->failure_message)
Error Message
{{ $payment->failure_message }}
@endif
@if($payment->stripe_event_data)
Stripe Event Data
{{ json_encode($payment->stripe_event_data, JSON_PRETTY_PRINT) }}
@endif
@endsection