@extends('layouts.app') @section('title', __('Invoices')) @section('page-title', __('Tenant invoices')) @section('page-subtitle', __('Pay-per-analysis monthly invoicing.')) @section('content') @if(session('status'))
{{ session('status') }}
@endif
@csrf
@forelse($invoices as $inv) @empty @endforelse
{{ __('Number') }} {{ __('Tenant') }} {{ __('Period') }} {{ __('Subtotal') }} {{ __('VAT') }} {{ __('Total') }} {{ __('Status') }} {{ __('Actions') }}
{{ $inv->number }} {{ $inv->tenant?->name }} {{ $inv->period_start->format('Y-m') }} {{ number_format((float)$inv->subtotal, 2) }} {{ $inv->currency }} {{ number_format((float)$inv->vat_amount, 2) }} {{ number_format((float)$inv->total, 2) }} $inv->status==='paid', 'bg-amber-50 text-amber-700' => $inv->status==='issued', 'bg-slate-100 text-slate-600' => $inv->status==='draft', 'bg-rose-50 text-rose-700' => $inv->status==='void', ])>{{ ucfirst($inv->status) }} {{ __('View') }} {{ __('PDF') }}
{{ __('No invoices yet — generate one above or wait for the monthly cron.') }}
{{ $invoices->links() }}
@endsection