@push('header') @endpush {{-- Status Messages --}} @if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- Filter Section --}}
{{-- Summary Cards --}}
Total Invoice Value
{{ number_format($totals->total_invoice_value ?? 0, 2) }}
Total Cartons
{{ number_format($totals->total_cartons ?? 0) }}
Total Sales Tax
{{ number_format($totals->total_sales_tax ?? 0, 2) }}
Total with Tax
{{ number_format($totals->total_with_tax ?? 0, 2) }}
{{-- Main Report --}}
{{-- Report Header --}}

INVOICE SUMMARY - {{ strtoupper(\Carbon\Carbon::parse($dateFrom)->format('F Y')) }}

@if ($selectedSupplier)

{{ $selectedSupplier->supplier_name }}

@endif Printed by: {{ auth()->user()->name }} | {{ now()->format('d-M-Y h:i A') }}
{{-- Data Table --}}
@forelse ($entries as $index => $entry) @empty @endforelse {{-- Inline Add Form Row --}} @can('report-audit-invoice-summary-manage') @endcan {{-- Footer Totals --}}
Sr# Date Invoice Number Cartons Invoice Value 0.5% On Inv. Discount FMR Allow. Disc. Before ST Excise Duty Sales Tax Adv. Tax Total with Tax Actions
{{ $entries->firstItem() + $index }} {{ $entry->invoice_date->format('d.m.Y') }} {{ $entry->invoice_number }} {{ number_format($entry->cartons) }} {{ number_format($entry->invoice_value, 2) }} {{ $entry->za_on_invoices > 0 ? number_format($entry->za_on_invoices, 2) : '-' }} {{ $entry->discount_value > 0 ? number_format($entry->discount_value, 2) : '-' }} {{ $entry->fmr_allowance > 0 ? number_format($entry->fmr_allowance, 2) : '-' }} {{ $entry->discount_before_sales_tax > 0 ? number_format($entry->discount_before_sales_tax, 2) : '-' }} {{ $entry->excise_duty > 0 ? number_format($entry->excise_duty, 2) : '-' }} {{ $entry->sales_tax_value > 0 ? number_format($entry->sales_tax_value, 2) : '-' }} {{ $entry->advance_tax > 0 ? number_format($entry->advance_tax, 2) : '-' }} {{ number_format($entry->total_value_with_tax, 2) }} @can('report-audit-invoice-summary-manage')
@csrf @method('DELETE')
@endcan
No invoice entries found for the selected filters.
@csrf
+
TOTAL ({{ $totals->total_entries ?? 0 }} invoices) {{ number_format($totals->total_cartons ?? 0) }} {{ number_format($totals->total_invoice_value ?? 0, 2) }} {{ number_format($totals->total_za ?? 0, 2) }} {{ number_format($totals->total_discount ?? 0, 2) }} {{ number_format($totals->total_fmr ?? 0, 2) }} {{ number_format($totals->total_disc_before_st ?? 0, 2) }} {{ number_format($totals->total_excise ?? 0, 2) }} {{ number_format($totals->total_sales_tax ?? 0, 2) }} {{ number_format($totals->total_advance_tax ?? 0, 2) }} {{ number_format($totals->total_with_tax ?? 0, 2) }}
{{-- Add Entry Toggle Button --}} @can('report-audit-invoice-summary-manage')
@endcan
{{-- Pagination --}} @if ($entries->hasPages())
{{ $entries->links() }}
@endif
{{-- Edit Modal with Backdrop Blur --}} @can('report-audit-invoice-summary-manage') @endcan @push('scripts') @endpush