@extends('layouts.app') @section('title', $vendor->name) @section('content') @php($balance = $vendor->balance())
| No. | Order | Assigned | Agreed | Extra | Total | Payment | Balance |
|---|---|---|---|---|---|---|---|
| {{ $x->number() }}@if ($x->description){{ $x->description }}@endif | {{ $x->order->order_no }}{{ $x->order->client->name }} | {{ $x->assigned_on->format('d M Y') }} | {{ money($x->assigned_amount) }} | {{ $x->extra() > 0.004 ? money($x->extra()) : '—' }} | {{ money($x->total()) }} | {{ money($x->due()) }} | |
| Bill | Date | Due | Description | Amount | Payment | Balance |
|---|---|---|---|---|---|---|
| {{ $b->bill_no ?: '#'.$b->id }} | {{ $b->bill_date->format('d M Y') }} | {{ $b->due_date?->format('d M Y') ?? '—' }} | {{ $b->description ?: '—' }} | {{ money($b->amount) }} | {{ money($b->due()) }} | |
| Date | Against | Method | Reference | Amount |
|---|---|---|---|---|
| {{ $p->paid_on->format('d M Y') }} | @if ($p->vendorAssignment){{ $p->vendorAssignment->number() }}@if ($p->vendorAssignmentItem){{ $p->vendorAssignmentItem->label() }}@endif @elseif ($p->vendorBill)Bill {{ $p->vendorBill->bill_no ?: '#'.$p->vendorBill->id }}@elseGeneral@endif | {{ \App\Models\Payment::METHODS[$p->method] ?? $p->method }} | {{ $p->reference ?: '—' }} | −{{ money($p->amount) }} |
| Date | Entry | Reference | Description | Billed | Paid | Balance owed |
|---|---|---|---|---|---|---|
| {{ $r['date']->format('d M Y') }} | {{ $r['entry'] }} | {{ $r['ref'] }} | {{ $r['desc'] }} | {{ $r['credit'] ? money($r['credit']) : '' }} | {{ $r['debit'] ? money($r['debit']) : '' }} | {{ money($r['balance']) }} |
| Balance owed | {{ money($statement->last()['balance']) }} | |||||