@extends('layouts.app') @section('title', 'Purchases') @section('content')

Purchases

Manage all purchase records

Add Purchase
{{-- Success Message --}} @if(session('success')) @endif
@forelse($purchases as $purchase) {{-- Serial Number --}} {{-- Purchase Number --}} {{-- Supplier --}} {{-- Purchase Date --}} {{-- Invoice Number --}} {{-- Grand Total --}} {{-- Payment Status --}} {{-- Actions --}} @empty @endforelse
# Purchase No Supplier Purchase Date Invoice No Grand Total Payment Status Action
{{ $purchases->firstItem() + $loop->index }} {{ $purchase->purchase_no }} @if($purchase->supplier) {{ $purchase->supplier->company_name }} @else N/A @endif {{ $purchase->purchase_date ? \Carbon\Carbon::parse($purchase->purchase_date)->format('d-m-Y') : '-' }} {{ $purchase->invoice_no ?? '-' }} ₹{{ number_format((float) $purchase->grand_total, 2) }} @if($purchase->payment_status === 'Paid') Paid @elseif($purchase->payment_status === 'Partial') Partial @else Unpaid @endif
{{-- View --}} @if(Route::has('purchases.show')) View @endif {{-- Edit --}} Edit {{-- Delete --}} @if(Route::has('purchases.destroy'))
@csrf @method('DELETE')
@endif
No Purchase Found

You haven't added any purchase yet.

Add Your First Purchase
{{-- Pagination --}} @if($purchases->hasPages())
{{ $purchases->links() }}
@endif
@endsection