@php $editing = isset($customer); @endphp
Basic Information
{{-- NEW: MSME Input --}}
{{-- Fallback for unchecked --}} is_sez ?? false))>
Address
Tax Details
@php $partyTypes = [ 'sales' => 'Sales', 'purchase' => 'Purchase', 'both' => 'Both (Sales & Purchase)', ]; @endphp
@php $paymentTypes = [ 'cash' => '100% Advance', 'credit' => '15 Days Credit', ]; @endphp
@php $existing = $customer->shippingAddresses ?? collect(); $oldRows = old('shipping_addresses', []); @endphp @foreach ($existing as $i => $addr) @php $old = $oldRows[$i] ?? [] @endphp
pincode) }}">
contact_person) }}">
mobile) }}">
@endforeach
{{-- Opening Balance (only on create) --}} @if(!$editing)
Opening Balances
Opening Balance (per Company)
@php $cashModeOn = currentCompany()?->mode === 'cash'; @endphp @foreach($companies as $company) @if($company->mode === 'cash' && !$cashModeOn) @continue @endif @endforeach
Company As of Date Fiscal Year Direction Amount
{{ $company->name }}

Enter opening balance for each company. Leave amount empty or 0 to skip. Fiscal year is auto-calculated from date (April-March).

@endif
@push('scripts') @endpush