@extends('admin.layouts.dashboard') @section('title', 'Invoices') @push('head') @include('admin.invoices._invoice-form-styles') @endpush @section('content')

Invoices

+ Create Invoice
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif {{-- Outer Tabs --}}
{{-- ===== INVOICES TAB ===== --}}
@if(request()->filled('search') || request()->filled('date_from') || request()->filled('date_to') || request()->filled('status')) Clear @endif
@forelse($invoices as $inv) @empty @endforelse
Invoice #CustomerDateTotalPaymentStatusActions
{{ $inv->invoice_number }} {{ $inv->customer_name }}@if($inv->customer_email)
@endif
{{ $inv->invoice_date->format('d M Y') }} ${{ number_format($inv->total, 2) }} {{ \App\Models\Invoice::paymentModes()[$inv->payment_mode] ?? $inv->payment_mode }} {{ ucfirst($inv->status) }}
View PDF
@csrf
Edit
@csrf @method('DELETE')
@if(request()->filled('search') || request()->filled('date_from') || request()->filled('date_to') || request()->filled('status')) No invoices match your filters. @else No invoices found. @endif
{{ $invoices->onEachSide(1)->links() }}
{{-- ===== INVOICE SETTINGS TAB ===== --}}
{{-- Inner 3 tabs (nav-tabs for site theme) --}}
{{-- ── Business Detail ── --}}
@csrf @method('PUT')

Business Address
{{-- ── Tax Detail ── --}}
@csrf @method('PUT')
gst_registered ? 'checked' : '' }}>
gst_registered ? 'checked' : '' }}>
pst_registered ? 'checked' : '' }}>
pst_registered ? 'checked' : '' }}>

Only one discount type can be used on invoices — per line item or overall on the whole invoice.

discount_mode ?? 'line_item') === 'line_item' ? 'checked' : '' }}>
discount_mode ?? 'line_item') === 'overall' ? 'checked' : '' }}>
{{-- ── Logo & Terms ── --}}
@csrf @method('PUT')
Logo
@if($setting->logo_path)
Current logo: Current Logo
@else No logo uploaded. Default will be used. @endif

Terms & Conditions
These will appear on all invoices by default.
{{-- end inner tab-content --}}
{{-- end outer tab-content --}}
@endsection @push('scripts') @endpush