<?php

return [
    // Module + menu
    'medbill_module'   => 'Medical Billing',
    'medical_billing'  => 'Medical Billing',
    'worklist'         => 'Billing Worklist',
    'payers'           => 'Payers',
    'policies'         => 'Policies',
    'claims'           => 'Claims',
    'pre_auths'        => 'Pre-authorisations',
    'reports'          => 'Reports',

    // Permissions
    'perm_charges_manage' => 'Manage charge capture & billing',
    'perm_payers_manage'  => 'Manage payers & policies',
    'perm_claims_manage'  => 'Manage claims',
    'perm_claims_submit'  => 'Submit claims',
    'perm_preauth_manage' => 'Manage pre-authorisations',
    'perm_reports_view'   => 'View billing reports',

    // Generic
    'active'    => 'Active',
    'inactive'  => 'Inactive',
    'all'       => 'All',
    'view'      => 'View',
    'save'      => 'Save',
    'cancel'    => 'Cancel',
    'actions'   => 'Actions',
    'none'      => 'None',
    'yes'       => 'Yes',
    'no'        => 'No',

    // Payer
    'payer'                     => 'Payer',
    'payer_name'                => 'Name',
    'payer_code'                => 'Code',
    'payer_type'                => 'Type',
    'payer_type_insurance'      => 'Insurance',
    'payer_type_corporate'      => 'Corporate',
    'payer_type_government'     => 'Government',
    'payer_type_other'          => 'Other',
    'default_price_group'       => 'Payer price list',
    'claim_submission'          => 'Claim submission',
    'submission_portal'         => 'Portal',
    'submission_email'          => 'Email',
    'submission_edi'            => 'EDI',
    'submission_paper'          => 'Paper',
    'pre_auth_required_default' => 'Pre-auth required by default',
    'settlement_terms_days'     => 'Settlement terms (days)',
    'contact_phone'             => 'Contact phone',
    'contact_email'             => 'Contact email',
    'contact_address'           => 'Contact address',
    'add_payer'                 => 'Add payer',
    'edit_payer'                => 'Edit payer',
    'payer_saved'               => 'Payer saved.',
    'payer_deleted'             => 'Payer deleted.',
    'payer_in_use'              => 'This payer has policies or claims and cannot be deleted.',
    'payers_help'               => 'The payer master — insurers, corporates and government schemes. A payer may carry its own ERP price list.',

    // Policy
    'policy'          => 'Policy',
    'policy_number'   => 'Policy number',
    'plan_name'       => 'Plan name',
    'coverage_pct'    => 'Coverage %',
    'copay_fixed'     => 'Fixed copay',
    'annual_limit'    => 'Annual limit',
    'effective_from'  => 'Effective from',
    'expiry_date'     => 'Expiry date',
    'patient'         => 'Patient',
    'insurance_card'  => 'Linked insurance card',
    'status'          => 'Status',
    'status_active'   => 'Active',
    'status_expired'  => 'Expired',
    'status_cancelled' => 'Cancelled',
    'add_policy'      => 'Add policy',
    'edit_policy'     => 'Edit policy',
    'policy_saved'    => 'Policy saved.',
    'policy_deleted'  => 'Policy deleted.',
    'policies_help'   => 'A patient\'s coverage under a payer. Coverage % and fixed copay drive the patient / payer split at bill time.',

    // Worklist
    'worklist_help'        => 'Completed encounters. Capture charges, review them, then bill (creates the ERP invoice). Choosing a policy also drafts an insurance claim.',
    'appointment'          => 'Appointment',
    'date'                 => 'Date',
    'doctor'               => 'Doctor',
    'charges'              => 'Charges',
    'capture_charges'      => 'Capture charges',
    'review_bill'          => 'Review & bill',
    'not_captured'         => 'Not captured',
    'draft_charges'        => ':count draft',
    'billed_charges'       => ':count billed',
    'already_billed'       => 'Billed',
    'erp_invoice'          => 'ERP invoice',
    'no_completed_appts'   => 'No completed appointments.',
    'clinic_missing'       => 'ClinicCore is not installed, so there are no encounters to bill.',
    'location'             => 'Location',
    'charges_captured'     => 'Captured :count new charge(s).',
    'charges_billed'       => 'Billed :count charge(s) across :sells invoice(s).',
    'appointment_not_found' => 'Appointment not found.',
    'no_billable_charges'  => 'No billable draft charges were selected.',
    'patient_no_billable'  => 'Patient #:patient has no charges linked to an ERP product — nothing to invoice.',
    'patient_no_contact'   => 'Patient #:patient has no linked contact for invoicing.',

    // Review / split
    'description'      => 'Description',
    'qty'             => 'Qty',
    'unit_price'      => 'Unit price',
    'line_total'      => 'Line total',
    'billable'        => 'Billable',
    'not_billable_hint' => 'No ERP product linked — cannot be invoiced (shown for reference).',
    'apply_policy'    => 'Apply policy',
    'no_policy'       => 'Self-pay (no policy)',
    'split_preview'   => 'Split preview',
    'patient_share'   => 'Patient share',
    'payer_share'     => 'Payer share',
    'bill_now'        => 'Bill now',
    'total'           => 'Total',

    // Claims
    'claim'                     => 'Claim',
    'claim_no'                  => 'Claim no',
    'total_claimed'             => 'Claimed',
    'total_approved'            => 'Approved',
    'total_denied'             => 'Denied',
    'claims_help'               => 'Insurance claims against ERP invoices. Open a claim to submit, adjudicate, deny, appeal or mark paid.',
    'claim_status_draft'              => 'Draft',
    'claim_status_submitted'          => 'Submitted',
    'claim_status_acknowledged'       => 'Acknowledged',
    'claim_status_under_review'       => 'Under review',
    'claim_status_approved'           => 'Approved',
    'claim_status_partially_approved' => 'Partially approved',
    'claim_status_denied'             => 'Denied',
    'claim_status_paid'               => 'Paid',
    'claim_status_appealed'           => 'Appealed',
    'claim_items'          => 'Claim items',
    'claimed_amount'      => 'Claimed',
    'approved_amount'     => 'Approved',
    'denied_reason'       => 'Denied reason',
    'adjudicate'         => 'Adjudicate',
    'submit_claim'       => 'Submit',
    'acknowledge'        => 'Acknowledge',
    'deny'               => 'Deny',
    'appeal'             => 'Appeal',
    'mark_paid'          => 'Mark paid',
    'record_erp_payment' => 'Record payer payment against the ERP invoice',
    'reason'             => 'Reason',
    'reason_required'    => 'A reason is required.',
    'claim_updated'      => 'Claim updated.',
    'invalid_action'     => 'Unknown action.',
    'invalid_status'     => 'Invalid status.',
    'invalid_transition' => 'Cannot move a claim from :from to :to.',
    'claim_payment_note' => 'Payer settlement for claim :claim',
    'erp_payment_manual' => 'ERP payment of :amount could not be recorded automatically — record it manually against the invoice.',
    'erp_payment_no_txn' => 'No ERP invoice is linked to this claim — record the payer payment manually.',
    'pre_auth_no'        => 'Pre-auth no',
    'notes'              => 'Notes',
    'print_claim'        => 'Print claim',
    'transaction'        => 'ERP invoice',

    // Pre-auth
    'pre_auth'             => 'Pre-authorisation',
    'service_description'  => 'Service description',
    'requested_amount'     => 'Requested amount',
    'auth_no'              => 'Authorisation no',
    'valid_until'          => 'Valid until',
    'preauth_status_requested' => 'Requested',
    'preauth_status_approved'  => 'Approved',
    'preauth_status_denied'    => 'Denied',
    'preauth_status_expired'   => 'Expired',
    'add_preauth'          => 'Add pre-authorisation',
    'edit_preauth'         => 'Edit pre-authorisation',
    'preauth_saved'        => 'Pre-authorisation saved.',
    'preauth_deleted'      => 'Pre-authorisation deleted.',
    'preauth_help'         => 'Pre-authorisation requests to payers for planned services. Approved auth numbers can be quoted on claims.',

    // Reports
    'reports_help'      => 'Billing overview — billed vs collected on module invoices, claims by status, and payer aging.',
    'billed_vs_collected' => 'Billed vs collected',
    'billed'            => 'Billed',
    'collected'        => 'Collected',
    'outstanding'      => 'Outstanding',
    'invoices'         => 'Invoices',
    'claims_by_status' => 'Claims by status',
    'count'            => 'Count',
    'payer_aging'      => 'Payer aging (outstanding payer share)',
    'aging_0_30'       => '0–30 d',
    'aging_31_60'      => '31–60 d',
    'aging_61_90'      => '61–90 d',
    'aging_90p'        => '90+ d',
    'no_data'          => 'No data yet.',
];
