@props(['preInvoices' => null]) @if ($preInvoices !== null)
@forelse($preInvoices as $index => $invoice) @empty @endforelse
# {{ __('costumer name') }} {{ __('company name') }} {{ __('count') }} {{ __('status') }} {{ __('date') }} {{ __('actions') }}
{{ $loop->iteration }} {{ $invoice->customer_name ?? '-' }} {{ $invoice->company_name ?? '-' }} {{ $invoice->items->count() }} @php $statusColors = [ 'open' => 'bg-blue-100 text-blue-700', 'closed' => 'bg-gray-100 text-gray-700', 'awarded' => 'bg-green-100 text-green-700', 'cancelled' => 'bg-red-100 text-red-700', ]; @endphp {{ __($invoice->status) }} {{ verta($invoice->created_at)->format('Y/m/d') }} {{ __('details') }}
{{ __('there is no pre invoice found') }}
{{-- Pagination --}}
{{ $preInvoices->links() }}
@endif