{{-- resources/views/purchase/bills/index.blade.php --}} @extends('master.app') @section('title', 'Supplier Invoices') @section('body')
{{-- Header --}}
Supplier Invoices
Total: {{ $bills->total() }} @if (request()->filled('q') || request()->filled('supplier_id') || request()->filled('bill_type') || request()->filled('date_from') || request()->filled('date_to')) Filtered @endif
{{-- Report --}} Add Invoice
{{-- Filter Box (inline, no modal) --}}
Reset
{{-- Table --}}
@forelse ($bills as $row) @empty @endforelse
Invoice # Type Title Supplier Total Date Actions
{{ $row->invoice_number }} @if ($row->type_id == 1 || $row->type_id == null) Raw Materials @else Finished Goods @endif
{{ $row->title }}
ID: {{ $row->id }}
{{ $row->supplier->name ?? '-' }} {{ number_format((float) $row->grand_total, 2) }} {{ $row->invoice_date }}
No invoices found.
{{-- Pagination --}}
{{ $bills->appends(request()->query())->links('pagination::bootstrap-4') }}
@endsection @section('pageJs') @endsection