{{-- resources/views/welcome.blade.php --}} LPKA Kelas II Jakarta @vite(['resources/css/app.css', 'resources/js/app.js']) {{-- Top bar --}}
LPKA Kelas II Jakarta
Portal kegiatan di LPKA Kelas II Jakarta
@if (Route::has('login')) {{-- Jika sudah login --}} @auth Dashboard @endauth {{-- Jika belum login --}} @guest Log in @endguest @endif
{{-- Hero --}}
Update kegiatan → Ringkas → Informatif

Kegiatan di LPKA Kelas II Jakarta - satu portal.

LPKA Kelas II Jakarta menyediakan informasi terkini terkait pembelajaran, seminar, webinar, dan kegiatan edukatif lainnya.

{{-- Search (UI only; kalau mau beneran, sambungkan ke route search) --}} {{-- CTA --}}
{{-- Right side: Categories from controller --}}
Kategori
Browse cepat
@if(!empty($categories) && $categories->count()) @foreach($categories as $cat)
{{ $cat }}
Lihat kegiatan
@endforeach @else @php $fallbackCats = [ ['Kegiatan', 'Belajar, Bermain'], ['Pembinaan', 'Belajar, Hafalan'], ['Perikanan', 'Budidaya'], ['Pertanian', 'Bercocok tanam'], ['Seni', 'Musik & Menggambar'], ['Olahraga', 'Volley, Sepak Bola'], ]; @endphp @foreach ($fallbackCats as $c)
{{ $c[0] }}
{{ $c[1] }}
@endforeach @endif
Menampilkan sampai 6 kategori dari kegiatan published.
{{-- Main content --}}
{{-- Featured --}} {{-- Latest list (uses $latest from controller) --}}
{{-- (kolom search) --}} {{-- Form Search Welcome --}}
Reset
{{-- Grid Hasil Search --}} {{-- Grid Hasil Search --}} @if(isset($query))

Hasil pencarian untuk: "{{ $query }}"

@forelse($kegiatan as $item)
{{-- Judul --}}

{{ $item->title }}

{{-- Deskripsi --}}

{{ \Illuminate\Support\Str::limit($item->description ?? '-', 80) }}

{{-- Link & harga --}}
Lihat detail → {{ $item->price_type == 'gratis' ? 'Gratis' : 'Berbayar' }}
@empty

Tidak ada kegiatan yang sesuai.

@endforelse
@endif
@php $latestList = collect($latest ?? [])->take(6); @endphp @if($latestList->count()) @foreach($latestList as $l)
{{ $l->category ?? 'General' }} @if(!empty($l->type)) {{ $l->type }} @endif - {{ optional($l->start_at)->format('d M Y, H:i') ?? now()->format('d M Y') }} @if(!empty($l->location_name) || !empty($l->location)) - {{ $l->location_name ?? $l->location }} @endif

{{ $l->title }}

{{ \Illuminate\Support\Str::limit($l->excerpt ?? strip_tags($l->description ?? ''), 120) }}

Lihat detail → @if($l->price_type === 'free') Gratis @elseif(!empty($l->price_amount)) Rp {{ number_format((int) $l->price_amount, 0, ',', '.') }} @else {{ $l->price_type ? ucfirst($l->price_type) : '→' }} @endif
@endforeach @endif
{{-- Right: CTA --}}
{{-- Footer --}}