@extends('layouts.layout-horizontal') @section('title', 'Edit Sales Invoice') @section('css') @endsection @section('content')
@csrf @method('PUT') @if($mode == 'cash')@endif {{-- Compact header bar --}}
+
@error('party_id')
{{ $message }}
@enderror
@if($mode !== 'cash')
{{ ucfirst(str_replace('_', ' ', $sale->bill_type)) }}
@endif {{-- Right: invoice number --}}
Invoice # {{ $sale->bill_no }}
@include('partials._party-details')
Document
Sales Invoice
Edit invoice details safely
Current Company
{{ currentCompany()?->name ?? 'Current Company' }}
Active company for this invoice
Mode
{{ strtoupper($mode) }}
{{ $mode === 'cash' ? 'Transfer option stays on invoice view' : 'Bill type locked after create' }}
Invoice #
{{ $sale->bill_no }}
{{ ucfirst(str_replace('_', ' ', $sale->bill_type)) }}
@if($mode !== 'cash') {{-- E-way / Delivery --}}
E-way & Delivery
@endif {{-- Ship To --}}
{{-- 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 if zero) --}}
P&F
Amt
@if($mode !== 'cash')
GST%
Tax
@else @endif
{{-- Row 2: Totals + Actions --}}
Amount
Tax
Discount
Roundoff
Grand Total
{{-- Actions --}}
Cancel
@endsection @push('scripts') @endpush