@extends('admin.layouts.app') @section('title', 'My Profile') @section('content') @php $isAdmin = $accountType === 'admin'; $displayName = $isAdmin ? $account->name : $account->full_name; $roleName = $isAdmin ? $account->role : ($account->designation->name ?? 'Staff'); @endphp
{{ strtoupper(mb_substr($displayName, 0, 1)) }}

{{ $displayName }}

{{ $account->status }}

{{ $roleName }} @unless($isAdmin)• {{ $account->employee_id }}@endunless

Account Information

@if($isAdmin)
Account TypeAdministrator
Role{{ $account->role }}
@else
Employee ID{{ $account->employee_id }}
Designation{{ $roleName }}
Joining Date{{ $account->joining_date->format('d M Y') }}
@endif

Contact Information

Mobile Number{{ $account->mobile ?: 'Not provided' }}
Email Address{{ $account->email }}
@unless($isAdmin)
Alternate Mobile{{ $account->alternate_mobile ?: 'Not provided' }}
@endunless
@unless($isAdmin)

Personal Information

Gender{{ $account->gender }}
Date of Birth{{ $account->date_of_birth->format('d M Y') }}

Address

{{ $account->address }}

{{ $account->city }}, {{ $account->state }}

{{ $account->pincode }}
@endunless
@endsection