Make dashboard configurable.

This commit is contained in:
2025-02-06 11:08:30 +01:00
parent a545e253d3
commit 4c43bf2193
19 changed files with 535 additions and 159 deletions

View File

@@ -0,0 +1,13 @@
@php
$created_invoices = \App\Models\Invoice::where('status', '=', 'created')->orderBy('created_at')->get();
@endphp
@if($created_invoices->count() === 0)
<div class="w-full text-center">{{ __('dashboard.No data') }}</div>
@endif
@foreach($created_invoices as $invoice)
<a href="{{ route('invoice.edit', $invoice->id) }}"
class="flex max-w even:bg-gray-100 odd:bg-white">
<div class="w-1/2">{{ $invoice->number }}</div>
<div class="w-1/2">{{ $invoice->customer->name }}</div>
</a>
@endforeach