@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
================================================== --}}
@php
$adminName =
$admin->name ?? 'Administrator';
$adminInitial =
strtoupper(
substr(
$adminName,
0,
1
)
);
@endphp
{{ $adminInitial }}
{{ $adminName }}
{{ $admin->email ?? '-' }}
Administrator
{{-- =================================================
CHANGE PASSWORD
================================================== --}}
Password requirements
-
Minimum 8 characters
-
Use a strong and unique password
-
Do not share your administrator password
{{-- =====================================================
ADMIN MANAGEMENT
====================================================== --}}
{{-- =================================================
ADD ADMIN FORM
================================================== --}}
{{-- =================================================
EXISTING ADMINS
================================================== --}}
@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)
@endif
@empty
No administrator accounts found.
@endforelse
{{-- =====================================================
SECURITY INFORMATION
====================================================== --}}
🔒
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