@extends('template.layouts.template-base') @section('title') Edit Invoice | {{ config('setting.website_name') ?: config('app.name') }} @endsection @section('content')
@php $isNp = $invoice->invoice_type === 'Non-Paysheet-Wise'; @endphp @if($isNp) {{-- ============ Non-Paysheet-Wise editor: mirrors the create page's NP tab ============ --}}
@csrf

Edit Invoice (Non-Paysheet-Wise)

@error('company_name')
{{ $message }}
@enderror
@if($invoice->isDraft()) @else @endif @error('invoice_number')
{{ $message }}
@enderror
@error('gst_no')
{{ $message }}
@enderror
@error('address')
{{ $message }}
@enderror
@error('invoice_date')
{{ $message }}
@enderror
@error('title')
{{ $message }}
@enderror
{{-- Dynamic Description / HSN / Amount rows (same pattern as the create page) --}}

Description Details

# Description * HSN Code Amount * Action
@error('items')
{{ $message }}
@enderror

Calculation Details

{{-- Same ratio options as the Proforma page; repopulated for intra/inter --}}
@error('gst_rate')
{{ $message }}
@enderror
Cancel @if($invoice->isDraft()) @else @endif
@else
@csrf

Edit Invoice

{{--
--}}
client_type) == 'Client' ? 'checked' : '' }}>
client_type) == 'Project' ? 'checked' : '' }}>
@error('staff_type')
{{ $message }}
@enderror
@error('clients')
{{ $message }}
@enderror
@error('projects')
{{ $message }}
@enderror
@if($invoice->isDraft()) @else @endif @error('invoice_number')
{{ $message }}
@enderror
@error('gst_no')
{{ $message }}
@enderror
@error('address')
{{ $message }}
@enderror
@error('invoice_date')
{{ $message }}
@enderror
@error('title')
{{ $message }}
@enderror
@error('hsn_code')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror

Calculation Details

Cancel @if($invoice->isDraft()) @else @endif
@endif @endsection @section('scripts') @if($isNp) {{-- ===== Non-Paysheet editor scripts: same behavior as the create page's NP tab ===== --}} @else @endif @endsection