@push('header') @endpush
{{-- As-Of Date --}}
{{-- Supplier --}}
{{-- Warehouse --}}
{{-- Category --}}
{{-- Stock Source --}}
{{-- Sort By --}}
{{-- Show Zero Stock --}}
{{-- Report Header --}}

Stock Availability — Supplier Wise

As of: {{ \Carbon\Carbon::parse($asOfDate)->format('d M Y') }} @if (!$isCurrentStock) (Historical) @else (Current) @endif  |  Source: {{ match($stockSource) { 'warehouse' => 'Warehouse Only', 'van' => 'Van Only', default => 'Warehouse + Van' } }}  |  {{ $stockData->count() }} supplier(s)

{{-- Print Header --}}
@if ($stockData->isEmpty())
No stock data found for the selected filters.
@else @foreach ($stockData as $index => $row) @endforeach
Sr# Supplier Stock In Quantity Stock Amount (Rs.)
{{ $index + 1 }} {{ $row->supplier_name }} {{ number_format($row->total_quantity, 2) }} {{ number_format($row->total_amount, 2) }}
Grand Total {{ number_format($grandTotalQuantity, 2) }} {{ number_format($grandTotalAmount, 2) }}
@endif