<?php

return [
    'menu' => [
        'books' => [
            'label' => 'BOOKS OF ACCOUNTS',
            'items' => [
                'cash_book' => [
                    'label' => 'Cash Book / Petty Cash',
                    'icon' => 'ri-wallet-3-line',
                    'route' => 'admin.accounting.show',
                    'route_params' => ['report' => 'cash_book'],
                ],
                'item_stock_ledger' => [
                    'label' => 'Item Stock Ledger',
                    'route' => 'admin.accounting.show',
                    'route_params' => ['report' => 'item_stock_ledger'],
                ],
                'item_amount_ledger' => [
                    'label' => 'Item Amount Ledger',
                    'icon' => 'ri-money-rupee-circle-line',
                    'route' => 'admin.accounting.show',
                    'route_params' => ['report' => 'item_amount_ledger'],
                ],
                'profit_loss' => [
                    'label' => 'Profit and Loss',
                    'icon' => 'ri-line-chart-line',
                    'route' => 'admin.accounting.show',
                    'route_params' => ['report' => 'profit_loss'],
                ],
                'inventory_book' => [
                    'label' => 'Inventory Book',
                    'icon' => 'ri-book-2-line',
                    'route' => 'admin.accounting.show',
                    'route_params' => ['report' => 'inventory_book'],
                ],
                'client_outstanding' => [
                    'label' => 'Client Outstanding Payment',
                    'icon' => 'ri-user-received-2-line',
                    'route' => 'admin.accounting.show',
                    'route_params' => ['report' => 'client_outstanding'],
                ],
                'vendor_outstanding' => [
                    'label' => 'Vendor Outstanding Payment',
                    'route' => 'admin.accounting.show',
                    'route_params' => ['report' => 'vendor_outstanding'],
                ],
                'invoice_receivable' => [
                    'label' => 'Invoice Receivable',
                    'icon' => 'ri-bill-line',
                    'route' => 'admin.accounting.show',
                    'route_params' => ['report' => 'invoice_receivable'],
                ],
                'bill_payable' => [
                    'label' => 'Bill Payable',
                    'icon' => 'ri-file-list-3-line',
                    'route' => 'admin.accounting.show',
                    'route_params' => ['report' => 'bill_payable'],
                ],
            ],
        ],
    ],

    'reports' => [
        'index' => [
            'title' => 'Accounting',
            'view' => 'about',
        ],
        'cash_book' => [
            'title' => 'Cash Book',
            'view' => 'cash_book',
            'date_label' => 'Paid between',
            'export_prefix' => 'CashBook',
            'about' => 'Monitor cash received and paid with a running balance between selected dates.',
        ],
        'item_stock_ledger' => [
            'title' => 'Item Stock Ledger',
            'view' => 'item_ledger',
            'ledger_mode' => 'stock',
            'date_label' => 'Ledger between',
            'export_prefix' => 'ItemStockLedger',
            'requires_item' => true,
            'about' => 'Track sales quantity, purchase quantity and balance quantity for a specific item.',
        ],
        'item_amount_ledger' => [
            'title' => 'Item Amount Ledger',
            'view' => 'item_ledger',
            'ledger_mode' => 'amount',
            'date_label' => 'Ledger between',
            'export_prefix' => 'ItemAmountLedger',
            'requires_item' => true,
            'about' => 'Financial flow for an item: taxable sales, purchases and running balance.',
        ],
        'profit_loss' => [
            'title' => 'Profit & Loss Statement',
            'view' => 'profit_loss',
            'date_label' => 'Financial Period between',
            'export_prefix' => 'ProfitAndLoss',
            'about' => 'Overview of income and expenses for the selected period.',
        ],
        'inventory_book' => [
            'title' => 'Inventory Book',
            'view' => 'inventory_book',
            'date_label' => 'Inventory Book between',
            'export_prefix' => 'InventoryBook',
            'about' => 'Inflow and outflow of all tracked items in quantity and amount.',
        ],
        'client_outstanding' => [
            'title' => 'Client Outstanding Payment',
            'view' => 'party_balance',
            'party' => 'client',
            'export_prefix' => 'ClientOutstanding',
            'about' => 'Clients with outstanding balances from invoices and opening balance.',
        ],
        'vendor_outstanding' => [
            'title' => 'Vendor Outstanding Payment',
            'view' => 'party_balance',
            'party' => 'vendor',
            'export_prefix' => 'VendorOutstanding',
            'about' => 'Vendors with outstanding balances from purchase bills.',
        ],
        'invoice_receivable' => [
            'title' => 'Invoice Receivable',
            'view' => 'party_balance',
            'party' => 'client',
            'export_prefix' => 'InvoiceReceivable',
            'about' => 'Receivables from clients — amounts due on invoices.',
        ],
        'bill_payable' => [
            'title' => 'Bill Payable',
            'view' => 'party_balance',
            'party' => 'vendor',
            'export_prefix' => 'BillPayable',
            'about' => 'Amounts payable to vendors on purchase bills.',
        ],
    ],

    'about_features' => [
        [
            'title' => 'Cash Book / Petty Cash Report',
            'text' => 'Monitors cash flow with detailed records of cash received and cash paid during a financial period.',
        ],
        [
            'title' => 'Item Stock Ledger Report',
            'text' => 'Tracks movement of specific products with sales quantity, purchase quantity and balance quantity between selected dates.',
        ],
        [
            'title' => 'Item Amount Ledger Report',
            'text' => 'Overview of financial flow for specific items detailing taxable amounts for sales, purchases and remaining stock value.',
        ],
        [
            'title' => 'Profit & Loss Statement Report',
            'text' => 'Calculates profit or loss: Income from sales and debit notes minus purchases, expenses, credit notes, GST/Tax and TCS, plus TDS.',
        ],
        [
            'title' => 'Inventory Book',
            'text' => 'Comprehensive inflow and outflow of all products/items with remaining stock in quantity and monetary terms.',
        ],
    ],
];
