@extends('layouts.dashboard') @section('title', 'Subscription Details') @section('content')

Subscription Details

Back to Subscriptions
@include('partials.alerts')
Subscription Information
{{ ucfirst($subscription->status) }}

Amount

{{ $subscription->formatted_amount }}

Billing Frequency

{{ ucfirst($subscription->interval) }}

Start Date

{{ $subscription->start_date->format('M d, Y') }}

Next Payment Date

@if($subscription->next_payment_date && $subscription->isActive()) {{ $subscription->next_payment_date->format('M d, Y') }} @elseif($subscription->isCancelled()) Cancelled on {{ $subscription->cancelled_at->format('M d, Y') }} @else Not scheduled @endif

Plan

{{ $subscription->plan ? $subscription->plan->name : 'N/A' }}

Recipient

@if($subscription->elderly) {{ $subscription->elderly->full_name }} @else General Donation @endif

Payment Method

@if(isset($subscription->payment_details['authorization'])) {{ $subscription->payment_details['authorization']['brand'] ?? 'Card' }} ending in {{ $subscription->payment_details['authorization']['last4'] ?? '****' }} (expires {{ $subscription->payment_details['authorization']['exp_month'] ?? '**' }}/{{ $subscription->payment_details['authorization']['exp_year'] ?? '****' }}) @else Payment information not available @endif

@if($subscription->isActive())
@csrf @method('PUT')
@elseif($subscription->isCancelled())
@csrf @method('PUT')
@endif Update Payment Method
@csrf
Recent Payments
@if($donations->count() > 0)
@foreach($donations as $donation) @endforeach
Date Amount Status Transaction ID
{{ $donation->created_at->format('M d, Y') }} {{ $donation->formatted_amount }} @if($donation->payment_status === 'completed') Completed @elseif($donation->payment_status === 'pending') Pending @else {{ ucfirst($donation->payment_status) }} @endif {{ $donation->transaction_id ?? 'N/A' }}
{{ $donations->links() }} @else

No payment records found for this subscription.

@endif
Frequently Asked Questions
How do I cancel my subscription?

You can cancel your subscription at any time by clicking the "Cancel Subscription" button. Your subscription will stop at the end of the current billing period.

How do I update my payment method?

Click the "Update Payment Method" button to update your card information. You can also have an update link sent to your email.

When will I be charged?

Your card will be charged automatically on the next payment date shown above, and then at the same frequency thereafter.

Can I reactivate a cancelled subscription?

Yes, if you've cancelled your subscription, you can reactivate it by clicking the "Reactivate Subscription" button.

Need Help?

If you have any questions about your subscription or need assistance, our support team is here to help.

Contact Support
@endsection