@push('header') @endpush
{{-- Date --}}
{{-- Supplier Filter --}}
{{-- Designation Filter --}}
{{-- Multi-Select Salesman --}}
{{-- Show Bank/Cash & Investment Comparison toggle --}}
{{-- Report Header --}}

SHAHZAIN TRADERS - MUZAFFRABAD
INVESTMENT SUMMARY
@if($selectedSupplier) DISTRIBUTOR: {{ $selectedSupplier->supplier_name }}
@endif Date: {{ \Carbon\Carbon::parse($date)->format('d.m.Y') }}
Printed by: {{ auth()->user()->name }} | {{ now()->format('d-M-Y h:i A') }}

{{-- Part 1: Salesman Credit Table --}} @forelse($salesmanCreditData as $index => $salesman) @empty @endforelse
# Salesman Name Opening Credit Credit Recovery Total Credit
{{ $loop->iteration }} {{ $salesman->name }} {{ number_format($salesman->opening_credit, 2) }} {{ number_format($salesman->credit_amount, 2) }} {{ number_format($salesman->recovery_amount, 2) }} {{ number_format($salesman->total_credit, 2) }}
No data found
Total: {{ number_format($creditGrandTotals->opening_credit, 2) }} {{ number_format($creditGrandTotals->credit_amount, 2) }} {{ number_format($creditGrandTotals->recovery_amount, 2) }} {{ number_format($creditGrandTotals->total_credit, 2) }}
{{-- Part 2: Investment Summary & Expenses --}}
{{-- SHAHZAIN TRADERS INVESTMENT Table --}}
# SHAHZAIN TRADERS INVESTMENT
1 Powder Expiry {{ number_format($powderExpiry, 2) }}
2 Liquid Expiry {{ number_format($liquidExpiry, 2) }}
3 Claim Amount {{ number_format($claimAmount, 2) }}
4 Stock Amount {{ number_format($stockAmount, 2) }}
5 Credit Amount {{ number_format($creditAmount, 2) }}
6 Ledger Amount {{ number_format($ledgerAmount, 2) }}
7 Total Main Investment as on {{ $formattedDate }} {{ number_format($currentTotal, 2) }}
8 Daily Cash as on {{ $formattedDate }} {{ number_format($dailyCash, 2) }}
9 Bank Slips / Deposits {{ number_format($dailyBankSlips, 2) }}
10 Bank Transfers / Online {{ number_format($dailyBankTransfers, 2) }}
11 Cheque Payments {{ number_format($dailyChequePayments, 2) }}
12 Total Investment as on {{ $formattedDate }} {{ number_format($totalInvestment, 2) }}
13 Total Investment as on {{ $formattedPreviousDate }} {{ number_format($previousTotalInvestment, 2) }}
14 Bank Online as on {{ $formattedDate }} {{ number_format($bankOnline, 2) }}
15 Increase in Investment as on {{ $formattedDate }} {{ number_format($increaseInInvestment, 2) }}
{{-- Expenses Detail Table --}}
@for ($i = 8; $i <= 12; $i++) @endfor
# Expenses Detail
1 Stationary {{ number_format($expenseCategoryTotals['stationary'] ?? 0, 2) }}
2 TCS {{ number_format($expenseCategoryTotals['tcs'] ?? 0, 2) }}
3 Tonner & IT {{ number_format($expenseCategoryTotals['tonner_it'] ?? 0, 2) }}
4 Salaries {{ number_format($expenseCategoryTotals['salaries'] ?? 0, 2) }}
5 Fuel {{ number_format($expenseCategoryTotals['fuel'] ?? 0, 2) }}
6 Van Work {{ number_format($expenseCategoryTotals['van_work'] ?? 0, 2) }}
7 Total Expenses {{ number_format($totalExpensesMonth, 2) }}
{{ $i }} - -
{{-- Part 3: Bank/Cash Summary --}}
{{-- Bank/Cash Summary Table --}}
# Bank / Cash Summary — {{ $currentMonthName }}
1 Bank Opening Amount (Opening balance from previous month) {{ number_format($bankOpeningAmount, 2) }}
2 Total Cash Received in Current Month (Cash + Bank Slips + Bank Transfers + Recovery Bank Transfers + Cheques) {{ number_format($totalCashReceivedMonth, 2) }}
3 Total Bank Amount (Row 1 + Row 2) {{ number_format($totalBankAmount, 2) }}
4 Total Online Amount in Current Month (Bank transfers sent out via Ledger Register) {{ number_format($totalOnlineAmountMonth, 2) }}
5 Closing Balance before Expenses (Row 3 − Row 4) {{ number_format($closingBalanceBeforeExpenses, 2) }}
6 Total Expenses in Current Month (All settlement expenses) {{ number_format($totalExpensesMonth, 2) }}
7 Closing Balance After Expenses (Row 5 − Row 6) {{ number_format($closingBalanceAfterExpenses, 2) }}
{{-- Investment Comparison Table --}}
@for ($i = 5; $i <= 7; $i++) @endfor
# Investment Comparison — {{ $currentMonthName }}
1 Last Month Main Investment ({{ $formattedLastDayPrevMonth }}) {{ number_format($lastMonthMainInvestment, 2) }}
2 Current Month Main Investment ({{ $formattedDate }}) {{ number_format($currentMonthMainInvestment, 2) }}
3 Net Investment {{ number_format($netInvestment, 2) }}
4 Increase In Investment Current Month {{ number_format($increaseInInvestmentMonth, 2) }}
{{ $i }} - -
@push('scripts') @endpush