@extends('admin.admin_dashboard') @section('admin') @php use \Carbon\Carbon; @endphp

Reference: {{ $bill->reference }}

Vendor: {{ $bill->vendor->name }}

Bill Date: {{ $bill->bill_date ? Carbon::parse($bill->bill_date)->format('Y-m-d') : '—' }}

Due Date: {{ $bill->due_date ? Carbon::parse($bill->due_date)->format('Y-m-d') : '—' }}

Notes: {{ $bill->notes ?: '—' }}


Line Items
@foreach($bill->lines as $line) @endforeach
Account Description Qty Unit Price Line Total
{{ $line->account->full_name }} {{ $line->description }} {{ $line->quantity }} {{ number_format($line->unit_price,2) }} {{ number_format($line->line_total,2) }}
Subtotal {{ number_format($bill->subtotal,2) }}
Tax {{ number_format($bill->tax_total,2) }}
Grand Total {{ number_format($bill->grand_total,2) }}
@can('ap.bills.edit') Edit @endcan Back to List
@endsection