@extends('user.layouts.app', ['title' => $title]) @push('head') @endpush @section('content') @php $exportUrl = route($reportRoute, array_filter([ 'start_date' => $filters['start_date'], 'end_date' => $filters['end_date'], 'export' => 'xls', ], fn ($value) => $value !== '')); $totalCollection = $rows->sum('total_collection'); $totalSettlement = $rows->sum('total_settlement_debit'); $totalPayouts = $rows->sum('total_payouts'); $totalClosingBalance = (float) optional($rows->last())->closing_balance; @endphp

{{ $title }}

{{ $subtitle }}
Export Filter
Reports
Export Xls
@forelse ($rows as $index => $row) @empty @endforelse
Sr no. Date Total Collection Collection Fee Total Payouts Payouts Fee Net Balance Last Day Negative Balance Total Credit Total Settlement (Debit) Closing Balance
{{ $index + 1 }} {{ $row->report_date }} {{ number_format((float) $row->total_collection, 2) }} PKR {{ number_format((float) $row->collection_fee, 2) }} PKR {{ number_format((float) $row->total_payouts, 2) }} PKR {{ number_format((float) $row->payouts_fee, 2) }} PKR {{ number_format((float) $row->net_balance, 2) }} PKR {{ number_format((float) $row->last_day_negative_balance, 2) }} PKR {{ number_format((float) $row->total_credit, 2) }} PKR {{ number_format((float) $row->total_settlement_debit, 2) }} PKR {{ number_format((float) $row->closing_balance, 2) }} PKR
No report data found for the selected filters.
Total Collection : {{ number_format((float) $totalCollection, 2) }} PKR
Total Settlement : {{ number_format((float) $totalSettlement, 2) }} PKR
Total Payouts : {{ number_format((float) $totalPayouts, 2) }} PKR
Total Closing Balance : {{ number_format($totalClosingBalance, 2) }} PKR
@endsection @push('scripts') @endpush