@extends('client.layouts.dashboard') @section('title', 'Edit User') @section('content')
Back to Users
Edit User: {{ $user->name }}
@csrf @method('PUT') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $settings = $user->settings; @endphp
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('password')
{{ $message }}
@enderror
Only fill this if you want to change the password

Service Settings
is_active) ? 'checked' : '' }}>
User can log in when approved
sms_service_enabled) ? 'checked' : '' }}>
Auto-reply SMS functionality
promotions_enabled) ? 'checked' : '' }}>
Enable promotional messaging

Message Filtering & Cooldown
exclude_contacts ?? false) ? 'checked' : '' }}>
Skip saved contacts for auto-send
@error('cooldown_hours')
{{ $message }}
@enderror
@error('preferred_channel')
{{ $message }}
@enderror
Auto-Reply Triggers (SMS)
reply_to_incoming ?? true) ? 'checked' : '' }}>
reply_to_missed ?? true) ? 'checked' : '' }}>
reply_to_outgoing ?? false) ? 'checked' : '' }}>
Promotion Triggers (SMS)
promotion_on_incoming ?? false) ? 'checked' : '' }}>
promotion_on_missed ?? false) ? 'checked' : '' }}>
promotion_on_outgoing ?? false) ? 'checked' : '' }}>

WhatsApp Settings
whatsapp_enabled ?? false) ? 'checked' : '' }}>
@error('whatsapp_mode')
{{ $message }}
@enderror
@error('whatsapp_cooldown_hours')
{{ $message }}
@enderror
whatsapp_reply_to_incoming ?? false) ? 'checked' : '' }}>
whatsapp_reply_to_missed ?? false) ? 'checked' : '' }}>
whatsapp_reply_to_outgoing ?? false) ? 'checked' : '' }}>
whatsapp_promotion_on_incoming ?? false) ? 'checked' : '' }}>
whatsapp_promotion_on_missed ?? false) ? 'checked' : '' }}>
whatsapp_promotion_on_outgoing ?? false) ? 'checked' : '' }}>

User Info
@if($user->approval_status === 'pending') Pending @elseif($user->approval_status === 'approved') Approved @else Rejected @endif
Managed by SuperAdmin
{{ $user->created_at->format('M d, Y h:i A') }}
{{ $user->last_active_at ? $user->last_active_at->diffForHumans() : 'Never' }}
Cancel
@endsection