Subscribe with a gifted product preloaded into your cart.
| 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) }} | @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{{ $statusLabel }} | View Order View Payments | |||||||||
|
@php
$order = null;
if ($p->payable_type === $orderClass && isset($ordersById[$p->payable_id])) {
$order = $ordersById[$p->payable_id];
} else {
try { $order = $p->payable; } catch (\Throwable $e) { $order = null; }
}
@endphp
@if($order && method_exists($order, 'items'))
@php
$billingInterval = $order->billing_interval ?? null;
$intervalLabel = $billingInterval === 'yearly' ? 'Yearly' : ($billingInterval === 'monthly' ? 'Monthly' : null);
$intervalColor = $billingInterval === 'yearly' ? 'bg-green-100 text-green-800' : 'bg-blue-100 text-blue-800';
$intervalSuffix = $billingInterval === 'yearly' ? '/yr' : '/mo';
@endphp
Order {{ $order->number ?? $order->id }}
— placed {{ $order->created_at ? \Carbon\Carbon::parse($order->created_at)->toDateString() : '-' }}
@if($intervalLabel)
{{ $intervalLabel }}
@endif
No linked order details available.
@endif
|
|||||||||||||||
|
@php
$orderPayments = collect();
if (isset($order->id)) {
$orderPayments = \App\Models\Payment::where('payable_type', $orderClass)->where('payable_id', $order->id)->orderByDesc('subscription_date')->get();
}
@endphp
Payments for order {{ $order->number ?? $order->id ?? '-' }}
@if($orderPayments->isEmpty())
No payments found for this order.
@else
|
|||||||||||||||
| 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) }} |
| 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.
The subscription will be cancelled at the end of the current billing period. When the subscription ends, access to the products and plugins provided by this subscription will be revoked.