@extends('layouts.master') @push('css') @endpush @section('content')

Aging Payables — ادائیگی ادھاری

{{-- Filter Form --}}
@if($reportData && (count($reportData['supplierRows']) || count($reportData['purchaserRows']))) پرنٹ @endif

@if($reportData !== null) @php $fmt = fn($v, $z = '-') => $v == 0 ? $z : ($v < 0 ? '(' . number_format(abs($v), 0) . ')' : number_format($v, 0)); $hasSuppliers = count($reportData['supplierRows']) > 0; $hasPurchasers = count($reportData['purchaserRows']) > 0; @endphp @if(!$hasSuppliers && !$hasPurchasers)
کوئی اندراج نہیں ملا۔
@else {{-- Summary Cards --}}
سابقہ بیلنس {{ $fmt($reportData['grandSabiqah'], '0') }}
خرید وغیرہ {{ number_format($reportData['grandKharid'], 0) }}
ادائیگی {{ number_format($reportData['grandAdaegi'], 0) }}
حالیہ بیلنس {{ $fmt($reportData['grandHaliah'], '0') }}
{{-- Aging Table --}}
M.D.S
ادائیگی ادھاری    Aging Payables
مورخہ: {{ \Carbon\Carbon::parse($fromDate)->format('d/m/Y') }} تا {{ \Carbon\Carbon::parse($toDate)->format('d/m/Y') }}
{{-- ===== SUPPLIERS ===== --}} @if($hasSuppliers) @foreach($reportData['supplierRows'] as $row) @endforeach @endif {{-- ===== PURCHASERS ===== --}} @if($hasPurchasers) @foreach($reportData['purchaserRows'] as $row) @endforeach @endif {{-- ===== GRAND TOTAL ===== --}}
پارٹی سابقہ بیلنس خرید وغیرہ ادائیگی حالیہ بیلنس
▬ سپلائرز (Suppliers) ▬
{{ $row['supplier_name'] }} {{ $fmt($row['sabiqah']) }} {{ $row['kharid'] == 0 ? '-' : number_format($row['kharid'], 0) }} {{ $row['adaegi'] == 0 ? '0' : number_format($row['adaegi'], 0) }} {{ $fmt($row['haliah'], '0') }}
سپلائرز کا مجموعہ {{ $fmt($reportData['supplierSubtotals']['sabiqah'], '0') }} {{ number_format($reportData['supplierSubtotals']['kharid'], 0) }} {{ number_format($reportData['supplierSubtotals']['adaegi'], 0) }} {{ $fmt($reportData['supplierSubtotals']['haliah'], '0') }}
▬ خریدار (Purchasers) ▬
{{ $row['supplier_name'] }} {{ $fmt($row['sabiqah']) }} {{ $row['kharid'] == 0 ? '-' : number_format($row['kharid'], 0) }} {{ $row['adaegi'] == 0 ? '0' : number_format($row['adaegi'], 0) }} {{ $fmt($row['haliah'], '0') }}
خریداروں کا مجموعہ {{ $fmt($reportData['purchaserSubtotals']['sabiqah'], '0') }} {{ number_format($reportData['purchaserSubtotals']['kharid'], 0) }} {{ number_format($reportData['purchaserSubtotals']['adaegi'], 0) }} {{ $fmt($reportData['purchaserSubtotals']['haliah'], '0') }}
کُل مجموعہ (Grand Total) {{ $fmt($reportData['grandSabiqah'], '0') }} {{ number_format($reportData['grandKharid'], 0) }} {{ number_format($reportData['grandAdaegi'], 0) }} {{ $fmt($reportData['grandHaliah'], '0') }}
@endif @endif
@endsection