Make dashboard configurable.
This commit is contained in:
13
resources/views/components/dashboard_not_sent.blade.php
Normal file
13
resources/views/components/dashboard_not_sent.blade.php
Normal 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
|
||||
Reference in New Issue
Block a user