@extends('layouts.finance') @php $gateway = $gateway ?? 'kuickpay'; $gatewayShort = $gatewayShort ?? 'KuickPay'; $gatewayLabel = $gatewayLabel ?? 'Examism KuickPay'; $pendingRoute = $pendingRoute ?? 'dashboard.cards.kuickpay-pending'; $detailRoute = $detailRoute ?? 'dashboard.cards.kuickpay'; $creditCategory = $gateway === 'payfast' ? 'Credit from PayFast' : 'Credit from KuickPay'; $pendingCategory = $gateway === 'payfast' ? 'Pending PayFast' : 'Pending KuickPay'; @endphp @section('title', 'Pending '.$gatewayShort) @section('subtitle', 'Day-wise '.$gatewayShort.' net amounts not yet deposited to the bank') @section('content') @php $filters = $filters ?? ['mode' => 'all', 'month' => now()->format('Y-m'), 'from' => '', 'to' => '', 'pending' => true]; $settlements = $settlements ?? collect(); $pendingTotal = (float) ($pendingTotal ?? 0); $pendingGrossTotal = (float) ($pendingGrossTotal ?? 0); $netTotal = (float) ($netTotal ?? 0); $settledTotal = (float) ($settledTotal ?? 0); $salesDayLabel = $gateway === 'payfast' ? 'PayFast Day' : 'Sales Day'; @endphp
{{-- FILTERS --}}| {{ $salesDayLabel }} | Release Day | Bank / Account | Gross (PKR) | Fee (PKR) | Net (PKR) | Settled (PKR) | Remaining (PKR) | Status | |
|---|---|---|---|---|---|---|---|---|---|
|
{{ $s->collection_date->format('D, d M Y') }}
Actual {{ strtolower($salesDayLabel) }} used for this settlement
|
{{ $releaseDate?->format('D, d M Y') ?? '-' }}
Deposit / release day
|
{{ $s->providerLabel() }} | {{ $metrics->money($s->gross_amount, 'PKR') }} | {{ $metrics->money($s->fee_amount, 'PKR') }} | {{ $metrics->money($s->net_amount, 'PKR') }} | {{ $metrics->money($s->settled_amount, 'PKR') }} | {{ $metrics->money($remaining, 'PKR') }} | {{ ucfirst($s->status) }} @if($s->manual_override) {{-- Settled by hand, not reconciled against a bank credit. --}} Manual @endif | View orders |
| No pending {{ $gatewayShort }} settlements for the selected filters. | |||||||||
To record a deposit, open Transactions โ + Credit Transaction โ category {{ $creditCategory }} (yesterday) or {{ $pendingCategory }} (pick a day).
@endsection