@extends('layouts.admin', ['heading' => 'Income Engine', 'subheading' => 'Matching, capping, carry forward, and daily closing visibility']) @section('content')
Joining Net Income
Rs {{ number_format((float) ($joiningSummary->net_income ?? 0), 2) }}
Runs: {{ (int) ($joiningSummary->runs ?? 0) }}
Repurchase Net Income
Rs {{ number_format((float) ($repurchaseSummary->net_income ?? 0), 2) }}
Runs: {{ (int) ($repurchaseSummary->runs ?? 0) }}
Joining Capping Deduction
Rs {{ number_format((float) ($joiningSummary->capping_deduction ?? 0), 2) }}
Gross: Rs {{ number_format((float) ($joiningSummary->gross_income ?? 0), 2) }}
Repurchase Capping Deduction
Rs {{ number_format((float) ($repurchaseSummary->capping_deduction ?? 0), 2) }}
Gross: Rs {{ number_format((float) ($repurchaseSummary->gross_income ?? 0), 2) }}
Daily Closing Trend
Current Engine Settings
Joining Pair Value: {{ $settingsSnapshot['joining_pair_value'] }}
Repurchase Rate: {{ $settingsSnapshot['pair_rate'] }}
Joining Daily Capping: {{ $settingsSnapshot['joining_daily_capping'] }}
Repurchase Daily Capping: {{ $settingsSnapshot['repurchase_daily_capping'] }}
TDS %: {{ $settingsSnapshot['tds_percent'] }}
Charge %: {{ $settingsSnapshot['charge_percent'] }}
Carry Forward Totals
Joining Left: {{ number_format((float) ($carrySummary->joining_left ?? 0), 4) }}
Joining Right: {{ number_format((float) ($carrySummary->joining_right ?? 0), 4) }}
Repurchase Left: {{ number_format((float) ($carrySummary->repurchase_left ?? 0), 4) }}
Repurchase Right: {{ number_format((float) ($carrySummary->repurchase_right ?? 0), 4) }}
Pending Ledger (Unprocessed)
@forelse($pendingLedger as $row) @empty @endforelse
Type Rows Units
{{ $row->ledger_type }} {{ $row->rows_count }} {{ number_format((float) $row->units, 4) }}
No pending ledger rows.
Income Source Distribution
@forelse($incomeBySource as $row) @empty @endforelse
Source Entries Amount
{{ $row->source }} {{ $row->entries }} Rs {{ number_format((float) $row->total_amount, 2) }}
No income entries.
Income Projection Calculator
@csrf
@if($calculatorResult)
Type: {{ ucfirst((string) $calculatorResult['type']) }}
Matched: {{ number_format((float) $calculatorResult['matched_units'], 4) }}
Gross: Rs {{ number_format((float) $calculatorResult['gross_income'], 2) }}
Capping: {{ number_format((float) $calculatorResult['capping_applied'], 2) }}
Deduction: Rs {{ number_format((float) $calculatorResult['capping_deduction'], 2) }}
Net: Rs {{ number_format((float) $calculatorResult['net_income'], 2) }}
Carry: L {{ number_format((float) $calculatorResult['carry_left'], 4) }} / R {{ number_format((float) $calculatorResult['carry_right'], 4) }}
@endif
Rank Capping Matrix
@forelse($rankCapping as $rank) @empty @endforelse
Rank Priority Daily Cap Req Directs Req Weak BV
{{ $rank->name }} {{ $rank->priority }} {{ number_format((float) $rank->daily_capping, 2) }} {{ $rank->required_active_directs }} {{ number_format((float) $rank->required_weak_leg_bv, 2) }}
No active rank configuration found.
@endsection