@extends('admin.layouts.app') @section('title', 'Add Invoice') @section('content')
{{-- Header --}}

Add New Invoice

Create a new invoice record for a customer.

Back to List
@csrf {{-- SECTION 1: Customer & Invoice Info --}}
Basic Information
{{-- Customer Selection (Optional) --}}
@error('customer_id')
{{ $message }}
@enderror
{{-- Bank Select --}}
@error('customer_bank_id')
{{ $message }}
@enderror
{{-- Branch Select --}}
@error('customer_branch_id')
{{ $message }}
@enderror
{{-- Invoice No --}}
@error('invoice_no')
{{ $message }}
@enderror
{{-- Invoice Date --}}
@error('invoice_date')
{{ $message }}
@enderror

{{-- SECTION 2: Item Details --}}
Item Details
{{-- Quantity --}}
{{-- Rate --}}
{{-- Item Total --}}
{{-- Per Quantity Price --}}
{{-- SECTION 2B: Extra Charges --}}
Extra Charges
{{-- Initially empty, user can add rows --}}
{{-- SECTION 3: Payment Summary --}}
Payment Details
{{-- Total Amount (base + extra + round off) --}}
@error('total_amount')
{{ $message }}
@enderror
Auto: Item Total + Extra Charges + Round Off (Tax only displayed separately).
{{-- Round Off --}}
@error('round_off')
{{ $message }}
@enderror
{{-- Unit (Optional) --}}
{{-- Amount in Words --}}
@error('amount_in_words')
{{ $message }}
@enderror
{{-- SECTION 2A: Tax / Charges --}}
Tax / Charges
{{-- Default Tax Row --}}
%
Example: Add multiple taxes like 5%, 3%, 3% – all will be calculated from Payment Total Amount.
{{-- Hidden fields for backend calculations --}}

{{-- SECTION 4: Banking Information --}}
Banking Information
{{-- Bank Name --}}
@error('bank')
{{ $message }}
@enderror
{{-- Account Number --}}
@error('bank_account_no')
{{ $message }}
@enderror
{{-- IFSC Code --}}
@error('ifsc_code')
{{ $message }}
@enderror
{{-- Udayam Number --}}
@error('company_pan')
{{ $message }}
@enderror
{{-- Actions --}}
Cancel
{{-- End Card Body --}}
{{-- End Card --}}
@endsection @push('scripts') @endpush