<?php

return [
    'name' => 'VetOneDemo',

    // Bump on every change so the Update button appears on deploy copies.
    'module_version' => '1.0.0',

    /*
    |--------------------------------------------------------------------------
    | Demo lifecycle
    |--------------------------------------------------------------------------
    | Each self-service signup is a 48-hour demo tenant. After expiry the
    | EnsureDemoActive middleware soft-locks the tenant and redirects to the
    | "contact TPS" landing. demo:purge deletes tenants that stayed expired
    | past the retention window.
    */
    'demo' => [
        'hours'                => (int) env('VETONE_DEMO_HOURS', 48),
        'purge_retention_days' => (int) env('VETONE_DEMO_PURGE_DAYS', 14),
        'default_doctor_count' => (int) env('VETONE_DEMO_DOCTORS', 3),
    ],

    /*
    |--------------------------------------------------------------------------
    | Module entitlements granted to each demo tenant (the vet vertical set).
    | Lab-device drivers are entitled so the UI is visible, but no LabBridge
    | agent is connected in the demo ("Agent: Offline").
    |--------------------------------------------------------------------------
    */
    'entitlements' => [
        'VetClinic', 'VetAdmission', 'VetAI', 'VetPortal', 'VetSite', 'VetStaffPortal',
        'NX600Lab', 'IdexxLab', 'AbaxisLab',
    ],

    /*
    |--------------------------------------------------------------------------
    | Business defaults (VetOne cloud runs on the vet project DB by default).
    |--------------------------------------------------------------------------
    */
    'defaults' => [
        'currency_code'     => env('VETONE_DEMO_CURRENCY', 'EGP'),
        'time_zone'         => env('VETONE_DEMO_TZ', 'Africa/Cairo'),
        'fy_start_month'    => 1,
        'accounting_method' => 'fifo',
        'accent_hex'        => '#0d9488', // teal — overridden per tenant if a colour is chosen
        'location_name'     => 'Main Branch',
    ],

    /*
    |--------------------------------------------------------------------------
    | Staff role counts collected on the register form. Key = role base name
    | (must match VetClinic\Services\DefaultRolesSeeder::PRESETS keys or the
    | core Admin/Accounting roles). label = what the form shows.
    |--------------------------------------------------------------------------
    */
    'staff_roles' => [
        'Doctor'       => ['label' => 'Doctors',       'default' => 3, 'min' => 1],
        'Nurse'        => ['label' => 'Nurses',        'default' => 2, 'min' => 0],
        'Receptionist' => ['label' => 'Receptionists', 'default' => 1, 'min' => 0],
        'Accounting'   => ['label' => 'Accounting',    'default' => 1, 'min' => 0],
        'HR'           => ['label' => 'HR',            'default' => 0, 'min' => 0],
    ],

    /*
    |--------------------------------------------------------------------------
    | TPS contact — shown on the expired-demo landing and onboarding help.
    |--------------------------------------------------------------------------
    */
    'tps' => [
        'email'    => 'support@tps-egy.com',
        'phones'   => ['01020020851', '01092288093'],
        'whatsapp' => '201020020851', // wa.me/201020020851
        'website'  => 'https://tps-egy.com',
    ],
];
