@push('header') @endpush
{{-- Supplier Filter --}}
{{-- Start Date --}}
{{-- End Date --}}
{{-- Source Filter --}}
@if($reportData->isEmpty())

Please select a supplier and date range, then click Search to generate the report.

@else

Moon Traders
FMR vs AMR Comparison Report
Source: {{ $selectedSourceLabel }} | Supplier: {{ $selectedSupplierName }}
For the period {{ \Carbon\Carbon::parse($startDate)->format('d-M-Y') }} to {{ \Carbon\Carbon::parse($endDate)->format('d-M-Y') }}
Printed by: {{ auth()->user()->name }} | {{ now()->format('d-M-Y h:i A') }}

@php $counter = 1; @endphp @foreach ($reportData as $row) @endforeach
# Date Invoice #
(GRN)
FMR Liquid
(4210)
FMR Powder
(4220)
AMR Liquid
(5262)
AMR Powder
(5252)
Net Benefit/(Cost)
{{ $counter++ }} {{ $row->date }} @if($row->grn_id) {{ $row->invoice_number }} @else {{ $row->invoice_number }} @endif {{ is_null($row->fmr_liquid_total) ? '-' : number_format($row->fmr_liquid_total, 2) }} {{ is_null($row->fmr_powder_total) ? '-' : number_format($row->fmr_powder_total, 2) }} {{ is_null($row->amr_liquid_total) ? '-' : number_format($row->amr_liquid_total, 2) }} {{ is_null($row->amr_powder_total) ? '-' : number_format($row->amr_powder_total, 2) }} {{ is_null($row->difference) ? '-' : number_format($row->difference, 2) }}
Grand Total {{ number_format($grandTotals->fmr_liquid_total, 2) }} {{ number_format($grandTotals->fmr_powder_total, 2) }} {{ number_format($grandTotals->amr_liquid_total, 2) }} {{ number_format($grandTotals->amr_powder_total, 2) }} {{ number_format($grandTotals->difference, 2) }}
@endif
@push('scripts') @endpush