@extends('admin.layouts.master') @section('title', 'Edit Employee') @section('css') @endsection @section('content') {{-- ── Header ── --}}

Edit Employee

Editing: {{ $employee->name }} @if($employee->employee_id)  ·  {{ $employee->employee_id }} @endif

View Profile Back to List
@csrf @method('PUT') @include('admin.partial.validation-error') {{-- ══════════════════════════ 1. Personal Information ══════════════════════════ --}}
Personal Information
{{-- Photo zone ── --}}

Profile Photo

@if($employee->image)
Current photo saved
@endif

Choose a new photo to replace the current one.
Square JPG or PNG. Max 2 MB.

@error('name'){{ $message }}@enderror
@error('email'){{ $message }}@enderror
@if($employee->cv) Current: View CV @endif
{{-- ══════════════════════════ 2. Employment Details ══════════════════════════ --}}
Employment Details
{{-- ══════════════════════════ 3. Address ══════════════════════════ --}}
Address Information
{{-- ══════════════════════════ 4. Social Media ══════════════════════════ --}}
Social Media Links
{{-- ══════════════════════════ 5. Additional Notes ══════════════════════════ --}}
Additional Information
{{-- ══════════════════════════ 6. Journalist Info ══════════════════════════ --}}
Journalist Information
@php $isJournalist = old('is_journalist', $employee->is_journalist); @endphp
{{-- ══════════════════════════ 7. User Account ══════════════════════════ --}}
User Account
@php $hasUser = $employee->user !== null; $addUser = old('add_user', $hasUser ? 1 : 0); @endphp
@if($hasUser)
Leave password fields empty to keep the current password unchanged.
@endif
@error('username'){{ $message }}@enderror
@error('password'){{ $message }}@enderror
@error('role_id'){{ $message }}@enderror
{{-- ── Actions ── --}}
View Profile Cancel
{{-- ══ Designation Modal ══ --}} {{-- ══ Department Modal ══ --}} @endsection @section('js') @endsection