@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) {{-- Card Header & Tombol Action --}}
{{-- Form Content --}}
{{-- Form diarahkan menggunakan PUT untuk kebutuhan Save setelah klik Edit --}}
@csrf @method('PUT')

View {{ $title_menu }}


{{-- LAYOUT FORM HARDCODE (2 KOLOM) --}}
{{-- KOLOM KIRI --}}
{{-- Contoh Text Input (Note: Semua diberi class 'form-input' agar mudah diseleksi JS) --}}
@error('nama_lengkap')

{{ $message }}

@enderror
{{-- Contoh Email --}}
@error('email')

{{ $message }}

@enderror
{{-- Contoh Input Date --}}
@error('tanggal_lahir')

{{ $message }}

@enderror
{{-- KOLOM KANAN --}}
{{-- Contoh Dropdown / Enum --}}
@error('jabatan')

{{ $message }}

@enderror
{{-- Contoh Field File (Hanya dimunculkan inputnya jika di-edit) --}}
{{-- Link Download / Lihat (Tampil di View Mode) --}}
@if(!empty($list->dokumen)) Lihat File @else Tidak ada file @endif
{{-- Form Upload (Sembunyi by default, muncul saat Edit mode) --}} @error('dokumen')

{{ $message }}

@enderror
{{-- Contoh Textarea --}}
@error('alamat')

{{ $message }}

@enderror

{{-- check flag js on dmenu --}} @if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') @include('js.' . $dmenu) @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('js') @endpush