@extends('layouts.user', ['heading' => 'Income Ledger']) @section('content')
Filtered Net Total
Rs. {{ number_format((float) $totalAmount, 2) }}
Today Income
Rs. {{ number_format((float) $summary['today_income'], 2) }}
This Month
Rs. {{ number_format((float) $summary['monthly_income'], 2) }}
Lifetime Income
Rs. {{ number_format((float) $summary['lifetime_income'], 2) }}
@php $tabs = [ 'matching' => 'Matching', 'joining' => 'Joining Pair', 'direct' => 'Direct', 'rank' => 'Rank', 'cashback' => 'Cashback', 'ledger' => 'Full Ledger', ]; @endphp @foreach($tabs as $key => $label) {{ $label }} @endforeach
Reset Excel CSV PDF
@forelse($transactions as $txn)
{{ $txn->source_type ?: 'ledger' }}
{{ optional($txn->transacted_at)->format('d M Y, h:i A') }}
Ref
{{ $txn->display_reference ?? $txn->reference ?? 'NA' }}
Wallet: {{ $txn->wallet_type }}
Direction: {{ $txn->direction }}
Opening: {{ number_format((float) $txn->opening_balance, 2) }}
Closing: {{ number_format((float) $txn->closing_balance, 2) }}
{{ $txn->direction === 'credit' ? '+' : '-' }}Rs. {{ number_format((float) $txn->amount, 2) }}
@if($txn->narration)
{{ $txn->narration }}
@endif
@empty
No income records found for selected filters.
@endforelse
{{ $transactions->links() }}
@endsection