@extends('layouts.admin') @section('title', 'Invoices') @section('page-title', 'Invoices') @section('breadcrumb') @endsection @section('content')

Filter Invoices

@if(request('type') == 'quotations') Quotations @elseif(request('type') == 'invoices') Invoices @else All Invoices @endif {{ $invoices->total() }}

@if(request('type') == 'quotations') New Quotation @else Create Invoice Create Quotation @endif
@forelse($invoices as $invoice) @empty @endforelse
# Invoice # Customer Date Due Date Status Total Actions
{{ $invoices->firstItem() + $loop->index }} {{ $invoice->invoice_number }} @if($invoice->original_quotation_id)
Converted @endif @if($invoice->client)
{{ $invoice->client->name }} @endif
{{ $invoice->customer_name }}
{{ $invoice->customer_email }} @if($invoice->customer_phone)
{{ $invoice->customer_phone }} @endif
{{ $invoice->invoice_date->format('d/m/Y') }}
{{ $invoice->invoice_date->diffForHumans() }}
@if($invoice->due_date) {{ $invoice->due_date->format('d/m/Y') }} @if($invoice->due_date->isPast() && !$invoice->isPaid() && !$invoice->isCancelled())
Overdue @endif @else N/A @endif
{{ $invoice->status_label }} @if($invoice->status == 'paid')
Paid @endif
RM {{ number_format($invoice->total, 2) }}
{{ $invoice->items->count() }} item(s)
@if($invoice->isQuotation() || $invoice->isCancelled()) @endif @if($invoice->canBeConvertedToInvoice())
@csrf
@endif @if($invoice->canBePaid())
@csrf
@endif @if($invoice->canBeCancelled())
@csrf
@endif @if($invoice->isQuotation() || $invoice->isCancelled())
@csrf @method('DELETE')
@endif

No Invoices Found

Start creating invoices or quotations for your clients.

@endsection @section('scripts') @endsection