@extends('admin.layouts.app') @section('title', 'Profile Settings | EMI CREDITS') @section('page-title', 'Profile Settings') @section( 'page-description', 'Manage your admin profile information and password' ) @section('content') @push('styles') @endpush
{{-- ===================================================== PAGE HEADING ====================================================== --}}

Profile Settings

Update your administrator account information and security settings.

{{-- ===================================================== SUCCESS MESSAGE ====================================================== --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('password_success'))
{{ session('password_success') }}
@endif @if(session('admin_success'))
{{ session('admin_success') }}
@endif {{-- ===================================================== GENERAL ERROR ====================================================== --}} @if($errors->any())
! Please check the highlighted fields below.
@endif {{-- ===================================================== PROFILE GRID ====================================================== --}}
{{-- ================================================= PROFILE INFORMATION ================================================== --}}
👤

Profile Information

Manage your basic administrator details.

@php $adminName = $admin->name ?? 'Administrator'; $adminInitial = strtoupper( substr( $adminName, 0, 1 ) ); @endphp
{{ $adminInitial }}
@csrf @method('PUT') {{-- NAME --}}
@error('name') {{ $message }} @enderror
{{-- EMAIL --}}
@error('email') {{ $message }} @enderror
{{-- ================================================= CHANGE PASSWORD ================================================== --}}
🔐

Change Password

Keep your administrator account secure.

@csrf @method('PUT') {{-- CURRENT PASSWORD --}}
@error('current_password') {{ $message }} @enderror
{{-- NEW PASSWORD --}}
@error('password') {{ $message }} @enderror
{{-- CONFIRM PASSWORD --}}
@error('password_confirmation') {{ $message }} @enderror
Password requirements
  • Minimum 8 characters
  • Use a strong and unique password
  • Do not share your administrator password
{{-- ===================================================== ADMIN MANAGEMENT ====================================================== --}}
👥

Admin Management

Create and manage administrator accounts.

{{-- ================================================= ADD ADMIN FORM ================================================== --}} {{-- ================================================= EXISTING ADMINS ================================================== --}}
Administrators {{ $admins->count() }} {{ $admins->count() === 1 ? 'account' : 'accounts' }}
@forelse($admins as $adminUser) @php $adminInitial = strtoupper( substr( $adminUser->name ?? 'A', 0, 1 ) ); @endphp
{{ $adminInitial }}
{{ $adminUser->name }} {{ $adminUser->email }} @if($adminUser->mobile) {{ $adminUser->mobile }} @endif
@if($adminUser->id === $admin->id) Current Admin @else Active @endif {{-- EDIT BUTTON --}} ✏ Edit {{-- DELETE BUTTON --}} @if($adminUser->id !== $admin->id)
@csrf @method('DELETE')
@endif
@empty
No administrator accounts found.
@endforelse
{{-- ===================================================== SECURITY INFORMATION ====================================================== --}}
🛡️

Account Security

Basic security information for your administrator account.

🔒
Secure Password Storage Your password is stored securely using Laravel password hashing.
📧
Account Email {{ $admin->email ?? '-' }}
📅
Account Created @if($admin->created_at) {{ $admin->created_at->format( 'd M Y, h:i A' ) }} @else - @endif
@endsection