@extends('layouts.admin') @section('title', 'Invoices') @section('page-title', 'Invoices') @section('content')
@if(!$panelOpen) {{-- Toolbar --}}
Export
{{-- Filter panel --}}
to
to
Clear
{{-- Table or empty state --}}
@if($invoices->isNotEmpty())
@foreach($invoices as $invoice) @php $status = $invoice->statusMeta(); @endphp @endforeach
Issue Date Doc. No. Status Client Name Due Date Tax Amount Date of Payment Balance Dr/Cr Action
{{ $invoice->invoice_date->format('d M Y') }} {{ $invoice->invoice_number }}
{{ $invoice->typeLabel() }}
{{ $status['label'] }} {{ $invoice->customer->name ?? '—' }} {{ $invoice->due_date?->format('d M Y') ?? '—' }} ₹{{ number_format($invoice->total_tax, 2) }} ₹{{ number_format($invoice->grand_total, 2) }} {{ $invoice->payment_date?->format('d M Y') ?? '—' }} ₹{{ number_format($invoice->balance, 2) }} @if($invoice->dr_cr !== '—') {{ $invoice->dr_cr }} @else — @endif
@csrf @method('DELETE')
@else

Your clients will love your new invoices!

Sending amazing invoices and getting paid is easier than ever. Try our optimized templates and delivery system.

@include('admin.invoices.partials.lifecycle')
@foreach($features as $feature)
{{ $feature }}
@endforeach
@endif
@if($invoices->isNotEmpty())
@include('admin.invoices.partials.lifecycle')
@endif @else {{-- Master-detail: invoice list + preview --}}
@include('admin.invoices.partials.sidebar-toolbar')
@forelse($invoices as $inv) @php $invStatus = $inv->statusMeta(); @endphp
{{ $inv->invoice_number }}
{{ $inv->customer->name ?? '—' }} · {{ $inv->invoice_date->format('d M Y') }}
₹{{ number_format($inv->grand_total, 2) }}
{{ $invStatus['label'] }}
@empty
No invoices match filters.
@endforelse
@if($selected && isset($invoice))
@include('admin.invoices.partials.preview', [ 'embedded' => true, 'closeUrl' => route('admin.invoices.index', request()->except('invoice')), 'createTypes' => $createTypes, ])
@endif
@endif
@endsection @push('styles') @if($panelOpen ?? false) @endif @endpush @push('scripts') @if($panelOpen ?? false) @include('admin.invoices.partials.preview-scripts') @endif @endpush