33 lines
677 B
PHP
33 lines
677 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();
|
|
}
|
|
}
|