@extends('admin.layouts.app') @section('title', 'Kelola Profil Masjid') @section('content')

Kelola Profil Masjid

{{-- Tombol edit semua (opsional) --}} Edit Semua
@if(session('success')) @endif
Informasi Umum
{{-- TOMBOL MODAL --}}
{{-- Isi card tetap sama seperti sebelumnya --}} @if($profile)
Kapasitas Jamaah
{{ $profile->capacity ?? 'Belum diisi' }}
Tahun Berdiri
{{ $profile->year ?? 'Belum diisi' }}
Kegiatan Rutin
{{ $profile->routine_activities ?? 'Belum diisi' }}
Informasi Publik
{{ $profile->public_info ?? 'Belum diisi' }}
@else
Profil Masjid Belum Diisi

Klik tombol "Edit Profil" untuk mengisi data pertama

Mulai Isi Profil
@endif
Tentang Masjid
{{-- TOMBOL MODAL --}}
{{-- Isi card tentang masjid --}} @if($profile && $profile->about_text_1)
Deskripsi Utama

{{ $profile->about_text_1 }}

@if($profile->about_text_2)
Deskripsi Tambahan

{{ $profile->about_text_2 }}

@endif @else

Deskripsi masjid belum diisi

@endif
Visi & Misi
{{-- TOMBOL MODAL --}}
{{-- Isi card visi misi --}} @if($profile)
Visi

{{ $profile->visi ? $profile->visi : 'Belum diisi' }}

Misi

{{ $profile->misi ? $profile->misi : 'Belum diisi' }}

@else

Visi dan misi belum diisi

@endif
Lokasi & Maps
@if($profile)
Alamat

{{ $profile->address ?? 'Belum diisi' }}

Jam Operasional

{{ $profile->operating_hours ? $profile->operating_hours : 'Belum diisi' }}

{{-- TAMBAH BAGIAN INI UNTUK MAPS EMBED --}} @if($profile->maps_embed)
Peta Lokasi
{!! $profile->maps_embed !!}
Peta interaktif lokasi masjid
@endif @if($profile->maps_url)
Google Maps URL
{{-- Tombol copy (optional) --}}
@endif @else

Informasi lokasi belum diisi

@endif
Gambar Masjid
@if($profile && $profile->about_image) Gambar Masjid

Gambar tersedia

@else

Belum ada gambar

@endif
Fasilitas
{{-- TOMBOL MODAL --}}
{{-- Isi card fasilitas --}} @php $facilitiesArray = []; if ($profile && $profile->facilities) { if (is_string($profile->facilities)) { $facilitiesArray = json_decode($profile->facilities, true) ?? []; } else { $facilitiesArray = (array) $profile->facilities; } } @endphp @if(!empty($facilitiesArray))
@foreach($facilitiesArray as $facility)
{{ $facility['name'] ?? 'Fasilitas' }}
@if(!empty($facility['description'])) {{ $facility['description'] }} @endif
@endforeach
@else

Belum ada fasilitas

@endif
Kontak
{{-- TOMBOL MODAL --}}
{{-- Isi card kontak --}} @if($profile && $profile->whatsapp)
{{ $profile->whatsapp }}
Nomor WhatsApp
@else

Kontak belum diisi

@endif
@push('scripts') @endpush @endsection