bgd-point / point-app-test

Temporary Repository for fixing structural code
Apache License 2.0
2 stars 4 forks source link

fix form date in vesa dashboard #188

Closed christhofer closed 6 years ago

christhofer commented 6 years ago

Vesa manufacture tidak muncul di dashboard karena di app/index.blade.php ada ini

// VESA DUE DATE
$due_date = array_where($array_vesa, function ($value, $key) use ($array_vesa) {
    if (array_key_exists('due_date', $key)) {
        return $key['due_date'] == true;
    }
});

// VESA TODO
$todo = array_where($array_vesa, function ($value, $key) use ($array_vesa) {
    if (! array_key_exists('due_date', $key)) {
        return $key['deadline'] != '';
    } else {
        return $key['due_date'] == false;
    }
});

pengecekan deadline / due_date, dan di manufacture, deadline hanya dikosongi, jadi nggak masuk $todo atau $due_date, jadi nggak ditampilkan di dashboard