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

Edit Pengaturan Topbar

Edit Pengaturan Topbar
@csrf @method('PUT')
{{-- Section 1: Badge Topbar --}}
1. Badge Kiri Topbar
@error('badge_text')
{{ $message }}
@enderror
Nama class Bootstrap Icons (misal: bi-shield-check, bi-mortarboard-fill) @error('badge_icon')
{{ $message }}
@enderror
{{-- Section 2: Informasi & Lokasi --}}
2. Informasi Kampus & Jam Operasional
@error('alamat')
{{ $message }}
@enderror
@error('jam_operasional')
{{ $message }}
@enderror
@error('telepon')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
{{-- Section 3: Dynamic Media Sosial Repeater (+) --}}
3. Akun Media Sosial Topbar (Dinamis)
@php $existingSosmed = old('social_media', $topbar->social_media ?? []); if (empty($existingSosmed)) { $existingSosmed = [ ['platform' => 'Instagram', 'icon' => 'bi-instagram', 'url' => 'https://instagram.com'], ['platform' => 'YouTube', 'icon' => 'bi-youtube', 'url' => 'https://youtube.com'], ]; } @endphp @foreach($existingSosmed as $index => $item)
@endforeach
Klik tombol + Tambah Media Sosial untuk menambah platform baru sesuai kebutuhan.
{{-- Status Aktif --}}
is_active) ? 'checked' : '' }} style="cursor: pointer;">
Batal
@endsection @push('scripts') @endpush