@extends('layouts.finance') @section('title', 'Factory Payout Detail') @section('subtitle', 'Bank credits recorded as Factory Payout') @section('content') @php $displayCurrency = 'PKR'; $fmt = fn($usd) => $metrics->moneyIn($usd, 'USD', $displayCurrency); $rowCount = $rows->count(); $latestDate = $rows->max(fn($row) => $row['date']?->toDateString()); @endphp
Back to Dashboard

Filters

{{ $filters['mode'] === 'date' ? 'Date wise' : 'Monthly' }}
Reset
Factory Payout
{{ $fmt($totalUsd) }}
{{ \Illuminate\Support\Carbon::parse($filters['from'])->format('M d, Y') }} - {{ \Illuminate\Support\Carbon::parse($filters['to'])->format('M d, Y') }}
Payout Rows
{{ number_format($rowCount) }}
Transactions found
Average Payout
{{ $fmt($rowCount > 0 ? $totalUsd / $rowCount : 0) }}
Per recorded credit
Latest Payout
{{ $latestDate ? \Illuminate\Support\Carbon::parse($latestDate)->format('M d, Y') : '-' }}
Most recent row

Payout Details

{{ $displayCurrency }}
@forelse($rows as $row) @empty @endforelse
Date Account Received From Description Reference Amount PKR Equivalent View
{{ $row['date']?->format('d M Y') ?: '-' }} {{ $row['account'] ?: '-' }} {{ $row['counterparty'] ?: '-' }} {{ $row['description'] ?: '-' }} {{ $row['reference'] ?: '-' }} {{ $metrics->money($row['amount'], $row['currency']) }} {{ $fmt($row['amount_usd']) }} @if($row['transaction']) Open @else - @endif
No factory payout rows found for this period.
@endsection