@extends('layouts.user', ['heading' => 'Income / आय']) @section('content')
Selected Total
₹ {{ number_format($totalAmount ?? 0, 2) }}
Records
{{ $transactions->total() }}
@php $tabs = [ 'matching' => 'Matching', 'joining' => 'Joining Pair', 'direct' => 'Direct', 'rank' => 'Rank', 'cashback' => 'Cashback', 'ledger' => 'Ledger', ]; @endphp @foreach($tabs as $key => $label) {{ $label }} @endforeach
@forelse($transactions as $txn)
{{ $txn->source_type ?? 'ledger' }}
{{ optional($txn->transacted_at)->format('d M Y, h:i A') }}
Wallet: {{ $txn->wallet_type }} | {{ $txn->direction }}
{{ $txn->direction === 'credit' ? '+' : '-' }}₹ {{ number_format((float) $txn->amount, 2) }}
Ref: {{ $txn->display_reference ?? $txn->reference ?? 'NA' }}
@empty
No income records found.
@endforelse
{{ $transactions->links() }}
@endsection