@extends('layout.erp.app') @section('title', 'Purchase Report') @section('style') @endsection @section('page')

Purchase Report

@csrf
@if (!empty($purchases)) @foreach ($purchases as $purchase) @endforeach
Id Supplier Payment Status Order Total Paid Amount Discount Vat Date
{{ $purchase->id }} {{ optional($purchase->supplier)->name }} {{ optional($purchase->payment_status)->name }} {{ number_format($purchase->order_total, 2) }} {{ number_format($purchase->paid_amount, 2) }} {{ number_format($purchase->discount, 2) }} {{ number_format($purchase->vat, 2) }} {{ $purchase->date }}
Total Paid Amount: {{ number_format($totalPaid, 2) }}
Total Unpaid Amount: {{ number_format($totalUnpaid, 2) }}
Total Pending Amount: {{ number_format($totalPending, 2) }}
@else

No purchases found for the selected date range.

@endif
@endsection