<?php

/*
|--------------------------------------------------------------------------
| KCU Platform Configuration
|--------------------------------------------------------------------------
|
| Deployment-level defaults for the admissions platform. Values that a
| university administrator should be able to change at runtime live in the
| `settings` table instead and are read through the Settings service; this
| file holds only what must be known before the database is available.
|
*/

return [

    'application_number' => [
        'prefix' => env('KCU_APPLICATION_NUMBER_PREFIX', 'KCU'),
        'format' => '{prefix}-{year}-{sequence}',
        'sequence_length' => 6,
    ],

    'admission_number' => [
        'prefix' => env('KCU_ADMISSION_NUMBER_PREFIX', 'KCU'),
        'format' => '{prefix}/{year}/{sequence}',
        'sequence_length' => 6,
    ],

    'declaration' => [
        'version' => '1.0',
        'text' => 'I declare that the information provided is true and complete.',
    ],

    'documents' => [
        'max_size_kb' => 5120,
        'allowed_mimes' => ['pdf', 'jpg', 'jpeg', 'png'],
        'allowed_mime_types' => [
            'application/pdf',
            'image/jpeg',
            'image/png',
        ],
        'disk' => 'private',
    ],

    'payments' => [
        'default_provider' => env('PAYMENT_PROVIDER', 'manual'),
        'currency' => 'UGX',
        'webhook_secret' => env('PAYMENT_WEBHOOK_SECRET'),
        'reference_prefix' => 'PAY',
    ],

    'sms' => [
        'provider' => env('SMS_PROVIDER', 'log'),
        'api_key' => env('SMS_API_KEY'),
        'sender_id' => env('SMS_SENDER_ID', 'KCU'),
    ],

    'application' => [
        'max_programme_choices' => 3,
        'min_programme_choices' => 1,
        'require_payment_before_submission' => true,
    ],

];
