Пример #1
0
    $BulanIndo = array("Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember");
    $tahun = substr($date, 0, 4);
    $bulan = substr($date, 5, 2);
    $tgl = substr($date, 8, 2);
    //$result = $tgl . " " . $BulanIndo[(int)$bulan-1] . " ". $tahun;
    $result = $BulanIndo[(int) $bulan - 1];
    return $result;
}
use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use app\models\HrdAbsensi;
$HrdAbsensi = new HrdAbsensi();
$id = Yii::$app->request->get()['id'];
foreach ($HrdAbsensi->findLaporanAbsensiId($id) as $key => $value) {
    $this->title = 'Detail Absensi Pegawai : ' . $value['nama_lengkap'];
}
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="side">
	<div class="sub-sidebar-wrapper">
	  <ul class="nav">
		<?php 
echo Nav::widget(['items' => [['label' => 'Laporan Absensi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/laporan-absensi'])]], ['label' => 'Laporan Lembur Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/laporan-lembur'])]], ['label' => 'Laporan Aktivitas Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/laporan-aktivitas'])]], ['label' => 'Laporan Perekrutan Pegawai Baru', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/laporan-rekrut'])]]]]);
?>
	  </ul>
	</div>
</div>
<div class="col-md-12">
    <div class="widget widget-green">