{{-- resources/views/user_mangement/usersview.blade.php --}} @extends('layouts.app') @section('content')

Account Overview

{{-- Flash Toast --}} @if(session('profile_success') || session('address_success') || session('security_success') || session('success'))
@endif {{-- Profile Header Card --}}
{{-- Avatar --}}
avatar
{{-- Info --}}
{{ $user->name }}
{{ $user->role?->role_name ?? 'N/A' }} {{ $user->branch?->branch_name ?? 'N/A' }} {{ $user->email }}
128
Bookings Handled
45
Upcoming Tours
92%
Positive Feedback
Profile Completion {{ $completion }}%
{{-- Tab Nav --}} @php $activeTab = $activeTab ?? 'profile'; @endphp
{{-- Tab Content --}}
{{-- ══════════════════════════════════════════════════════════ TAB 1 : Profile Settings ══════════════════════════════════════════════════════════ --}}

Profile Details

{{-- ── Role-aware Edit Profile button ── --}} @if(auth()->user()->role?->role_name === 'admin') Edit Profile @else Edit Profile @endif
{{ $user->name ?? 'N/A' }}
{{ $user->email ?? 'N/A' }}
{{ $user->company?->name ?? 'N/A' }}
{{ $user->profile->phone ?? 'N/A' }} @if(!empty($user->profile->phone)) Verified @endif
{{ $user->profile->address ?? 'N/A' }}
{{ $user->profile->country ?? 'N/A' }}
{{ $user->profile->state ?? 'N/A' }}
{{ $user->profile->city ?? 'N/A' }}
{{ $user->profile->postal_code ?? 'N/A' }}
{{ $user->branch?->branch_name ?? 'N/A' }}
{{ $user->department?->dep_name ?? 'N/A' }}
{{ $user->role?->role_name ?? 'N/A' }}
{{ $user->currency?->currency_name ?? 'N/A' }} @if($user->currency) ({{ $user->currency->c_shortname }}) @endif
{{-- Admin-only fields --}} @if(auth()->user()->role?->role_name === 'admin')
{{ $user->markup ?? 'N/A' }}
{{ $user->credit_limit ?? 'N/A' }}
@endif
{{-- ══════════════════════════════════════════════════════════ TAB 2 : Security ══════════════════════════════════════════════════════════ --}}
{{-- Change Password Card --}}

Password

Last Changed: {{ $user->updated_at ? $user->updated_at->format('d M Y, h:i A') : 'N/A' }}

{{-- MFA Card --}}

Two-Factor Authentication

Secure your account with Google Authenticator   @if($user->mfa && $user->mfa->enabled) Enabled @else Disabled @endif

  Manage Two-Factor
{{-- Two Factor Drawer --}}

Two Factor Authentication

User Name : {{ $user->name }}
@csrf
{{-- ══════════════════════════════════════════════════════════ TAB 3 : Site Settings (Admin only) ══════════════════════════════════════════════════════════ --}} @if(auth()->user()->role?->role_name === 'admin')
Site Settings
@if($errors->any() && $activeTab === 'site_settings')
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $setting = \App\Models\SiteSetting::first(); @endphp
@csrf
@if(!empty($setting->logo))
logo
@endif Allowed: JPG, PNG
@if(!empty($setting->favicon))
favicon
@endif Allowed: PNG, ICO

Social Media

SEO Information
@endif
{{-- end tab-content --}}
{{-- ══════════════════════════════════════════════════════════════════════ Change Password Modal ══════════════════════════════════════════════════════════════════════ --}} @endsection @section('scripts') @endsection