@extends('layouts.app') @section('title', $invoice->invoice_number) @section('back', route('invoices.index')) @section('content') @php $fiscalised = \App\Services\InvoiceFiscalisationService::isFiscalised($invoice); $badge = $invoice->status === 'Paid' ? 'g' : ($invoice->status === 'Overdue' ? 'r' : 'a'); $fiscalBadge = $fiscalised ? 'g' : 's'; @endphp
{{ $invoice->client?->company_name }}
{{ $invoice->project?->name ?? '—' }}
Issued {{ $invoice->invoice_date?->format('M j, Y') }} · Due {{ $invoice->due_date?->format('M j, Y') }}
@if($invoice->status === 'Overdue')This invoice is overdue.
@endifTotal
{{ \App\Support\Format::mwkDecimal($total) }}
Download PDF @if($invoice->status !== 'Paid') @endif @if($canEdit ?? false) @endifInvoice description
{{ $invoice->description ?: '—' }}
Client: {{ $invoice->client?->company_name }}
Project: {{ $invoice->project?->name ?? '—' }}
MRA fiscal details
@if($fiscalised)Fiscal code: {{ $invoice->mra_fiscal_code }}
Fiscalised at: {{ $invoice->fiscalised_at?->format('M j, Y H:i') }}
Verification: fiscal data recorded per MRA EIS integration.
@elseThis invoice is not fiscalised yet.
Pending fiscalisation @unless(config('dach.mra_eis_enabled'))MRA EIS is disabled in configuration. Codes will be assigned when fiscalisation is enabled.
@endunless @endifLine items
| Description | Qty | Rate | Total |
|---|---|---|---|
| {{ $item->description }} | {{ rtrim(rtrim((string) $item->quantity, '0'), '.') }} | {{ \App\Support\Format::mwkDecimal($item->unit_rate) }} | {{ \App\Support\Format::mwkDecimal($item->total) }} |
Record payment
Edit invoice