@if($totalInvoices != 0)
@endif
@include('loader')
@forelse($invoices as $invoice)
@foreach($invoice->invoiceProjects as $project) {{$loop->first ? '':', '}}{{ html_entity_decode($project->name) }} @endforeach
@foreach($invoice->invoiceProjects as $project) {{ html_entity_decode($project->name) }}, @endforeach
@if(count($invoice->invoiceProjects) > 0) &#{{ getCurrencyIcon($invoice->invoiceProjects[0]->currency) }} @else &#{{ getCurrencyIcon(1) }} @endif {{ number_format( $invoice->amount, 2) }} {{ $invoice->statusText }} @if(!empty($invoice->due_date)) {{Carbon\Carbon::parse($invoice->due_date)->format('jS M, Y')}} @endif
@empty
@if(empty($search))

{{ __('messages.invoice.no_invoice_available') }}

@else

{{ __('messages.invoice.no_invoice_found') }}

@endif
@endforelse
@if($totalInvoices != 0) {{ __('messages.common.showing') }} {{ $invoices->firstItem() }} - {{ $invoices->lastItem() }} {{ __('messages.common.of') }} {{ $invoices->total() }} @endif
{{ $invoices->links() }}