@php
$money = sees_pharmacy_prices();
$invCards = [
['today', null, 'Today', $stats['today'], 'primary', 'fa-calendar-day'],
['month', null, 'This month', $stats['month'], 'info', 'fa-calendar-alt'],
['all', 'Pending,Partial', 'Still to pay', $stats['pending'], 'danger', 'fa-hourglass-half'],
['month', 'Paid', 'Paid this month', $stats['paid_month'], 'success', 'fa-check-circle'],
];
@endphp
{{-- click a card: the list shows those invoices --}}
@foreach ($invCards as [$cPeriod, $cStatus, $cLabel, $cVal, $cColor, $cIcon])
@endforeach
{{ $cLabel }}
{{ $cVal['count'] }} invoice{{ $cVal['count'] == 1 ? '' : 's' }}
@if ($money)$ {{ number_format($cVal['total'], 2) }}
@endif
{{ $title }} {{ __('list') }}
@can($access . '-create') @endcan
{{-- filters: any of them together; Type / Status / Created by take several --}}
| # | Date | Invoice # | Type | Customer | {{ sees_pharmacy_prices() ? 'Total' : '' }} | Created By | Status | {{ __('messages.action') }} |
|---|