@extends('layouts.app')
@section('title', 'Payables')
@section('content')
| Vendor | Category | Phone | Billed | Paid | We owe | Actions |
|---|---|---|---|---|---|---|
| {{ $v->category ?: '—' }} | {{ $v->phone ?: '—' }} | {{ money($v->billed()) }} | {{ money($v->paid()) }} | {{ money($v->balance()) }} | Pay | |
| Bill | Vendor | Bill date | Due date | Amount | Balance |
|---|---|---|---|---|---|
| {{ $b->bill_no ?: '#'.$b->id }} | {{ $b->vendor->name }} | {{ $b->bill_date->format('d M Y') }} | {{ $b->due_date?->format('d M Y') ?? '—' }}@if ($b->isOverdue()) Overdue@endif | {{ money($b->amount) }} | {{ money($b->due()) }} |