@extends('layouts.layout-horizontal') @section('title', 'Create Sales Invoice') @section('css') @endsection @section('content')
@csrf @if($mode == 'cash')@endif @if(!empty($prefill['transfer_source_id'])) @endif {{-- Compact header bar --}}
{{-- Left: back + party + date + type --}}
+
@error('party_id')
{{ $message }}
@enderror
@if($mode !== 'cash')
@endif {{-- Right: invoice number --}}
Invoice # {{ $nextBillNo ?? 'Auto' }}
@include('partials._party-details')
Document
Sales Invoice
{{ $mode === 'cash' ? 'Cash invoice entry' : 'Bill invoice entry' }}
Current Company
{{ currentCompany()?->name ?? 'Current Company' }}
Active company for this invoice
Mode
{{ strtoupper($mode) }}
{{ $mode === 'cash' ? 'Transfer to bill stays available after save' : 'Bill type can be selected here' }}
Invoice #
{{ $nextBillNo ?? 'Auto' }}
{{ !empty($prefill['transfer_source_id']) ? 'Prefilled from cash transfer' : 'Number auto-generates on save' }}
@if($mode !== 'cash') {{-- E-way / Delivery — collapsed compact strip --}}
@endif {{-- Ship To --}}
No saved addresses — add one to customer
{{-- Items table --}}
Line Items
New Product
@if($mode !== 'cash')@endif @if($mode !== 'cash') @else @endif
# Product HSNUnit Qty RateTax% Rate
(Incl. Tax)
AmountTotal
@if($mode === 'cash')
@endif
{{-- Sticky bottom bar --}}
{{-- Row 1: P&F (hidden by default, toggle to show) --}}
P&F
Amt
@if($mode !== 'cash')
GST%
Tax
@else @endif
{{-- Row 2: Totals + Actions --}}
Amount
Tax
Discount
Roundoff
Grand Total
{{-- Actions --}}
{{-- Spacer so content not hidden behind sticky bar --}}
@endsection @push('scripts') @endpush