@extends('layouts.web') @section('content')

Pengaturan Website

Atur nama aplikasi, logo, favicon, dan warna standar

@csrf @method('PUT')

Pengaturan Aplikasi

@php $logoPath = $appLogo ?? 'assets/images/logo.png'; $fallbackLogo = file_exists(public_path('assets/images/logo_1762164536.png')) ? asset('assets/images/logo_1762164536.png') : 'data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2280%22 height=%2280%22%3E%3Crect fill=%22%23f0f0f0%22 width=%2280%22 height=%2280%22/%3E%3C/svg%3E'; if (file_exists(public_path($logoPath))) { $logoUrl = asset($logoPath); } elseif (file_exists(public_path('assets/images/logo_1762164536.png'))) { $logoUrl = asset('assets/images/logo_1762164536.png'); } else { // Hindari request 404: langsung gunakan placeholder $logoUrl = $fallbackLogo; } $defaultLogoUrl = $fallbackLogo; @endphp Logo

Format: JPG, PNG, GIF, SVG (Max: 2MB)

@php $faviconPath = $appFavicon ?? 'assets/images/logo.png'; $fallbackFavicon = file_exists(public_path('assets/images/logo_1762164536.png')) ? asset('assets/images/logo_1762164536.png') : 'data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2248%22 height=%2248%22%3E%3Crect fill=%22%23f0f0f0%22 width=%2248%22 height=%2248%22/%3E%3C/svg%3E'; if (file_exists(public_path($faviconPath))) { $faviconUrl = asset($faviconPath); } elseif (file_exists(public_path('assets/images/logo_1762164536.png'))) { $faviconUrl = asset('assets/images/logo_1762164536.png'); } else { // Hindari request 404: langsung gunakan placeholder $faviconUrl = $fallbackFavicon; } $defaultFaviconUrl = $fallbackFavicon; @endphp Favicon

Format: JPG, PNG, GIF, SVG, ICO (Max: 1MB)

@php $heroPath1 = \App\Models\Setting::get('home_hero_background_1') ?? \App\Models\Setting::get('home_hero_background', 'assets/images/hero/defoult.webp'); $heroUrl1 = asset($heroPath1 ?? 'assets/images/hero/defoult.webp'); @endphp Hero 1

Gambar 1. Disarankan rasio 16:9, minimal 1200x675.

@php $heroPath2 = \App\Models\Setting::get('home_hero_background_2'); $heroUrl2 = asset($heroPath2 ?? 'assets/images/hero/defoult.webp'); @endphp Hero 2

Gambar 2. Disarankan rasio 16:9, minimal 1200x675.

@php $heroPath3 = \App\Models\Setting::get('home_hero_background_3'); $heroUrl3 = asset($heroPath3 ?? 'assets/images/hero/defoult.webp'); @endphp Hero 3

Gambar 3. Disarankan rasio 16:9, minimal 1200x675.

Format: JPG, PNG, WEBP (Max: 4MB per gambar). Jika tidak diunggah, sistem akan menggunakan gambar default.

@php $heroVisualPath = \App\Models\Setting::get('home_hero_visual'); $heroVisualUrl = $heroVisualPath && file_exists(public_path($heroVisualPath)) ? asset($heroVisualPath) : asset('assets/images/hero/defoult.webp'); @endphp Hero Visual

Gambar kolom kanan hero. Disarankan rasio 16:9, minimal 1200x675.

Pengaturan Warna

@foreach($colorGroups as $groupName => $groupColors)

{{ $groupName }}

@if(strtolower($groupName) === 'navbar') @endif
@foreach($groupColors as $setting)
@if($setting->description)

{{ $setting->description }}

@endif
@endforeach
@endforeach
Batal

Preview Warna

Primary Success Danger Warning

Upload APK Android

@php $apkPath = \App\Models\Setting::get('app_apk_path'); $apkExists = $apkPath && file_exists(public_path($apkPath)); @endphp

Format: APK (Max: 200MB)

@if($apkExists) @php $sizeBytes = @filesize(public_path($apkPath)); $sizeMB = $sizeBytes ? number_format($sizeBytes / 1048576, 2) : null; $uploadedTs = @filemtime(public_path($apkPath)); $uploadedAt = $uploadedTs ? \Carbon\Carbon::createFromTimestamp($uploadedTs)->format('d M Y H:i') : null; @endphp
APK saat ini: {{ basename($apkPath) }} Ukuran: {{ $sizeMB ? ($sizeMB.' MB') : '—' }} • Diunggah: {{ $uploadedAt ?? '—' }} Download APK Saat Ini
@else Belum ada APK diunggah @endif
@push('scripts') @endpush @endsection