@extends('layouts.finance') @section('title', 'KuickPay Fee') @section('subtitle', 'Per-transaction KuickPay fee on Paid Link1Voucher orders') @section('content') @php $filters = $filters ?? ['mode' => 'month', 'month' => now()->format('Y-m'), 'from' => now()->startOfMonth()->toDateString(), 'to' => now()->endOfMonth()->toDateString(), 'q' => '']; $rows = $rows ?? collect(); $feeTotal = (float) ($feeTotal ?? 0); $amountTotal = (float) ($amountTotal ?? 0); $count = (int) ($count ?? 0); $slabs = $slabs ?? \App\Support\FinanceSuiteMetrics::KUICKPAY_FEE_SLABS; $isPaginated = $rows instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator; @endphp
Back to Dashboard
{{-- FILTERS --}}

Filters

{{ $filters['mode'] === 'date' ? 'Date wise' : 'Monthly' }}
Reset
{{-- SUMMARY KPI --}}
Total Fee (Filtered)
{{ $metrics->money($feeTotal, 'PKR') }}
{{ \Illuminate\Support\Carbon::parse($filters['from'])->format('M d, Y') }} – {{ \Illuminate\Support\Carbon::parse($filters['to'])->format('M d, Y') }}
Transaction Volume
{{ $metrics->money($amountTotal, 'PKR') }}
Status = Paid
Orders
{{ number_format($count) }}
Fee charged per transaction
{{-- FEE SLAB REFERENCE --}}

Fee Structure

Per single transaction
@foreach($slabs as $slab) @endforeach
Transaction Amount Fee (PKR)
{{ $slab['label'] }} {{ number_format($slab['fee']) }}
{{-- TRANSACTIONS TABLE --}}

KuickPay Transactions & Fees

Link1Voucher · Status = Paid
@forelse($rows as $i => $row) @php $offset = $isPaginated ? (($rows->currentPage() - 1) * $rows->perPage()) : 0; $rowNum = $offset + $i + 1; $voucher = $row->Voucher ?? '-'; $candName = $row->CandName ?? '-'; $agentId = $row->agent_id ?? '-'; $amount = (float) ($row->TransactionAmount ?? 0); $fee = $metrics->kuickpayFee($amount); $txDate = $row->TransactionDate ?? '-'; @endphp @empty @endforelse
# Voucher Candidate Agent ID Amount (PKR) Fee (PKR) Transaction Date
{{ $rowNum }} {{ $voucher }} {{ $candName }} #{{ $agentId }} {{ $metrics->money($amount, 'PKR') }} {{ $metrics->money($fee, 'PKR') }} {{ $txDate }}
No KuickPay transactions found for the selected filters.
@if($isPaginated && $rows->hasPages())
{{ $rows->appends(request()->query())->links() }}
@endif
@endsection