@extends('layouts.dashboard.template') @section('content')

Edit Kartu Informasi Humas

Edit Kartu: {{ $pusatInformasi->judul ?: 'Kartu #' . $pusatInformasi->id }}
Kembali
@csrf @method('PUT') {{-- 1. Nama / Judul Kartu --}}
@error('judul')
{{ $message }}
@enderror
{{-- 2. Pilihan Sumber Background Image --}}

Pilih salah satu: Anda dapat mengunggah file gambar baru ATAU menempelkan link Google Drive / URL Gambar.

{{-- Current background indicator --}} @if($pusatInformasi->gambar || $pusatInformasi->link_drive)
@if($pusatInformasi->image_url)
@endif
Background Aktif Saat Ini: @if($pusatInformasi->gambar) File Upload @elseif($pusatInformasi->link_drive) Google Drive @endif
@endif {{-- Opsi A: Upload File --}}
Kosongkan jika tidak ingin mengubah file gambar yang sudah ada. Maks 20 MB.
@error('gambar')
{{ $message }}
@enderror
— ATAU —
{{-- Opsi B: Link Google Drive --}}
Tempel link sharing Google Drive dengan akses publik ("Anyone with the link").
@error('link_drive')
{{ $message }}
@enderror
{{-- 3. Pengaturan Tombol & Link Tujuan --}}

Pada tampilan frontend, kartu ini hanya akan menampilkan background dan tombol ini. Pengunjung yang menekan tombol akan diarahkan ke link di bawah.

@error('button_text')
{{ $message }}
@enderror
Tautan website, dokumen, WhatsApp, form, atau drive.
@error('button_url')
{{ $message }}
@enderror
target_blank) ? 'checked' : '' }}>
{{-- 4. Urutan & Status Aktif --}}
Semakin kecil angkanya, semakin di depan posisinya.
@error('urutan')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }}>
{{-- Submit Button --}}
Batal
{{-- Live Card Preview Side Box --}}
Live Preview Kartu
Simulasi tampilan kartu di halaman Humas
image_url) . "') center/cover no-repeat" : '#e2e8f0' }}; border: 1px solid rgba(0,0,0,0.1); transition: all 0.3s ease;"> {{-- Overlay --}}
{{-- Button --}}
{{ $pusatInformasi->button_text ?? 'Lihat' }}
{{ $pusatInformasi->judul ?: 'Judul Kartu' }} {{ $pusatInformasi->button_url ?: 'Link belum diatur' }}
@endsection @push('scripts') @endpush