38 lines
957 B
PHP
38 lines
957 B
PHP
<?php
|
|
|
|
use App\Models\Verifikator\Periode;
|
|
|
|
if (!function_exists('month')) {
|
|
function month($monthNumber)
|
|
{
|
|
$months = [
|
|
1 => 'Januari',
|
|
2 => 'Februari',
|
|
3 => 'Maret',
|
|
4 => 'April',
|
|
5 => 'Mei',
|
|
6 => 'Juni',
|
|
7 => 'Juli',
|
|
8 => 'Agustus',
|
|
9 => 'September',
|
|
10 => 'Oktober',
|
|
11 => 'November',
|
|
12 => 'Desember',
|
|
];
|
|
|
|
return $months[(int) $monthNumber] ?? null;
|
|
}
|
|
}
|
|
|
|
if (!function_exists('periodeAktif')) {
|
|
function periodeAktif()
|
|
{
|
|
return Periode::where('status', true)->first();
|
|
}
|
|
}
|
|
|
|
// Aturan Perhitungan 401 Traits
|
|
require_once __DIR__.'/Traits/AturanPerhitungan/401/HitungP2Dosen401Trait.php';
|
|
require_once __DIR__.'/Traits/AturanPerhitungan/401/HitungAdhoc401Trait.php';
|
|
require_once __DIR__.'/Traits/AturanPerhitungan/401/HitungAlokasiKegiatan401Trait.php';
|