<?php
// ============================================================
// PEOPLECORE HR SYSTEM - Core Configuration
// ============================================================

define('APP_NAME',    'Seyalix HRMS');
define('APP_VERSION', '1.0.0');
define('BASE_URL',    'https://adrieltech.com/seyalix');
define('BASE_PATH',   __DIR__ . '/..');

// Database
define('DB_HOST', 'localhost');
define('DB_PORT', '3306');
define('DB_NAME', 'adrieltech_seyalix_hrms');
define('DB_USER', 'adrieltech_seyalix_hrms');
define('DB_PASS', '!QF09#yD9]CE#cIr');
define('DB_CHARSET', 'utf8mb4');

// Session
define('SESSION_NAME',    'pc_hr_session');
define('SESSION_TIMEOUT', 7200); // 2 hours

// File Uploads
define('UPLOAD_PATH',     BASE_PATH . '/uploads/');
define('MAX_FILE_SIZE',   5 * 1024 * 1024); // 5MB
define('ALLOWED_IMAGE_TYPES', ['image/jpeg','image/png','image/gif']);
define('ALLOWED_DOC_TYPES',   ['application/pdf','application/msword',
    'application/vnd.openxmlformats-officedocument.wordprocessingml.document']);

// Payroll
define('FINANCIAL_YEAR',  '2026-27');
define('PAYROLL_MONTH',   date('n'));
define('PAYROLL_YEAR',    date('Y'));

// API
define('API_SECRET_KEY',  'pc_hr_secret_2026_!@#');
define('API_TOKEN_EXPIRY', 86400); // 24 hours in seconds

// Company Info
define('COMPANY_NAME',    'PeopleCore Technologies Pvt Ltd');
define('COMPANY_ADDRESS', 'No.1, Tech Park, Chennai - 600001');
define('COMPANY_PAN',     'AABCP1234M');
define('COMPANY_TAN',     'CHEN12345A');

// Timezone
date_default_timezone_set('Asia/Kolkata');

// Error reporting (set to 0 in production)
error_reporting(E_ALL);
ini_set('display_errors', 1);
