@extends('layouts.apoteker') {{-- Sesuaikan ini jika pakai layouts.user atau lainnya --}} @section('title', 'Edit Profil Profesional') @push('head') {{-- Pastikan Font Awesome CSS terhubung di layout utama kamu untuk ikon --}} {{-- Pastikan Alpine.js sudah diimport di layout utama kamu, contoh: --}} @endpush @section('content')
{{-- Header Section --}}

Edit Profil Profesional

@if($profile->slug) Lihat Profil Publik @endif
{{-- Flash Messages (from full form submission) --}} @if(session('success')) @endif @if($errors->any()) @endif {{-- GLOBAL FORM for Basic Info & Social Links (if you still want a single submit for these) --}} {{-- You might want to break these down further, or keep them as one main form. For this example, I'll assume you keep Basic Info & Social as one main form. --}} {{-- Hapus atau pastikan tidak ada form lain yang membungkus ini --}} {{-- Atau pastikan ini adalah satu-satunya tag
di halaman kecuali untuk form repeater yang sudah di-AJAX --}} {{-- Ini adalah baris penting untuk keamanan CSRF --}} @csrf {{-- Ini adalah baris PENTING untuk spoofing PUT method --}} {{-- Laravel akan menambahkan input hidden --}} @method('PUT') {{-- Basic Information Section --}}

Informasi Dasar

{{ url('/profil') }}/
@error('slug')

{{ $message }}

@enderror

Slug yang unik untuk profil publik Anda. Gunakan huruf kecil, angka, dan tanda hubung.

@error('headline')

{{ $message }}

@enderror

Deskripsi singkat tentang diri Anda atau pekerjaan Anda.

@error('about')

{{ $message }}

@enderror
@error('status_interest')

{{ $message }}

@enderror
@error('photo_profile')

{{ $message }}

@enderror @if($profile->photo_profile)
Foto Profil Saat Ini
@else

Belum ada foto profil. Unggah satu!

@endif
--- {{-- Social Links Section --}}

Tautan Sosial & Web

{{-- LinkedIn --}}
@error('linkedin')

{{ $message }}

@enderror
{{-- GitHub --}}
@error('github')

{{ $message }}

@enderror
{{-- WhatsApp --}}
@error('whatsapp')

{{ $message }}

@enderror
{{-- Website --}}
@error('website')

{{ $message }}

@enderror
{{-- ORCID --}}
@error('orcid')

{{ $message }}

@enderror
{{-- YouTube --}}
@error('youtube')

{{ $message }}

@enderror
{{-- TikTok --}}
@error('tiktok')

{{ $message }}

@enderror
{{-- Facebook --}}
@error('facebook')

{{ $message }}

@enderror
{{-- Instagram --}}
@error('instagram')

{{ $message }}

@enderror
--- {{-- Admin Only Settings (Is Verified) --}} @if(Auth::user()->hasRole('admin')) {{-- pakai role check kalau kamu pakai spatie/roles --}}

Pengaturan Admin

Centang untuk menandai profil ini sebagai terverifikasi.

@endif --- {{-- Tampilkan di Direktori --}}
Jika dinonaktifkan, profil Anda tidak akan tampil di direktori publik.
{{-- Submit Button for Basic Info & Social Links --}}
--- {{-- Dynamic Sections (Skills, Experience, Education, Portfolio) --}}
{{-- SKILLS SECTION (NEW FORM) --}}
@csrf @method('PUT') {{-- Gunakan PUT/PATCH jika ingin lebih RESTful --}}

Skills

{{-- Error messages for skills if any (from AJAX response) --}}
{{-- PREVIEW SECTION UNTUK SKILLS --}}

Pratinjau Skills

Belum ada skills yang ditambahkan.

{{-- AKHIR PREVIEW SECTION --}}
--- {{-- EXPERIENCE SECTION (NEW FORM) --}}
@csrf @method('PUT')

Experience

{{-- Error messages for experience --}}
{{-- PREVIEW SECTION UNTUK EXPERIENCE --}}

Pratinjau Experience

Belum ada pengalaman yang ditambahkan.

{{-- AKHIR PREVIEW SECTION --}}
--- {{-- EDUCATION SECTION (NEW FORM) --}}
@csrf @method('PUT')

Education

{{-- Error messages for education --}}
{{-- PREVIEW SECTION UNTUK EDUCATION --}}

Pratinjau Education

Belum ada pendidikan yang ditambahkan.

{{-- AKHIR PREVIEW SECTION --}}
--- {{-- PORTFOLIO SECTION (NEW FORM) --}}
@csrf @method('PUT')

Portfolio

{{-- Error messages for portfolio --}}
{{-- PREVIEW SECTION UNTUK PORTFOLIO --}}

Pratinjau Portfolio

Belum ada proyek portfolio yang ditambahkan.

{{-- AKHIR PREVIEW SECTION --}}
@endsection @push('scripts') {{-- Tambahkan meta tag CSRF token jika belum ada di layout utama --}} @endpush