<?php

return [
    'types' => [
        'quotation' => 'Quotation',
        'proforma' => 'Proforma Invoice',
    ],

    'create_types' => [
        'quotation' => [
            'label' => 'Quotation',
            'icon' => 'ri-file-copy-2-line',
            'desc' => 'Offer for your client to accept or reject',
        ],
        'proforma' => [
            'label' => 'Proforma Invoice',
            'icon' => 'ri-file-paper-2-line',
            'desc' => 'Proforma before final invoicing',
        ],
    ],

    'statuses' => [
        'draft' => ['label' => 'Draft', 'color' => 'secondary'],
        'sent' => ['label' => 'Sent', 'color' => 'primary'],
        'accepted' => ['label' => 'Accepted', 'color' => 'success'],
        'rejected' => ['label' => 'Rejected', 'color' => 'danger'],
        'converted' => ['label' => 'Converted', 'color' => 'info'],
    ],

    'features' => [
        'Customize your Quote to fit your brand.',
        'Convert an accepted quote into an invoice.',
        'Print, Cancel, Save as PDF or Email your Quotes & Proformas.',
    ],

    'prefixes' => [
        'quotation' => 'QT',
        'proforma' => 'PI',
    ],

    'doc_labels' => [
        'quotation' => [
            'title' => 'Quotation',
            'number' => 'Quotation no',
            'date' => 'Quotation date',
        ],
        'proforma' => [
            'title' => 'Proforma Invoice',
            'number' => 'Proforma no',
            'date' => 'Proforma date',
        ],
    ],

    'po_labels' => [
        'po_number' => 'PO Number',
        'work_order' => 'Work Order',
        'reference' => 'Reference',
    ],

    'default_valid_days' => 12,

    /*
    | Document preferences (Settings → Documents → Quotes & Proformas).
    | Stored per company in settings.quotation_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_contact_person_quote_to' => ['label' => 'Show Contact Person in Quote To section', 'default' => true],
            'show_primary_signature' => ['label' => 'Show Primary Signature', 'default' => true],
            'show_secondary_signature' => ['label' => 'Show Secondary Signature', 'default' => false],
        ],
        'labels' => [
            'title_quotation' => ['label' => 'Quotation Title', 'default' => 'Quotation'],
            'title_proforma' => ['label' => 'Proforma Invoice Title', 'default' => 'Proforma Invoice'],
            'quote_to' => ['label' => 'Quote To', 'default' => 'Quote To'],
            'ship_to' => ['label' => 'Ship To', 'default' => 'Ship To'],
            'po_number' => ['label' => 'PO Number', 'default' => 'PO Number'],
            'terms' => ['label' => 'Terms', 'default' => 'Terms & Conditions'],
            '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 charges'],
            'custom_field_1' => ['label' => 'Custom Field 1', 'default' => 'Custom Field 1 Name'],
            'custom_field_2' => ['label' => 'Custom Field 2', 'default' => 'Custom Field 2 Name'],
        ],
    ],
];
