@extends('layouts.app') @section('content') @include('Partials.sidebar')
@include('Partials.header')

✏️ Edit — {{ $adminProfile->name }}

← Back to Admins
@if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif
{{-- ── Edit Profile Form ── --}}
Profile Information
@csrf @method('PUT') {{-- Profile Photo --}}
@if($adminProfile->profile_photo) @else
{{ strtoupper(substr($adminProfile->name, 0, 1)) }}
@endif
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
{{-- Role — super admin can change --}}
@error('role')
{{ $message }}
@enderror
{{-- Status --}}
@error('status')
{{ $message }}
@enderror
Cancel
{{-- ── Reset Password ── --}}
Reset Password
@csrf @method('PUT')
{{-- Quick Info --}}
Info

Created: {{ $adminProfile->created_at?->format('d M Y') }}

Last Updated: {{ $adminProfile->updated_at?->format('d M Y') }}

Current Status: @if($adminProfile->status === 'active') Active @else Inactive @endif

@include('Partials.footer') @endsection @push('scripts') @endpush