@extends('layouts.finance') @php $isEdit = $debt->exists; @endphp @section('title', $isEdit ? 'Edit Debt' : 'Add Debt') @section('subtitle', $isEdit ? 'Update loan or line of credit details' : 'Enter loan or line of credit details before adding it') @section('content') @php $typeOptions = ['Loan', 'Line of Credit', 'Debt', 'Invoice']; $selectedType = old('debt_type', $debt->debt_type); $selectedInvoiceId = old('source_invoice_id'); @endphp

{{ $isEdit ? 'Edit Debt' : 'Add Debt' }}

Debt balances feed total liabilities, reports, and dashboard KPIs.
Back
@csrf @if($isEdit) @method('PUT') @endif
@if(! $isEdit) @endif
Cancel
@endsection @push('scripts') @endpush