<?php

return [
    'sections' => [
        'general' => [
            'label' => 'General',
            'group' => 'GENERAL',
            'route' => 'admin.preferences.general',
            'icon' => 'ri-settings-3-line',
        ],
        'company_profile' => [
            'label' => 'Profile',
            'group' => 'COMPANY',
            'route' => 'admin.preferences.profile',
            'icon' => 'ri-building-2-line',
        ],
        'taxes' => [
            'label' => 'Taxes',
            'group' => 'COMPANY',
            'route' => 'admin.preferences.taxes',
            'icon' => 'ri-percent-line',
        ],
        'invoices_doc' => [
            'label' => 'Invoices',
            'group' => 'DOCUMENTS',
            'route' => 'admin.preferences.invoices',
            'icon' => 'ri-file-list-3-line',
        ],
        'quotes_doc' => [
            'label' => 'Quotes & Proformas',
            'group' => 'DOCUMENTS',
            'route' => 'admin.preferences.quotes',
            'icon' => 'ri-file-copy-2-line',
        ],
        'delivery_challans_doc' => [
            'label' => 'Delivery Challans',
            'group' => 'DOCUMENTS',
            'route' => 'admin.preferences.delivery-challans',
            'icon' => 'ri-truck-line',
        ],
        'credit_notes_doc' => [
            'label' => 'Credit Notes',
            'group' => 'DOCUMENTS',
            'route' => 'admin.preferences.credit-notes',
            'icon' => 'ri-file-reduce-line',
        ],
        'debit_notes_doc' => [
            'label' => 'Debit Notes',
            'group' => 'DOCUMENTS',
            'route' => 'admin.preferences.debit-notes',
            'icon' => 'ri-file-add-line',
        ],
        'purchase_orders_doc' => [
            'label' => 'Purchase Orders',
            'group' => 'DOCUMENTS',
            'route' => 'admin.preferences.purchase-orders',
            'icon' => 'ri-shopping-cart-line',
        ],
        'purchase_bills_doc' => [
            'label' => 'Purchase Bills',
            'group' => 'DOCUMENTS',
            'route' => 'admin.preferences.purchase-bills',
            'icon' => 'ri-bill-line',
        ],
        'expenses_doc' => [
            'label' => 'Expenses',
            'group' => 'DOCUMENTS',
            'route' => 'admin.preferences.expenses',
            'icon' => 'ri-wallet-3-line',
        ],
        'payments_doc' => [
            'label' => 'Payments',
            'group' => 'DOCUMENTS',
            'route' => 'admin.preferences.payments',
            'icon' => 'ri-money-dollar-circle-line',
        ],
    ],

    'defaults' => [
        'date_format' => 'd - M - Y',
        'decimal_places' => 2,
        'quantity_decimal_places' => 0,
        'document_prefix_separator' => '-',
        'round_off_amount' => true,
        'indian_number_format' => true,
        'track_inventory' => true,
        'show_shipping_costs' => true,
        'show_bank_details_invoice' => true,
        'show_bank_details_quotation' => true,
        'allow_edit_tax_from_line' => true,
        'show_hash_on_document' => true,
        'show_total_taxable_value' => true,
        'show_pending_amount_due' => true,
        'show_currency_symbol' => true,
        'allow_sales_user_edit_document' => false,
        'allow_edit_opening_quantity' => false,
        'allow_duplicate_item_name' => false,
        'inventory_deduction_delivery_challan' => false,
        'allow_edit_current_quantity' => false,
        'allow_user_own_documents' => false,
        'show_quantity_column_services' => false,
        'activate_kerala_cess' => false,
        'sync_opening_to_current_qty' => true,
        'unit_optional' => true,
        'primary_signature_label' => 'Provider Signature',
        'secondary_signature_label' => 'Receiver Signature',
    ],

    'date_formats' => [
        'd - M - Y' => 'dd - mmm - yyyy',
        'd/m/Y' => 'dd/mm/yyyy',
        'd-m-Y' => 'dd-mm-yyyy',
        'M d, Y' => 'mmm dd, yyyy',
        'Y-m-d' => 'yyyy-mm-dd',
    ],

    'decimal_places' => [0, 1, 2, 3],

    'quantity_decimal_places' => [0, 1, 2, 3],

    'prefix_separators' => [
        '-' => '- (Hyphen)',
        '/' => '/ (Slash)',
        '_' => '_ (Underscore)',
        '' => 'None',
    ],

    'toggles' => [
        [
            'key' => 'round_off_amount',
            'label' => 'Use Total Without Decimals (Round Off Amount)',
            'default' => true,
        ],
        [
            'key' => 'indian_number_format',
            'label' => 'Use Indian formatting for numbers',
            'default' => true,
        ],
        [
            'key' => 'track_inventory',
            'label' => 'Add current stock of products and keep track of inventory',
            'default' => true,
        ],
        [
            'key' => 'show_shipping_costs',
            'label' => 'Show Shipping & Packaging Costs',
            'default' => true,
        ],
        [
            'key' => 'show_bank_details_invoice',
            'label' => 'Show Bank Details on Invoices',
            'hint' => 'Display bank details on invoice preview and print',
            'default' => true,
        ],
        [
            'key' => 'show_bank_details_quotation',
            'label' => 'Show Bank Details on Quotations',
            'hint' => 'Display bank details on quotation preview and print',
            'default' => true,
        ],
        [
            'key' => 'allow_edit_tax_from_line',
            'label' => 'Allow Edit Tax From Line Item',
            'default' => true,
        ],
        [
            'key' => 'show_hash_on_document',
            'label' => "Show '#' on document identifier",
            'default' => true,
        ],
        [
            'key' => 'show_total_taxable_value',
            'label' => 'Show Total Taxable Value',
            'default' => true,
        ],
        [
            'key' => 'show_pending_amount_due',
            'label' => 'Show Pending Amount Due in Invoice creation menu',
            'default' => true,
        ],
        [
            'key' => 'show_currency_symbol',
            'label' => 'Show Currency Symbol instead currency code in preview',
            'default' => true,
        ],
        [
            'key' => 'sync_opening_to_current_qty',
            'label' => 'Auto-sync Current quantity when Opening quantity changes (new items)',
            'default' => true,
        ],
        [
            'key' => 'unit_optional',
            'label' => 'Unit of measurement is optional on items',
            'default' => true,
        ],
        [
            'key' => 'allow_sales_user_edit_document',
            'label' => 'Allow Sales User to edit document',
            'default' => false,
        ],
        [
            'key' => 'allow_edit_opening_quantity',
            'label' => 'Allow Primary User to edit Opening Quantity',
            'default' => false,
        ],
        [
            'key' => 'allow_duplicate_item_name',
            'label' => 'Allow Duplicate Item Name',
            'default' => false,
        ],
        [
            'key' => 'inventory_deduction_delivery_challan',
            'label' => 'Inventory deduction with Delivery challan',
            'default' => false,
        ],
        [
            'key' => 'allow_edit_current_quantity',
            'label' => 'Allow Primary User to edit Current Quantity',
            'default' => false,
        ],
        [
            'key' => 'allow_user_own_documents',
            'label' => 'Allow User To See Their Own Documents',
            'default' => false,
        ],
        [
            'key' => 'show_quantity_column_services',
            'label' => 'Show Quantity Column for Services',
            'default' => false,
        ],
        [
            'key' => 'activate_kerala_cess',
            'label' => 'Activate Kerala 1% Cess',
            'default' => false,
        ],
    ],
];
