@php $requests = $historyRows ?? $pendingRequests ?? []; @endphp @if(empty($requests))
কোন pending payment request নেই। Store admin নতুন package select করে slip upload করলে এখানে দেখাবে।
@else
@foreach($requests as $row) @php $itemNames = collect($row['items'] ?? [])->pluck('name')->filter()->implode(', '); if (! $itemNames && ! empty($row['plan_key'])) { $itemNames = config('subscription-plans.' . $row['plan_key'] . '.name', $row['plan_key']); } $rid = $row['id'] ?? ''; @endphp
Pending Approval
{{ $itemNames ?: 'Package Request' }}
Submitted: {{ isset($row['submitted_at']) ? \Carbon\Carbon::parse($row['submitted_at'])->format('d M Y, h:i A') : '—' }} @if(! empty($row['submitted_by'])) · by {{ $row['submitted_by'] }} @endif
৳{{ number_format($row['amount'] ?? 0, 2) }}
{{ $row['duration_months'] ?? '—' }} months · Bank Transfer
@if(! empty($row['items']))
    @foreach($row['items'] as $item)
  • {{ $item['name'] ?? '—' }} — ৳{{ number_format($item['amount'] ?? 0, 2) }}
  • @endforeach
@endif @if(! empty($row['customer_notes']))
Customer note: {{ $row['customer_notes'] }}
@endif
@if(! empty($row['slip_path'])) View Payment Slip @endif
@csrf
@csrf
@endforeach
@endif