kop laporan: format resmi sekolah (logo lambang Jatim kiri + 6 baris teks tengah + garis hitam tebal) — settings Kop Surat baru + upload logo kop

This commit is contained in:
Sari
2026-08-03 09:07:50 +07:00
parent e18fe3deb2
commit 6f430f35d7
4 changed files with 100 additions and 16 deletions
@@ -28,6 +28,13 @@ class SettingsController extends Controller
'kepala_sekolah_nip' => ['nullable', 'string', 'max:50'],
'bk_koordinator_name' => ['nullable', 'string', 'max:255'],
'wa_notification_template' => ['nullable', 'string', 'max:3000'],
// Kop surat
'school_government' => ['nullable', 'string', 'max:255'],
'school_agency' => ['nullable', 'string', 'max:255'],
'school_full_name' => ['nullable', 'string', 'max:255'],
'school_address_detail' => ['nullable', 'string', 'max:500'],
'school_website_email' => ['nullable', 'string', 'max:500'],
'school_postal' => ['nullable', 'string', 'max:20'],
]);
foreach ($validated as $key => $value) {
@@ -39,6 +46,11 @@ class SettingsController extends Controller
Setting::setValue('school_logo', $path, 'school', 'Logo sekolah');
}
if ($request->hasFile('kop_logo')) {
$path = $request->file('kop_logo')->store('school', 'public');
Setting::setValue('kop_logo', $path, 'school', 'Logo kop surat');
}
if ($request->hasFile('login_background')) {
$path = $request->file('login_background')->store('school', 'public');
Setting::setValue('login_background', $path, 'school', 'Background halaman login');