@extends('layouts.admin') @section('title', $bill->number) @section('content') @php $tone = match($bill->status) { 'matched','approved','paid' => 'success', 'exception' => 'danger', 'draft' => 'muted', default => 'warning' }; @endphp Back @if(in_array($bill->status, ['matched', 'exception'], true))
@csrf
@endif
Status
{{ $bill->status }}
Invoice date
{{ $bill->invoice_date?->format('d M Y') }}
Due
{{ $bill->due_date?->format('d M Y') ?? '—' }}
Total
{{ $bill->currency }} {{ number_format($bill->total_cents / 100, 2) }}
@forelse($bill->lines as $line) @empty @endforelse
DescriptionQtyTotal
{{ $line->description }} {{ $line->quantity }} {{ number_format($line->total_cents / 100, 2) }}
No lines.
@csrf
@if($bill->matches->isNotEmpty())
@foreach($bill->matches as $match)
{{ $match->status }} Variance {{ number_format($match->variance_cents / 100, 2) }}
@endforeach
@endif
@endsection