@php use Carbon\Carbon; @endphp @extends('layouts/layoutMaster') @section('title', __('User Profile')) @section('vendor-style') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-checkboxes-jquery/datatables.checkboxes.scss' ]) @endsection @section('page-style') @vite(['resources/assets/vendor/scss/pages/page-profile.scss']) @endsection @section('vendor-script') @vite(['resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js']) @endsection @section('page-script') @endsection @section('content')
@lang('Personal Information')
  • @lang('Full Name'): {{ $user['first_name'] }} {{ $user['last_name'] }}
  • @if($user->dob)
  • @lang('Date of Birth'): {{ Carbon::parse($user->dob)->format('M d, Y') }}
  • @endif @if($user->gender)
  • @lang('Gender'): {{ $user->gender }}
  • @endif
  • @lang('Language'): {{ strtoupper($user['language']) }}
@lang('Contact Information')
  • @lang('Email'): {{ $user['email'] }}
  • @if($user->phone)
  • @lang('Phone'): {{ $user['phone'] }}
  • @endif @if($user->alternate_number)
  • @lang('Alternate'): {{ $user->alternate_number }}
  • @endif
@lang('System Info')
  • @lang('Role'): {{ $role->name }}
  • @lang('Status'): {{ __(ucfirst($user->status?->value ?? 'Unknown')) }}
  • @if($user->code)
  • @lang('Employee Code'): {{ $user->code }}
  • @endif
@if($user->date_of_joining || $user->anniversary_date)
@lang('Work Information')
    @if($user->date_of_joining)
  • @lang('Joining Date'): {{ Carbon::parse($user->date_of_joining)->format('M d, Y') }}
  • @lang('Experience'): {{ Carbon::parse($user->date_of_joining)->diffForHumans(null, true) }}
  • @endif @if($user->anniversary_date)
  • @lang('Anniversary'): {{ Carbon::parse($user->anniversary_date)->format('M d, Y') }}
  • @endif @if($user->base_salary)
  • @lang('Base Salary'): {{ number_format($user->base_salary, 2) }}
  • @endif
@endif

{{ Carbon::parse($user->created_at)->diffForHumans(null, true) }}

@lang('Member Since')

{{ $user->email_verified_at ? __('Verified') : __('Pending') }}

@lang('Email Status')

{{ Carbon::parse($user->created_at)->format('M d, Y') }}

@lang('Joined On')

{{ $auditLogs->count() }}

@lang('Activities')

@lang('Account Details')

@lang('Username')

{{ $user->email }}

@lang('Role')

{{ $role->name }}
@if($user->date_of_joining)

@lang('Joining Date')

{{ Carbon::parse($user->date_of_joining)->format('M d, Y') }}
@endif

@lang('Language Preference')

{{ strtoupper($user->language) }}
@lang('Recent Activities')
{{ $auditLogs->count() }} @lang('Total')
@if($auditLogs->count() > 0)
    @foreach ($auditLogs->take(10) as $log)
  • {{ __(ucfirst($log['event'])) }}
    {{ Carbon::parse($log['created_at'])->diffForHumans() }}

    {{ $log['url'] }}

    {{ $log['ip_address'] }}
  • @endforeach
@else

@lang('No recent activities found')

@endif
@lang('Change Password')

@lang('Ensure your account is using a strong password to stay secure')

@csrf @method('POST')
@lang('Minimum 6 characters')
@if(function_exists('moduleExists') && moduleExists('TwoFactorAuth')) @php $addonService = app(\App\Services\AddonService\IAddonService::class); $is2FAEnabled = $addonService->isAddonEnabled('TwoFactorAuth'); @endphp @if($is2FAEnabled)
@lang('Two-Factor Authentication')

@lang('Add an additional layer of security to your account')

@if(auth()->user()->hasTwoFactorEnabled()) @lang('Enabled') @else @lang('Disabled') @endif
@if(auth()->user()->hasTwoFactorEnabled())
@lang('Two-factor authentication is enabled')

@lang('Your account is protected with an extra layer of security. You will need to enter a verification code from your authenticator app when signing in.')

@lang('Manage 2FA') @else
@lang('Two-factor authentication is not enabled')

@lang('When two-factor authentication is enabled, you will be prompted for a secure, random token during authentication. You may retrieve this token from your phone\'s authenticator application (like Google Authenticator).')

@lang('Enable Two-Factor Authentication') @endif
@endif @endif
@endsection