@extends('layouts.app') @section('title', __('app.dashboard.title')) @section('content') @php $tenant = auth()->user()->tenant; $stats = $tenant->getStats(); $recentInvoices = $tenant->invoices()->with('customer')->latest()->take(8)->get(); $overdueInvoices = $tenant->invoices()->where('status', 'overdue')->with('customer')->take(5)->get(); @endphp
{{ now()->locale('sv')->isoFormat('dddd D MMMM YYYY') }}
| Faktura | Kund | Datum | Belopp | Status | |
|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} |
{{ $invoice->customer->name }}
{{ $invoice->customer->org_number }}
|
{{ $invoice->invoice_date->format('d.m.Y') }}
Förfall: {{ $invoice->due_date->format('d.m.Y') }}
|
{{ number_format($invoice->total, 0, ',', ' ') }} kr
@if($invoice->total_remaining > 0 && $invoice->status !== 'draft')
Kvar: {{ number_format($invoice->total_remaining, 0, ',', ' ') }} kr
@endif
|
{{ $invoice->status_label }} | |
| Inga fakturor Ă€nnu. Skapa din första faktura â | |||||