14 lines
532 B
PHP
14 lines
532 B
PHP
@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
|