@extends('admin_base') @section('title', 'Edit User') @section('style') @endsection @section('content')

Edit User: {{ $user->first_name }} {{ $user->last_name }}

@csrf @method('PUT')
@error('first_name')
{{ $message }}
@enderror
@error('last_name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
Leave blank to keep current password @error('password')
{{ $message }}
@enderror
@error('role')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }}>
email_verified_at) ? 'checked' : '' }}>
Cancel

Additional Information

Account Created
{{ $user->created_at->format('F j, Y \a\t g:i A') }}
Last Updated
{{ $user->updated_at->format('F j, Y \a\t g:i A') }}
Email Verification Date
@if($user->email_verified_at) {{ $user->email_verified_at->format('F j, Y \a\t g:i A') }} @else Not verified @endif
Two-Factor Authentication
@if($user->two_factor_enabled) Enabled
Confirmed at: {{ $user->two_factor_confirmed_at ? $user->two_factor_confirmed_at->format('F j, Y \a\t g:i A') : 'Not confirmed' }}
@else Disabled @endif
Recovery Codes
@if($user->two_factor_recovery_codes) Recovery codes are available
@foreach(json_decode($user->two_factor_recovery_codes) as $code) {{ $code }} @endforeach
@else No recovery codes generated @endif
@if($user->shipping_addr)

Shipping Information

Contact Person
{{ $user->shipping_addr['contact_name'] ?? 'N/A' }}
Contact Phone
{{ $user->shipping_addr['contact_phone'] ?? 'N/A' }} @if(isset($user->shipping_addr['whatsapp']))
WhatsApp: {{ $user->shipping_addr['whatsapp'] }} @endif
Contact Email
{{ $user->shipping_addr['contact_email'] ?? 'N/A' }}
Delivery Address
{{ $user->shipping_addr['address'] ?? 'N/A' }}
City
{{ $user->shipping_addr['city'] ?? 'N/A' }}
State
{{ $user->shipping_addr['state'] ?? 'N/A' }}
Postal Code
{{ $user->shipping_addr['postal_code'] ?? 'N/A' }}
@endif
@endsection