<?php

namespace Config;

use CodeIgniter\Config\BaseConfig;

class Uploads extends BaseConfig
{
    public int $avatarMaxSizeKB = 2048;
    public array $avatarAllowedMimes = ['image/jpeg', 'image/png', 'image/webp'];
    public array $avatarAllowedExt = ['jpg', 'jpeg', 'png', 'webp'];

    public string $avatarUploadPath = FCPATH . 'assets/uploads/avatars';
    public string $avatarPublicPath = 'assets/uploads/avatars';

    public int $logoMaxSizeKB = 2048;
    public array $logoAllowedMimes = ['image/jpeg', 'image/png', 'image/webp'];
    public array $logoAllowedExt = ['jpg', 'jpeg', 'png', 'webp'];

    public string $logoUploadPath = FCPATH . 'assets/uploads/company';
    public string $logoPublicPath = 'assets/uploads/company';

    public int $employeePhotoMaxSizeKB = 2048;
    public array $employeePhotoAllowedMimes = ['image/jpeg', 'image/png', 'image/webp'];
    public array $employeePhotoAllowedExt = ['jpg', 'jpeg', 'png', 'webp'];
    public string $employeePhotoUploadPath = FCPATH . 'assets/uploads/employees/photos';
    public string $employeePhotoPublicPath = 'assets/uploads/employees/photos';

    public int $employeeDocumentMaxSizeKB = 5120;
    public array $employeeDocumentAllowedMimes = [
        'application/pdf',
        'image/jpeg',
        'image/png',
        'image/webp',
    ];
    public array $employeeDocumentAllowedExt = ['pdf', 'jpg', 'jpeg', 'png', 'webp'];
    public string $employeeDocumentUploadPath = FCPATH . 'assets/uploads/employees/documents';
    public string $employeeDocumentPublicPath = 'assets/uploads/employees/documents';

    public int $customerDocumentMaxSizeKB = 5120;
    public array $customerDocumentAllowedMimes = [
        'application/pdf',
        'image/jpeg',
        'image/png',
        'image/webp',
        'application/msword',
        'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
    ];
    public array $customerDocumentAllowedExt = ['pdf', 'jpg', 'jpeg', 'png', 'webp', 'doc', 'docx'];
    public string $customerDocumentUploadPath = FCPATH . 'assets/uploads/customers/documents';
    public string $customerDocumentPublicPath = 'assets/uploads/customers/documents';
}
