@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
{{-- FILTERS --}}
Filters
{{ $filters['mode'] === 'date' ? 'Date wise' : 'Monthly' }}
{{-- 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
| Transaction Amount |
Fee (PKR) |
@foreach($slabs as $slab)
| {{ $slab['label'] }} |
{{ number_format($slab['fee']) }} |
@endforeach
{{-- TRANSACTIONS TABLE --}}
KuickPay Transactions & Fees
Link1Voucher · Status = Paid
| # |
Voucher |
Candidate |
Agent ID |
Amount (PKR) |
Fee (PKR) |
Transaction Date |
@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
| {{ $rowNum }} |
{{ $voucher }} |
{{ $candName }} |
#{{ $agentId }} |
{{ $metrics->money($amount, 'PKR') }} |
{{ $metrics->money($fee, 'PKR') }} |
{{ $txDate }} |
@empty
|
No KuickPay transactions found for the selected filters.
|
@endforelse
@if($isPaginated && $rows->hasPages())
{{ $rows->appends(request()->query())->links() }}
@endif
@endsection