Commit d4d3b0a3 by Alfiro Pratama

15 slot per dosen

parent a7842531
...@@ -38,7 +38,7 @@ class DosenController extends Controller ...@@ -38,7 +38,7 @@ class DosenController extends Controller
->whereYear('created_at', $periode->nama) ->whereYear('created_at', $periode->nama)
->count(); ->count();
$slot_tersisa = max(0, 10 - $jumlah_bimbingan); $slot_tersisa = max(0, 15 - $jumlah_bimbingan);
$status_slot = $slot_tersisa == 0 ? '<span style="color: red; font-weight: bold;">(Slot Bimbingan Penuh)</span>' : "(Slot Bimbingan: $slot_tersisa slot)"; $status_slot = $slot_tersisa == 0 ? '<span style="color: red; font-weight: bold;">(Slot Bimbingan Penuh)</span>' : "(Slot Bimbingan: $slot_tersisa slot)";
$itemData = [ $itemData = [
...@@ -48,7 +48,7 @@ class DosenController extends Controller ...@@ -48,7 +48,7 @@ class DosenController extends Controller
'description' => $item['prodi'] . '<span style="margin-left: 2em">-</span><i style="margin-left: 2em">' . $status_slot . '</i>', 'description' => $item['prodi'] . '<span style="margin-left: 2em">-</span><i style="margin-left: 2em">' . $status_slot . '</i>',
'nidn' => $item['nidn'], 'nidn' => $item['nidn'],
'bimbingan_count' => $jumlah_bimbingan, 'bimbingan_count' => $jumlah_bimbingan,
'disabled' => $jumlah_bimbingan >= 10 ? true : false, 'disabled' => $jumlah_bimbingan >= 15 ? true : false,
]; ];
$items[] = $itemData; $items[] = $itemData;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment