@php // Fetch dynamic Profil Desa data (Singleton / Fallback) $profile = $profile ?? (\Schema::hasTable('village_profiles') ? \DB::table('village_profiles')->first() : null); $namaDesa = ($profile && isset($profile->village_name)) ? $profile->village_name : 'Desa Siofabanua'; $kecamatan = ($profile && isset($profile->district_name)) ? $profile->district_name : 'Tuhemberua'; $kabupaten = ($profile && isset($profile->regency_name)) ? $profile->regency_name : 'Nias Utara'; $provinsi = ($profile && isset($profile->province_name)) ? $profile->province_name : 'Sumatera Utara'; $alamatKantor = ($profile && isset($profile->address)) ? $profile->address : 'Jalan Arah Tuhemberua Km. 28'; $kodePos = ($profile && isset($profile->postal_code)) ? $profile->postal_code : '22852'; $teleponDesa = ($profile && isset($profile->phone)) ? $profile->phone : '-'; $emailDesa = ($profile && isset($profile->email)) ? $profile->email : '-'; $websiteDesa = ($profile && isset($profile->website)) ? $profile->website : '-'; $namaKades = ($profile && isset($profile->signer_name)) ? $profile->signer_name : "WA'OZATULO ZEGA, S.Pd."; $jabatanKades = ($profile && isset($profile->signer_position)) ? $profile->signer_position : "Pj. Kepala Desa Siofabanua"; $nipKades = ($profile && isset($profile->signer_nip)) ? $profile->signer_nip : '-'; $logoPath = asset('images/logo.png'); if ($profile && isset($profile->logo_path) && !empty($profile->logo_path)) { $logoPath = asset('storage/' . $profile->logo_path); } $orientation = $orientation ?? 'portrait'; $printedBy = $printedBy ?? (Auth::user()->name ?? 'Admin'); $printDate = \Carbon\Carbon::now()->translatedFormat('d F Y'); $printTime = \Carbon\Carbon::now()->translatedFormat('H:i') . ' WIB'; @endphp @yield('title', $title ?? 'Laporan Resmi SIAD') - {{ $namaDesa }} @stack('report_css')
Preview Laporan Resmi - SIAD Desa Siofa Banua

PEMERINTAH KABUPATEN {{ strtoupper($kabupaten) }}

KECAMATAN {{ strtoupper($kecamatan) }}

PEMERINTAH DESA {{ strtoupper($namaDesa) }}

{{ $alamatKantor }} Kode Pos {{ $kodePos }} | Telp: {{ $teleponDesa }} | Email: {{ $emailDesa }}


@yield('report_title', $title ?? 'LAPORAN DATA ADMINISTRASI DESA')

@if(isset($subtitle) || View::hasSection('report_subtitle'))

@yield('report_subtitle', $subtitle ?? '')

@endif
Tanggal Cetak : {{ $printDate }}
Dicetak Oleh : {{ $printedBy }}
Waktu Cetak : {{ $printTime }}
Periode Data : {{ $periode ?? 'Seluruh Data Terdaftar' }}
@if(View::hasSection('report_summary'))
@yield('report_summary')
@endif
@yield('content')
Siofabanua, {{ $printDate }}
Mengetahui,
{{ $jabatanKades }}
{{ $namaKades }}
@if($nipKades && $nipKades !== '-')
NIP. {{ $nipKades }}
@endif
@stack('report_js')