<?php

return [
    'roles' => [
        'Administrator',
        'Manager',
        'Cashier',
        'Sales Employee',
        'Accountant',
        'Viewer',
    ],

    'permissions' => [
        'dashboard.view',
        'customers.view',
        'customers.create',
        'customers.edit',
        'customers.delete',
        'companies.view',
        'companies.create',
        'companies.edit',
        'companies.delete',
        'accounts.view',
        'accounts.create',
        'accounts.edit',
        'accounts.delete',
        'lines.view',
        'lines.create',
        'lines.edit',
        'lines.delete',
        'lines.sell',
        'lines.transfer',
        'lines.cancel',
        'plans.view',
        'plans.create',
        'plans.edit',
        'plans.delete',
        'sales.view',
        'sales.create',
        'sales.cancel',
        'sales.override_price',
        'billing.view',
        'billing.create',
        'payments.view',
        'payments.create',
        'payments.cancel',
        'invoices.view',
        'invoices.create',
        'invoices.print',
        'invoices.cancel',
        'invoices.edit',
        'invoices.delete',
        'invoices.share',
        'cash.view',
        'cash.manage',
        'cash.close',
        'reports.view',
        'reports.export',
        'users.view',
        'users.create',
        'users.edit',
        'users.delete',
        'roles.view',
        'roles.manage',
        'settings.view',
        'settings.manage',
        'updates.view',
        'updates.execute',
        'backups.view',
        'backups.create',
        'backups.delete',
        'health.view',
        'audit.view',
        'search.view',
        'overdue.view',
        'expenses.view',
        'expenses.create',
    ],

    'role_permissions' => [
        'Administrator' => ['*'],
        'Manager' => [
            'dashboard.view', 'customers.view', 'customers.create', 'customers.edit',
            'companies.view', 'companies.create', 'companies.edit',
            'accounts.view', 'accounts.create', 'accounts.edit',
            'lines.view', 'lines.create', 'lines.edit', 'lines.sell', 'lines.transfer', 'lines.cancel',
            'plans.view', 'plans.create', 'plans.edit',
            'sales.view', 'sales.create', 'sales.cancel', 'sales.override_price',
            'billing.view', 'billing.create',
            'payments.view', 'payments.create', 'payments.cancel',
            'invoices.view', 'invoices.create', 'invoices.print', 'invoices.cancel',
            'invoices.edit', 'invoices.delete', 'invoices.share',
            'cash.view', 'cash.manage', 'cash.close',
            'reports.view', 'reports.export',
            'users.view', 'settings.view', 'audit.view', 'search.view',
            'overdue.view', 'expenses.view', 'expenses.create', 'health.view',
            'backups.view', 'backups.create',
        ],
        'Cashier' => [
            'dashboard.view', 'customers.view', 'customers.create',
            'lines.view', 'billing.view', 'billing.create',
            'payments.view', 'payments.create',
            'invoices.view', 'invoices.print', 'invoices.share',
            'cash.view', 'cash.manage',
            'search.view', 'overdue.view',
            'sales.view', 'sales.create',
        ],
        'Sales Employee' => [
            'dashboard.view', 'customers.view', 'customers.create', 'customers.edit',
            'lines.view', 'lines.sell',
            'plans.view', 'sales.view', 'sales.create',
            'invoices.view', 'invoices.print', 'invoices.share',
            'search.view', 'accounts.view', 'companies.view',
        ],
        'Accountant' => [
            'dashboard.view', 'customers.view', 'accounts.view',
            'billing.view', 'payments.view', 'payments.create',
            'invoices.view', 'invoices.print', 'invoices.share',
            'cash.view', 'reports.view', 'reports.export',
            'overdue.view', 'audit.view', 'search.view',
            'expenses.view', 'expenses.create',
        ],
        'Viewer' => [
            'dashboard.view', 'customers.view', 'companies.view', 'accounts.view',
            'lines.view', 'plans.view', 'sales.view', 'billing.view',
            'payments.view', 'invoices.view', 'cash.view', 'reports.view',
            'search.view', 'overdue.view',
        ],
    ],
];
