@extends('layouts.dashboard') @section('title', 'Edit User - ' . $user->name) @section('content')

Edit User: {{ $user->name }}

Back to User Details
@csrf @method('PUT') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@error('name')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('password')
{{ $message }}
@enderror
@if($isSuperAdmin)
Assign this user to an organization @error('client_id')
{{ $message }}
@enderror
@endif
Account Status
is_active) ? 'checked' : '' }}>
sms_service_enabled) ? 'checked' : '' }}>
promotions_enabled) ? 'checked' : '' }}>

Auto-Reply Settings
@php $settings = $user->settings; @endphp
Time to wait before sending another SMS to the same number
exclude_contacts ?? false) ? 'checked' : '' }}>
When enabled, auto-replies and promotions will only be sent to phone numbers not saved in device contacts

Auto-Reply Settings
reply_to_incoming ?? true) ? 'checked' : '' }}>
reply_to_missed ?? true) ? 'checked' : '' }}>
reply_to_outgoing ?? false) ? 'checked' : '' }}>

Promotion Triggers
promotion_on_incoming ?? false) ? 'checked' : '' }}>
promotion_on_missed ?? false) ? 'checked' : '' }}>
promotion_on_outgoing ?? false) ? 'checked' : '' }}>

WhatsApp Settings
whatsapp_enabled ?? false) ? 'checked' : '' }}>
Which channel to use for auto-replies
@if(isset($settings) && $settings->whatsapp_mode == 'baileys')
WhatsApp Gateway: @if($settings->whatsapp_connected) Connected ({{ $settings->whatsapp_connected_phone }}) @else Disconnected @endif
Scan QR / Link Phone
@endif
whatsapp_reply_to_incoming ?? false) ? 'checked' : '' }}>
whatsapp_reply_to_missed ?? false) ? 'checked' : '' }}>
whatsapp_reply_to_outgoing ?? false) ? 'checked' : '' }}>
WhatsApp Promotion Triggers
whatsapp_promotion_on_incoming ?? false) ? 'checked' : '' }}>
whatsapp_promotion_on_missed ?? false) ? 'checked' : '' }}>
whatsapp_promotion_on_outgoing ?? false) ? 'checked' : '' }}>
Cancel
User Info

User ID: {{ $user->id }}

Created: {{ $user->created_at->format('M d, Y H:i') }}

Last Active: {{ $user->last_active_at?->diffForHumans() ?? 'Never' }}

Session Device: {{ $user->session_device_id ? 'Active' : 'None' }}

Quick Actions
@csrf
@csrf @method('DELETE')
@endsection