- Halaman baharu "Saluran Bermasalah": senarai semua saluran dalam DUN (dengan KTM & telefonnya), tanda/buang tanda bermasalah berserta catatan; admin DUN terhad ke DUN sendiri, superadmin semua DUN - Dashboard: baris saluran bermasalah diserlahkan kuning berserta lencana BERMASALAH dan catatan - No. telefon KTM kini ada butang "📞 Call" (tel:) dan "WhatsApp" (wa.me, dinormalkan ke format 60xxxxxxxxx) di dashboard dan halaman saluran bermasalah Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
48 lines
1.8 KiB
PHP
48 lines
1.8 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="ms">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>@yield('tajuk', config('app.name'))</title>
|
|
@php $cssVer = @filemtime(public_path('css/app.css')) ?: null; @endphp
|
|
<link rel="stylesheet" href="{{ asset('css/app.css') }}{{ $cssVer ? '?v=' . $cssVer : '' }}">
|
|
</head>
|
|
<body>
|
|
<header class="topbar">
|
|
<a class="jenama" href="{{ auth()->check() ? route('dashboard') : url('/') }}">
|
|
Kehadiran KTM — Peti Undi SPR 2026
|
|
</a>
|
|
@auth
|
|
@php
|
|
$labelPeranan = match (auth()->user()->role) {
|
|
'superadmin' => 'Superadmin',
|
|
'admin' => 'Admin DUN',
|
|
default => auth()->user()->role,
|
|
};
|
|
@endphp
|
|
<div class="pengguna">
|
|
<a href="{{ route('dashboard') }}">Dashboard</a>
|
|
<a href="{{ route('saluran.index') }}">Saluran Bermasalah</a>
|
|
@if (auth()->user()->isSuperadmin())
|
|
<a href="{{ route('pengguna.index') }}">Pengguna</a>
|
|
@endif
|
|
<a href="{{ route('profil.edit') }}">Profil</a>
|
|
<span>{{ auth()->user()->name }} ({{ $labelPeranan }})</span>
|
|
<form method="POST" action="{{ route('logout') }}" style="margin:0">
|
|
@csrf
|
|
<button type="submit" class="btn btn-kecil btn-merah">Log Keluar</button>
|
|
</form>
|
|
</div>
|
|
@endauth
|
|
</header>
|
|
|
|
<main class="container @yield('saiz-container')">
|
|
@if (session('status'))
|
|
<div class="makluman makluman-jaya">{{ session('status') }}</div>
|
|
@endif
|
|
|
|
@yield('kandungan')
|
|
</main>
|
|
</body>
|
|
</html>
|