if ($value3->nama_bs !== '' and $value3->kd_dragon_bs === '') {
         $nama_bs = explode(' ', $value3->nama_bs);
         if ($value3->total_sec === '0' and $value2->total_ops !== '0') {
             $pnbgx[] = '<strike>' . ((empty($pnbg_kode[1]) ? first_name($value3->nama_fs) : $pnbg_kode[1]) . '/' . $nama_bs[0]) . '</strike>';
         } else {
             $blinking_fs = '';
             if ($value3->bentrok_fs === '1') {
                 // jika terjadi bentrok (angka 1)
                 $blinking_fs = 'blinker';
             }
             $blinking_bs = '';
             if ($value3->bentrok_bs === '1') {
                 // jika terjadi bentrok (angka 1)
                 $blinking_bs = 'blinker';
             }
             $name_fs = "<span class='" . $blinking_fs . "'>" . (empty($pnbg_kode[1]) ? first_name($value3->nama_fs) : $pnbg_kode[1]) . "</span>";
             $name_bs = "/" . "<span class='" . $blinking_bs . "'>" . $nama_bs[0] . "</span>";
             //$pnbgx[] = (empty($pnbg_kode[1])?first_name($value3->nama_fs):$pnbg_kode[1]).'/'.$nama_bs[0];
             $pnbgx[] = $hurt_fs->total_resiko > $resiko->nil_akhir ? '<i style=\'color:' . $hurt_fs->warna . ';-webkit-text-stroke-width:0.5px;-webkit-text-stroke-color:black;\'>' . $name_fs . '</i>' . $name_bs : $name_fs . $name_bs;
         }
     }
     if ($value3->total_sec === '0' and $value2->total_ops !== '0') {
         $pswt_kode = '<strike>' . substr($value3->kode_tail, -2) . '</strike>';
     } else {
         $pswt_kode = substr($value3->kode_tail, -2);
     }
     $pswtx[] = $pswt_kode;
 } else {
     $pnbgx[] = 'Setting Error';
     $pswtx[] = '';
 }
     $pnbgx = [];
     $pswtx = [];
     foreach ($value2->program as $keys => $value3) {
         if ($value3->kode_dragon !== null) {
             $pnbg_kode = explode('-', $value3->kode_dragon);
             if ($value3->kd_dragon_bs === NULL) {
                 $pnbg_kode_bs = explode('-', $value3->kd_dragon_bs);
                 $pnbgx[] = empty($pnbg_kode[1]) ? first_name($value3->nama_fs) : $pnbg_kode[1];
             }
             if ($value3->nama_bs !== NULL and $value3->kd_dragon_bs !== '') {
                 $pnbg_kode_bs = explode('-', $value3->kd_dragon_bs);
                 $pnbgx[] = (empty($pnbg_kode[1]) ? first_name($value3->nama_fs) : $pnbg_kode[1]) . '/' . $pnbg_kode_bs[1];
             }
             if ($value3->nama_bs !== '' and $value3->kd_dragon_bs === '') {
                 $nama_bs = explode(' ', $value3->nama_bs);
                 $pnbgx[] = (empty($pnbg_kode[1]) ? first_name($value3->nama_fs) : $pnbg_kode[1]) . '/' . $nama_bs[0];
             }
             $pswt_kode = substr($value3->kode_tail, -2);
             $pswtx[] = $pswt_kode;
         } else {
             $pnbgx[] = 'Setting Error';
             $pswtx[] = '';
         }
     }
     //echo count($value2->program);
     $flighter = implode('*', $pnbgx);
     $plane = implode('*', $pswtx);
 }
 $label = $value2->nama;
 if (sizeof($value2->program) > 0) {
     $label = $flighter . ' ' . $value2->callsign . ' ' . $value2->excercise . ' ' . $plane . ' ' . $value2->freq;
function middle_name($first_name)
{
    if (mt_rand(1, 100) == 1) {
        return 'Danger';
    } else {
        $middle_name = first_name();
        if ($middle_name == $first_name) {
            return middle_name($first_name);
        } else {
            return $middle_name;
        }
    }
}