<!doctype html><html lang="id"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>MWCNU Tugu | Website Resmi Nahdlatul Ulama Kecamatan Tugu</title><meta name="description" content="Portal resmi MWCNU Kecamatan Tugu, Kota Semarang. Berita, kegiatan, Ranting, Banom, Lembaga dan layanan organisasi."><link rel="stylesheet" href="{{ asset('assets/css/app.css') }}"></head><body class="public-body">
<header class="public-nav"><div class="public-brand"><div class="brand-mark">NU</div><div><b>MWCNU TUGU</b><small>NAHDLATUL ULAMA</small></div></div><nav><a href="{{ route('public.news') }}">Berita</a><a href="#ranting">Ranting</a><a href="#unit">Banom & Lembaga</a><a href="{{ route('public.agenda') }}">Agenda</a><a href="{{ route('login') }}">Login Admin</a></nav></header>
<section class="public-hero"><div class="hero-inner"><span class="eyebrow">WEBSITE RESMI</span><h1>MWC Nahdlatul Ulama<br>Kecamatan Tugu</h1><p>Khidmah untuk Jam'iyah dan Jamaah</p><div><a class="btn light" href="#berita">Berita Terbaru</a><a class="btn ghost" href="#unit">Jelajahi Organisasi</a></div></div></section>
<section class="public-stats"><div><strong>{{ $rantings->count() }}</strong><small>Ranting Aktif</small></div><div><strong>{{ $units->count() }}</strong><small>Banom & Lembaga</small></div><div><strong>{{ \App\Models\Activity::where('public_visible',true)->count() }}</strong><small>Kegiatan Tercatat</small></div><div><strong>{{ \App\Models\News::where('status','published')->where('public_visible',true)->count() }}</strong><small>Berita Publik</small></div></section>
<main class="public-main">@if(data_get($mwc?->settings,'demo_content'))<div class="demo-public-notice"><b>Konten awal/demo</b><span>{{ data_get($mwc?->settings,'content_notice') }}</span></div>@endif<section class="home-intro"><div><span class="eyebrow">TENTANG MWCNU TUGU</span><h2>Kantor digital untuk koordinasi, pelayanan, dan publikasi organisasi</h2><p>{{ data_get($mwc?->settings,'profile_intro') }}</p></div><div class="card"><b>Visi</b><p>{{ data_get($mwc?->settings,'vision') }}</p></div></section><section id="berita"><div class="public-section-head"><div><span class="eyebrow">KABAR JAM'IYAH</span><h2>Berita Terbaru</h2></div><a href="{{ route('public.news') }}">Semua berita →</a></div><div class="news-grid">@forelse($news as $n)<a class="news-card" href="{{ route('public.article',$n->slug) }}"><div class="news-image">@if($n->featured_image)<img src="{{ asset('storage/'.$n->featured_image) }}" loading="lazy">@else<span>{{ $n->organization?->acronym }}</span>@endif</div><div class="news-body"><span class="pill">{{ $n->organization?->acronym }}</span><h3>{{ $n->title }}</h3><p>{{ $n->excerpt }}</p><small>{{ $n->published_at?->format('d M Y') }}</small></div></a>@empty<div class="empty">Belum ada berita.</div>@endforelse</div></section>
<section id="agenda"><div class="public-section-head"><div><span class="eyebrow">AGENDA BERSAMA</span><h2>Kegiatan Terdekat</h2></div><a href="{{ route('public.agenda') }}">Semua agenda →</a></div><div class="agenda-public-grid">@forelse($activities as $a)<div class="card"><span class="pill">{{ $a->organization?->acronym }}</span><h3>{{ $a->title }}</h3><p><b>{{ $a->start_at?->format('d M Y H:i') }}</b><br>{{ $a->location ?: 'Lokasi menyusul' }}</p></div>@empty<div class="empty">Belum ada agenda.</div>@endforelse</div></section>
<section id="ranting"><div class="public-section-head"><div><span class="eyebrow">JARINGAN ORGANISASI</span><h2>Ranting NU</h2></div></div><div class="unit-public-grid">@forelse($rantings as $u)<a class="unit-public" href="{{ route('public.ranting',$u->slug) }}"><div class="unit-logo">PR</div><div><b>{{ $u->name }}</b><small>{{ $u->address ?: 'Kecamatan Tugu' }}</small><span>Lihat profil Ranting →</span></div></a>@empty<div class="empty">Data Ranting belum diaktifkan.</div>@endforelse</div></section>
<section id="unit"><div class="public-section-head"><div><span class="eyebrow">BANOM & LEMBAGA</span><h2>Unit Organisasi</h2></div></div><div class="unit-public-grid">@foreach($units as $u)<a class="unit-public" href="{{ route('public.unit',$u->slug) }}"><div class="unit-logo">{{ substr($u->acronym ?: $u->name,0,2) }}</div><div><b>{{ $u->acronym ?: $u->name }}</b><small>{{ $u->name }}</small><span>nutugu.org/{{ $u->slug }} →</span></div></a>@endforeach</div></section></main>
<footer class="public-footer"><div><b>MWCNU Kecamatan Tugu</b><p>{{ $mwc?->address ?: 'Kecamatan Tugu, Kota Semarang' }}</p></div><div><b>NUTUGU.ORG</b><p>Sistem Informasi & Manajemen Organisasi MWCNU Tugu.</p></div></footer>
@if($popup)<div id="announcementPopup" class="popup-overlay" data-id="{{ $popup->id }}" data-frequency="{{ $popup->frequency }}" data-desktop="{{ $popup->show_desktop ? 1 : 0 }}" data-mobile="{{ $popup->show_mobile ? 1 : 0 }}"><div class="popup-card"><button class="popup-close" type="button">×</button>@if($popup->image_path)<img src="{{ asset('storage/'.$popup->image_path) }}" alt="{{ $popup->title }}">@endif<div class="popup-content"><span class="eyebrow">PENGUMUMAN</span><h2>{{ $popup->title }}</h2><p>{{ $popup->body }}</p>@if($popup->button_label)<a class="btn primary" href="{{ $popup->button_url ?: '#' }}">{{ $popup->button_label }}</a>@endif</div></div></div>@endif
<script src="{{ asset('assets/js/app.js') }}"></script></body></html>
