Files
project/resources/views/components/dashboard_not_sent.blade.php

13 lines
543 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 hover:bg-gray-400">
<div class="w-1/2">{{ $invoice->number }}</div>
<div class="w-1/2">{{ $invoice->customer->name }}</div>
</a>
@endforeach