@extends('layouts.app') @section('title', 'Admin Panel — Chess Portfolio CRUD') @section('content')

COMMAND BOARD // CRUD

{{ $profile?->nama ?? auth()->user()->name }}

@csrf
@if (session('admin_success'))
{{ session('admin_success') }}
@endif @if ($errors->any())

Please review the following errors:

@foreach ($errors->all() as $error)

• {{ $error }}

@endforeach
@endif
@php $stats = [ ['label' => 'Education', 'count' => $educations->count(), 'tab' => 'educations'], ['label' => 'Experience', 'count' => $experiences->count(), 'tab' => 'experiences'], ['label' => 'Skills', 'count' => $skills->count(), 'tab' => 'skills'], ['label' => 'Portfolios', 'count' => $portfolios->count(), 'tab' => 'portfolios'], ['label' => 'Socials', 'count' => $socialMedias->count(), 'tab' => 'socials'], ['label' => 'Inbox / Notes', 'count' => $contactMessages->count() + $comments->count(), 'tab' => 'inbox'], ]; @endphp @foreach ($stats as $stat) @endforeach
@php $tabs = [ 'profile' => 'Profile', 'educations' => 'Education', 'experiences' => 'Experience', 'skills' => 'Skills & Chess', 'portfolios' => 'Projects / Certs', 'socials' => 'Social Media', 'inbox' => 'Inbox & Comments', ]; @endphp @foreach ($tabs as $key => $label) @endforeach

Profile & Main Details

Updating fields here immediately refreshes Hero, About, ID Card, CV, and Footer.

@csrf @method('PUT')
@if (filled($profile?->foto_profil))

Current photo: {{ $profile->foto_profil }}

@endif
@endsection @push('scripts') @endpush