<?php
///////////////////////////////////////////////////////////////////////////////
// Portfolio tool — sample configuration
//
// Copy or rename this file to config.php to activate.
// Variables are prefixed with the tool name to avoid conflicts.
//
// Set 'disable' => true on any entry to exclude it from the filter bar.
// If all entries are disabled the filter bar reverts to the built-in defaults
// (Registrar and Nameserver).
///////////////////////////////////////////////////////////////////////////////

// Set to false to hide the filter bar entirely.
// If this variable is missing, the filter bar is shown.
$portfolio_filters_enabled = true;


$portfolio_filters = [

    // -------------------------------------------------------------------------
    // Text filters — substring match against one or more varchar columns
    // -------------------------------------------------------------------------

    [
        'label'   => 'Registrar',
        'group'   => 'Registrar',
        'columns' => ['d.registrar'],
        'disable' => false,
    ],

    [
        'label'   => 'Nameserver',
        'group'   => 'Nameserver',
        'columns' => ['d.ns1','d.ns2','d.ns3','d.ns4','d.ns5','d.ns6','d.ns7','d.ns8'],
        'disable' => false,
    ],

    [
        'label'   => 'Owner',
        'group'   => 'Ownership',
        'columns' => ['d.owner'],
        'disable' => true,
    ],

    [
        'label'   => 'Organization',
        'group'   => 'Ownership',
        'columns' => ['d.organization'],
        'disable' => true,
    ],

    [
        'label'   => 'Notes A',
        'group'   => 'Notes',
        'columns' => ['d.notes_a'],
        'disable' => true,
    ],

    [
        'label'   => 'Notes B',
        'group'   => 'Notes',
        'columns' => ['d.notes_b'],
        'disable' => true,
    ],

    // -------------------------------------------------------------------------
    // Integer filters — min/max range inputs
    // -------------------------------------------------------------------------

    [
        'label'   => 'Days To Expiry',
        'group'   => 'Expiry Range',
        'type'    => 'int',
        'columns' => ['d.days_to_expiry'],
        'disable' => true,
    ],

    [
        'label'   => 'Ping Time',
        'group'   => 'Performance',
        'type'    => 'int',
        'columns' => ['d.pingtime'],
        'disable' => true,
    ],

    [
        'label'   => 'Page Size',
        'group'   => 'Performance',
        'type'    => 'int',
        'columns' => ['d.home_page_size'],
        'disable' => true,
    ],

    // -------------------------------------------------------------------------
    // Float filters — min/max range inputs with decimal step.
    // Example for custom numeric columns with decimal values:
    //
    // [
    //     'label'   => 'Price',
    //     'group'   => 'Pricing',
    //     'type'    => 'float',
    //     'columns' => ['d.price'],
    //     'disable' => true,
    // ],
    // -------------------------------------------------------------------------

    // -------------------------------------------------------------------------
    // Boolean filters — Yes / No dropdown
    // -------------------------------------------------------------------------

    [
        'label'   => 'Edited',
        'group'   => 'Status',
        'type'    => 'boolean',
        'columns' => ['d.edited'],
        'disable' => true,
    ],

    [
        'label'   => 'Write Protect',
        'group'   => 'Status',
        'type'    => 'boolean',
        'columns' => ['d.write_protect'],
        'disable' => true,
    ],

    [
        'label'   => 'Disable Alerts',
        'group'   => 'Status',
        'type'    => 'boolean',
        'columns' => ['d.disable_alerts'],
        'disable' => true,
    ],

];