@extends('layouts.superadmin') @section('title', 'Kelola Masjid') @section('header_title')

Daftar Masjid Terdaftar

@endsection @section('header_actions') @endsection @push('styles') {{-- Leaflet.js CSS --}} @endpush @section('content')
@if($tab == 'terdaftar')
@forelse($masjid as $index => $item) @empty @endforelse
No Nama Masjid Alamat Admin Masjid Tahun Aktif Koordinat GPS Status Aksi
{{ $masjid->firstItem() + $index }} {{ $item->nama_masjid }} {{ $item->alamat_masjid ?? '-' }} {{ $item->nama_admin ?? 'Admin' }} {{ $item->created_at ? $item->created_at->format('Y') : date('Y') }} @if($item->latitude && $item->longitude) {{ number_format($item->latitude, 5) }}, {{ number_format($item->longitude, 5) }} @else Belum diatur @endif Aktif
Belum ada masjid terdaftar.
Menampilkan {{ $masjid->firstItem() ?? 0 }}-{{ $masjid->lastItem() ?? 0 }} dari {{ $masjid->total() }} masjid
{{ $masjid->links('pagination::bootstrap-5') }}
@else
@forelse($pengajuan as $index => $item) @empty @endforelse
No Nama Masjid Alamat Nama Admin No WA Tanggal Status Aksi
{{ $pengajuan->firstItem() + $index }} {{ $item->nama_masjid }} {{ $item->alamat_masjid }} {{ $item->nama_admin_masjid }} {{ $item->no_wa_admin }} {{ \Carbon\Carbon::parse($item->tanggal_pengajuan)->format('d M Y') }} @if($item->status_pengajuan == 'pending') Pending @elseif($item->status_pengajuan == 'approved' || $item->status_pengajuan == 'disetujui') Disetujui @else Ditolak @endif
@if($item->status_pengajuan == 'pending')
@csrf
@csrf
@endif
Belum ada pengajuan masjid.
Menampilkan {{ $pengajuan->firstItem() ?? 0 }}-{{ $pengajuan->lastItem() ?? 0 }} dari {{ $pengajuan->total() }} data
{{ $pengajuan->links('pagination::bootstrap-5') }}
@endif {{-- ===== MODAL NOTIFIKASI WHATSAPP ===== --}} @if(session('wa_notif')) @php $wa = session('wa_notif'); @endphp
@endif @endsection @section('modals') {{-- ============================================================ --}} {{-- MODAL TAMBAH MASJID (dengan Peta Leaflet.js) --}} {{-- ============================================================ --}} {{-- ============================================================ --}} {{-- MODAL EDIT KOORDINAT MASJID (dengan Peta Leaflet.js) --}} {{-- ============================================================ --}} @endsection @push('scripts') {{-- Leaflet.js Library --}} @endpush