{{ __('Subscriptions') }}

Subscriptions

@if(!empty($giftables) && $giftables->isNotEmpty())

Gift Subscriptions

Subscribe with a gifted product preloaded into your cart.

@foreach($giftables as $g) @php $prod = $g->product; @endphp @if($prod)
{{ $g->name ?? $prod->name }}
SKU: {{ $g->sku ?? $prod->sku }}
Start
{{ $g->start_date ? \Carbon\Carbon::parse($g->start_date)->toDateString() : 'Immediate' }}
End
{{ $g->end_date ? \Carbon\Carbon::parse($g->end_date)->toDateString() : 'No end' }}
@csrf
@endif @endforeach
@endif @if (empty($payments) || (method_exists($payments, 'isEmpty') ? $payments->isEmpty() : count($payments) === 0))
No subscriptions found.
@else
@foreach($payments as $p) @php $now = \Carbon\Carbon::now(); $statusLabel = 'Active'; if (isset($p->status) && strtolower($p->status) === 'cancelled') { $statusLabel = 'Cancelled'; } elseif (!empty($p->expiry_date)) { $exp = \Carbon\Carbon::parse($p->expiry_date); if ($exp->lt($now)) { $statusLabel = 'Expired'; } else { if (isset($p->status) && strpos(strtolower($p->status), 'cancel') !== false) { $statusLabel = 'Cancelling (ends ' . $exp->toDateString() . ')'; } else { $statusLabel = 'Active (ends ' . $exp->toDateString() . ')'; } } } else { $statusLabel = 'Active'; } @endphp @endforeach
ID Plan Started Expires Amount (USD) Status  
#{{ $p->id }} {{ $p->plan ?? $p->subtype ?? '-' }} {{ $p->subscription_date ? \Carbon\Carbon::parse($p->subscription_date)->toDateString() : '-' }} {{ $p->expiry_date ? \Carbon\Carbon::parse($p->expiry_date)->toDateString() : '-' }} {{ '$' . number_format((float) ($p->amount_paid ?? $p->amount ?? 0), 2) }}{{ $statusLabel }} View Order View Payments
{{ $payments->withQueryString()->links() }}
@endif
@if($paymentSummary->isNotEmpty())

Payment Expense Summary

@if($hasTaxRecords)
@endif
@foreach($paymentSummary as $summary) @php $q1_total = $summary['q1']['amount'] + $summary['q1']['tax']; $q2_total = $summary['q2']['amount'] + $summary['q2']['tax']; $q3_total = $summary['q3']['amount'] + $summary['q3']['tax']; $q4_total = $summary['q4']['amount'] + $summary['q4']['tax']; $grand_total = $summary['total_amount'] + $summary['total_tax']; @endphp @endforeach
YEAR Q1 Q2 Q3 Q4 TOTAL
{{ $summary['year'] }} ${{ number_format($q1_total, 2) }} ${{ number_format($q2_total, 2) }} ${{ number_format($q3_total, 2) }} ${{ number_format($q4_total, 2) }} ${{ number_format($grand_total, 2) }}
@endif @if($hasTaxRecords)

Tax Collected Summary

@foreach($taxSummary as $summary) @endforeach
YEAR Q1 Q2 Q3 Q4 TOTAL AMT
{{ $summary['year'] }} ${{ number_format($summary['q1'], 2) }} ${{ number_format($summary['q2'], 2) }} ${{ number_format($summary['q3'], 2) }} ${{ number_format($summary['q4'], 2) }} ${{ number_format($summary['total'], 2) }}

* This summary includes all successful payments where tax was collected based on your billing address.

@endif