@extends('backEnd.layouts.master') @section('title', 'Purchase Report') @section('css') @endsection @section('content')
{{-- HEADER --}}

Purchase Reports

Analysis for: {{ $label ?? 'Today' }}

{{-- FILTER FORM --}}
{{-- Report Type --}}
{{-- Dynamic Inputs --}} {{-- Actions --}}
{{-- SUMMARY STATS --}}
{{-- Total Purchase --}}
Total Purchase

৳{{ number_format($totalPurchaseAmount ?? 0, 2) }}

{{-- Total Paid --}}
Paid Amount

৳{{ number_format($totalPaid ?? 0, 2) }}

{{-- Total Due --}}
Total Due

৳{{ number_format($totalDue ?? 0, 2) }}

{{-- PURCHASE TABLE --}}
Detailed Purchase List
@forelse($purchases as $p) @empty @endforelse
# Invoice Supplier Total Amount Paid Due Date
{{ $loop->iteration }} #{{ $p->invoice_no ?? $p->id }} {{ $p->supplier->name ?? '-' }} ৳{{ number_format($p->grand_total ?? 0, 2) }} ৳{{ number_format($p->paid_amount ?? 0, 2) }} ৳{{ number_format($p->due_amount ?? 0, 2) }} {{ optional($p->purchase_date)->format('d M, Y') }}

No purchases found

{{-- Pagination --}}
Showing {{ $purchases->firstItem() }} to {{ $purchases->lastItem() }} of {{ $purchases->total() }} entries
{{ $purchases->links('pagination::bootstrap-4') }}
@endsection @section('script') @endsection