@extends('layouts.app') @section('title', 'Supplier bills') @section('content')
Pending bills
{{ $bst['pending'] ?? 0 }}
Overdue
{{ $bst['overdue'] ?? 0 }}
Paid this month
{{ \App\Support\Format::mwkDecimal($bst['paid_month'] ?? 0) }}
Outstanding
{{ \App\Support\Format::mwkDecimal($bst['outstanding'] ?? 0) }}
| Bill # | Supplier | PO | Bill date | Due | Amount | Balance | Status | Action |
|---|---|---|---|---|---|---|---|---|
| {{ $b->bill_number }} | {{ $b->supplier?->company_name }} | {{ $b->inventoryPurchaseOrder?->po_number ?? '—' }} | {{ $b->bill_date?->format('Y-m-d') }} | {{ $b->due_date?->format('Y-m-d') ?? '—' }} | {{ \App\Support\Format::mwkDecimal($b->total_amount) }} | {{ \App\Support\Format::mwkDecimal($b->balance_due) }} | {{ $b->status }} | View @if(! in_array($b->status, ['Paid', 'Cancelled'], true)) Pay @endif |
| No supplier bills. | ||||||||
New supplier bill