<?php

return [
    'types' => [
        'invoice' => 'Invoice',
        'retail_invoice' => 'Retail Invoice',
        'tax_invoice' => 'Tax Invoice',
        'excise_invoice' => 'Excise Invoice',
        'bill_of_supply' => 'Bill of Supply',
        'proforma' => 'Proforma Invoice',
        'credit_note' => 'Credit Note',
        'debit_note' => 'Debit Note',
        'export' => 'Export Invoice',
        'non_gst' => 'Non GST Invoice',
    ],

    /** Only these four types can be created from the UI */
    'create_types' => [
        'invoice' => ['label' => 'Invoice', 'icon' => 'ri-file-list-3-line', 'desc' => 'Standard sales invoice'],
        'retail_invoice' => ['label' => 'Retail Invoice', 'icon' => 'ri-store-2-line', 'desc' => 'B2C / retail billing'],
        'tax_invoice' => ['label' => 'Tax Invoice', 'icon' => 'ri-percent-line', 'desc' => 'GST tax invoice (B2B)'],
        'excise_invoice' => ['label' => 'Excise Invoice', 'icon' => 'ri-government-line', 'desc' => 'Excise duty invoice'],
    ],

    'statuses' => [
        'draft' => ['label' => 'Draft', 'color' => 'secondary'],
        'sent' => ['label' => 'Sent', 'color' => 'primary'],
        'unpaid' => ['label' => 'Unpaid', 'color' => 'danger'],
        'overdue' => ['label' => 'Overdue', 'color' => 'warning'],
        'partial' => ['label' => 'Partially Paid', 'color' => 'info'],
        'paid' => ['label' => 'Paid', 'color' => 'success'],
        'cancelled' => ['label' => 'Cancelled', 'color' => 'dark'],
    ],

    'primary_types' => ['invoice', 'retail_invoice', 'tax_invoice', 'excise_invoice'],

    'payment_modes' => [
        'cash' => 'Cash',
        'bank' => 'Bank Transfer',
        'upi' => 'UPI',
        'cheque' => 'Cheque',
        'card' => 'Card',
        'other' => 'Other',
    ],

    /** Advance payment modal — payment method dropdown */
    'advance_payment_methods' => [
        'cash' => 'Cash',
        'cash_memo' => 'Cash Memo',
        'tds' => 'TDS',
        'tcs' => 'TCS',
        'credit_card' => 'Credit Card',
        'cheque' => 'Cheque',
        'bank_transfer' => 'Bank Transfer',
        'pay_slip' => 'Pay Slip',
        'credit_note' => 'Credit Note',
        'payment_gateway' => 'Payment Gateway',
        'upi' => 'UPI',
        'qr_code' => 'QR Code',
        'other' => 'Other',
    ],

    'payment_terms' => [
        'on_receipt' => 'On Receipt',
        'net_7' => 'Net 7 Days',
        'net_15' => 'Net 15 Days',
        'net_30' => 'Net 30 Days',
        'net_45' => 'Net 45 Days',
        'net_60' => 'Net 60 Days',
        'due_on_receipt' => 'Due on Receipt',
    ],

    'shipping_modes' => [
        'road' => 'Road',
        'rail' => 'Rail',
        'air' => 'Air',
        'ship' => 'Ship / Road cum Ship',
    ],

    'discount_all_types' => [
        'percent' => '% (Percentage)',
        'fixed' => 'Fixed',
    ],

    'sales_persons' => [
        'Sales Team',
        'Direct Sales',
        'Online',
        'Partner',
    ],

    'document_copies' => [
        'original' => 'Original Copy',
        'duplicate' => 'Duplicate Copy',
        'triplicate' => 'Triplicate Copy',
        'quadruplicate' => 'Quadruplicate Copy',
    ],

    /*
    | Invoice document preferences (Settings → Documents → Invoices).
    | Stored per company in settings.invoice_documents.
    */
    'document_settings' => [
        'options' => [
            'show_shipping_address' => ['label' => 'Show Shipping Address', 'default' => true],
            'show_total_in_words' => ['label' => 'Show Total in Words', 'default' => true],
            'show_amount_due' => ['label' => 'Show Amount Due', 'default' => true],
            'show_net_received_totals' => ['label' => 'Show Net Received in the Totals Section', 'default' => true],
            'show_contact_person_bill_to' => ['label' => 'Show Contact Person in Bill To section', 'default' => true],
            'show_primary_signature' => ['label' => 'Show Primary Signature', 'default' => true],
            'show_secondary_signature' => ['label' => 'Show Secondary Signature', 'default' => false],
            'show_full_header_all_pages' => ['label' => 'Show Full Invoice Header on ALL Pages (PDF & Print)', 'default' => false],
        ],
        'labels' => [
            'title_invoice' => ['label' => 'Invoice Title', 'default' => 'Invoice'],
            'title_retail_invoice' => ['label' => 'Retail Invoice Title', 'default' => 'Retail Invoice'],
            'title_tax_invoice' => ['label' => 'Tax Invoice Title', 'default' => 'Tax Invoice'],
            'title_excise_invoice' => ['label' => 'Excise Invoice Title', 'default' => 'Excise Invoice'],
            'bill_to' => ['label' => 'Bill To', 'default' => 'Bill To'],
            'ship_to' => ['label' => 'Ship To', 'default' => 'Ship To'],
            'po_number' => ['label' => 'PO Number', 'default' => 'PO Number'],
            'po_date' => ['label' => 'PO Date', 'default' => 'PO Date'],
            'terms' => ['label' => 'Terms', 'default' => 'Terms & Conditions'],
            'copy_original' => ['label' => 'Original Copy Label', 'default' => 'Original for recipient'],
            'copy_duplicate' => ['label' => 'Duplicate Copy Label', 'default' => 'Duplicate for transporter'],
            'copy_triplicate' => ['label' => 'Triplicate Copy Label', 'default' => 'Triplicate for supplier'],
            'copy_quadruplicate' => ['label' => 'Quadruplicate Copy Label', 'default' => 'Quadruplicate'],
            'col_item' => ['label' => 'Item Name (column)', 'default' => 'Item'],
            'col_description' => ['label' => 'Description (column)', 'default' => 'Description'],
            'col_quantity' => ['label' => 'Quantity (column)', 'default' => 'Qty'],
            'col_unit' => ['label' => 'Unit (column)', 'default' => 'UoM'],
            'col_unit_price' => ['label' => 'Unit Price (column)', 'default' => 'Price'],
            'col_tax' => ['label' => 'Tax (column)', 'default' => 'Tax'],
            'col_discount' => ['label' => 'Discount (column)', 'default' => 'Discount'],
            'col_total' => ['label' => 'Total (column)', 'default' => 'Amount'],
            'col_shipping' => ['label' => 'Shipping (column)', 'default' => 'Shipping & Packaging charge'],
            'custom_field_1' => ['label' => 'Custom Field 1', 'default' => 'Custom Field 1 Name'],
            'custom_field_2' => ['label' => 'Custom Field 2', 'default' => 'Custom Field 2 Name'],
        ],
    ],

    'features' => [
        'Brand your invoice with your logo and colors.',
        'Add payments to an invoice and get an overview.',
        'Send invoices to clients by email link or PDF attachment.',
        'Cancel, print or save as PDF any document.',
    ],
];
