@extends('layouts.app') @section('title', $invoice->number) @section('content')
| {{ __('Description') }} | {{ __('Tooth') }} | {{ __('Qty') }} | {{ __('Amount') }} |
|---|---|---|---|
| {{ $item->description }} | {{ $item->tooth ?? 'โ' }} | {{ $item->qty }} | {{ number_format($item->amount) }} |
| {{ __('Subtotal') }} | {{ number_format($invoice->subtotal) }} | ||
| {{ __('Discount') }} | โ {{ number_format($invoice->discount_amount) }} | ||
| {{ __('Total') }} | {{ number_format($invoice->total) }} | ||
| {{ __('Paid') }} | {{ number_format($invoice->paid_amount) }} | ||
| {{ __('Remaining') }} | {{ number_format($invoice->remaining()) }} | ||
| {{ $p->method->icon() }} {{ $p->method->label() }} @if($p->reference)#{{ $p->reference }}@endif | {{ number_format($p->amount) }} | {{ $p->paid_at->setTimezone(\App\Support\ClinicTime::timezone())->format('d M Y ยท H:i') }} | {{ $p->receiver?->name }} |
| {{ __('No payments yet.') }} |
{{ __('Amount is prefilled with the remaining balance โ tap a method to record.') }}
@include('invoices._quickpay', ['invoice' => $invoice, 'methods' => $methods])โ
@endif @else| {{ $inst->seq === 0 ? __('Down') : '#'.$inst->seq }} | {{ $inst->due_date->format('d M Y') }} @if($inst->isOverdue()){{ __('Overdue') }}@endif | {{ number_format($inst->paid_amount) }}/{{ number_format($inst->amount) }} | {{ $inst->status->label() }} |
| @include('invoices._quickpay', ['invoice' => $invoice, 'installment' => $inst, 'methods' => $methods]) | |||