@extends('layouts.app') @section('title', __('Client invoices')) @section('content') @if(session('status'))
{{ session('status') }}
@endif

{{ __('Client invoices') }}

{{ __('Monthly invoices billed to your end users.') }}

@csrf
@forelse($invoices as $inv) @empty @endforelse
{{ __('Number') }} {{ __('Client') }} {{ __('Period') }} {{ __('Subtotal') }} {{ __('VAT') }} {{ __('Total') }} {{ __('Status') }}
{{ $inv->number }} {{ $inv->user?->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 dark:bg-amber-900/30 dark:text-amber-300' => $inv->status === 'issued', 'bg-slate-100 text-slate-600 dark:bg-slate-800 dark:text-slate-300' => $inv->status === 'draft', 'bg-rose-50 text-rose-700 dark:bg-rose-900/30 dark:text-rose-300' => $inv->status === 'void', ])>{{ ucfirst($inv->status) }} {{ __('View') }}
{{ __('No invoices yet — generate one above.') }}
{{ $invoices->links() }}
@endsection