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

15 lines
689 B
PHP

@php
$sent_invoices = \App\Models\Invoice::where('status', '=', 'sent')->orderBy('created_at')->get();
@endphp
@if($sent_invoices->count() === 0)
<div class="w-full text-center">{{ __('dashboard.No data') }}</div>
@endif
@foreach($sent_invoices as $invoice)
<a href="{{ route('payment.create') }}" class="flex max-w even:bg-gray-100 odd:bg-white hover:bg-gray-400">
<div class="w-1/4">{{ $invoice->number }}</div>
<div class="w-1/4">{{ $invoice->customer->name }}</div>
<div class="w-1/4 text-right">{{ \Illuminate\Support\Number::currency($invoice->sum) }}</div>
<div class="w-1/4 text-right">{{ $invoice->created }}</div>
</a>
@endforeach