• Mahmoud Aglan's avatar
    Unify receipt/invoice settings: 3-tab template system + fix seeder · 2be39175
    Mahmoud Aglan authored
    - EnrollmentSettingsSeeder: fix Organization → Academy class name
    - ReceiptTemplate: add defaultInvoiceFields/Settings + defaultPaymentFields/Settings
    - ReceiptSettings: rewritten with pos/invoice/payment tabs; each tab loads
      its own ReceiptTemplate (type='invoice'|'payment') and saves independently
    - receipt-settings.blade.php: 3-tab UI with field toggles + appearance settings
      per document type; link to branding page for logo/colors
    - print/invoice.blade.php: all 15 fields now gated by invoice template flags
      (logo, academy name, branch, tax number, client details, items table,
      subtotal, discount, tax, service fee, paid amount, payments history,
      signature, terms & conditions, footer text)
    - print/payment-receipt.blade.php: all 11 fields gated by payment template;
      footer text pulled from template settings instead of hardcoded string
    Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
    2be39175
EnrollmentSettingsSeeder.php 1.46 KB