@php // List route agar pengecekan lebih dinamis dan bersih $routes = ['userarea', 'history', 'memo', 'referal', 'deposit', 'withdraw', 'rekening', 'myaccount']; $active = []; foreach ($routes as $r) { $active[$r] = request()->routeIs($r) ? 'active' : ''; } @endphp @mobile
Statement
History
Memo1
Referal
Deposit
Withdraw
Rekening
Password
@endmobile @desktop @enddesktop