@extends('admin.settings.layout') @php use App\Models\Setting; $debug_mode = true; // Get fresh data from DB for preview $printLogo = Setting::where('key', 'print_logo')->first()?->value; $institutionName = Setting::where('key', 'institution_name')->first()?->value; $institutionAddress = Setting::where('key', 'institution_address')->first()?->value; @endphp @section('settings_content')
Pengaturan Cetak
@if($debug_mode)
Debug: print_header={{ $settings->where('key', 'print_header')->first()?->value }} | print_logo={{ $settings->where('key', 'print_logo')->first()?->value }}
@endif
@csrf
Pengaturan ini mempengaruhi tampilan saat mencetak dokumen seperti KRS, KHS, dan Transkrip.
@foreach($settings as $setting)
value == '1' ? 'checked' : '' }}>
@endforeach

Preview Header Cetak
@if($printLogo == '1')
LOGO
@endif
{{ $institutionName ?? 'Universitas XYZ' }}
{{ $institutionAddress ?? 'Alamat belum diisi' }}

@endsection @push('scripts') @if($debug_mode) @endif @endpush