<div class="row"> <div class="card"> <div class="card-body"> <div class="col-md-7 col-12 settings"> <form class="form form-vertical" action="<?php echo e(route('customer.contacts.update', $contact->uid)); ?>" method="post"> <?php echo e(method_field('PUT')); ?> <?php echo csrf_field(); ?> <div class="row"> <div class="col-12"> <div class="mb-1"> <label for="name" class="form-label required"><?php echo e(__('locale.labels.name')); ?></label> <input type="text" id="name" class="form-control <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" value="<?php echo e($contact->name); ?>" name="name" required> <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="invalid-feedback"> <?php echo e($message); ?> </div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div class="col-12"> <div class="mb-1"> <label for="sending_server" class="form-label required"><?php echo e(__('locale.labels.sending_server')); ?></label> <select class="select2 form-select" name="sending_server"> <?php $__currentLoopData = $sending_server; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $server): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($server->id); ?>" <?php echo e($contact->sending_server == $server->id ? 'selected' : null); ?>> <?php echo e($server->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php $__errorArgs = ['sending_server']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p><small class="text-danger"><?php echo e($message); ?></small></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <?php if(auth()->user()->customer->getOption('sender_id_verification') == 'yes'): ?> <div class="col-12"> <p class="text-uppercase"><?php echo e(__('locale.labels.originator')); ?></p> </div> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_sender_id')): ?> <div class="col-md-6 col-12 customized_select2"> <div class="mb-1"> <label for="sender_id" class="form-label"><?php echo e(__('locale.labels.sender_id')); ?></label> <div class="input-group"> <div class="input-group-text"> <div class="form-check"> <input type="radio" class="form-check-input sender_id" name="originator" <?php if( !is_numeric($contact->sender_id) && !is_null($contact->sender_id)): ?> checked <?php endif; ?> value="sender_id" id="sender_id_check"/> <label class="form-check-label" for="sender_id_check"></label> </div> </div> <div style="width: 17rem"> <select class="form-select select2" id="sender_id" name="sender_id" <?php if( is_numeric($contact->sender_id) || is_null($contact->sender_id)): ?> disabled <?php endif; ?>> <?php $__currentLoopData = $sender_ids; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sender_id): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($sender_id->sender_id); ?>" <?php echo e($sender_id->sender_id == $contact->sender_id ? 'selected': null); ?>> <?php echo e($sender_id->sender_id); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> </div> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_numbers')): ?> <div class="col-md-6 col-12 customized_select2"> <div class="mb-1"> <label for="phone_number" class="form-label"><?php echo e(__('locale.menu.Phone Numbers')); ?></label> <div class="input-group"> <div class="input-group-text"> <div class="form-check"> <input type="radio" class="form-check-input phone_number" <?php if( is_numeric($contact->sender_id)): ?> checked <?php endif; ?> value="phone_number" name="originator" id="phone_number_check"/> <label class="form-check-label" for="phone_number_check"></label> </div> </div> <div style="width: 17rem"> <select class="form-select select2" id="phone_number" name="phone_number" <?php if( !is_numeric($contact->sender_id)): ?> disabled <?php endif; ?>> <?php $__currentLoopData = $phone_numbers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $number): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($number->number); ?>" <?php echo e($number->number == $contact->sender_id ? 'selected': null); ?>> <?php echo e($number->number); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> </div> <?php endif; ?> <?php else: ?> <div class="col-12"> <div class="mb-1"> <label for="sender_id" class="form-label"><?php echo e(__('locale.labels.sender_id')); ?></label> <input type="text" id="sender_id" class="form-control <?php $__errorArgs = ['sender_id']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" value="<?php echo e($contact->sender_id); ?>" name="sender_id"> <?php $__errorArgs = ['sender_id']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p><small class="text-danger"><?php echo e($message); ?></small></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <?php endif; ?> </div> <div class="row"> <div class="col-12"> <div class="divider divider-left divider-primary"> <div class="divider-text text-uppercase fw-bold text-primary"><?php echo e(__('locale.labels.settings')); ?></div> </div> </div> </div> <div class="row"> <div class="col-10"> <p class="mb-0 text-primary"><?php echo e(__('locale.contacts.send_welcome_message')); ?>?</p> <p><small class=""><?php echo __('locale.contacts.send_welcome_message_description'); ?></small></p> </div> <div class="col-2"> <div class="mb-1"> <div class="form-check form-switch form-check-primary form-switch-md"> <input type="checkbox" name="send_welcome_sms" value="1" <?php echo e($contact->send_welcome_sms == 1 ? 'checked': null); ?> class="form-check-input" id="send_welcome_sms"> <label class="form-check-label" for="send_welcome_sms"> <span class="switch-text-left"><?php echo e(__('locale.labels.yes')); ?></span> <span class="switch-text-right"><?php echo e(__('locale.labels.no')); ?></span> </label> </div> </div> </div> </div> <div class="row mt-2"> <div class="col-10"> <p class="mb-0 text-primary"><?php echo e(__('locale.contacts.send_unsubscribe_notification')); ?>?</p> <p><small class=""><?php echo __('locale.contacts.send_unsubscribe_notification_description'); ?></small></p> </div> <div class="col-2"> <div class="mb-1"> <div class="form-check form-switch form-check-primary form-switch-md"> <input type="checkbox" name="unsubscribe_notification" value="1" <?php echo e($contact->unsubscribe_notification == 1 ? 'checked': null); ?> class="form-check-input" id="unsubscribe_notification"> <label class="form-check-label" for="unsubscribe_notification"> <span class="switch-text-left"><?php echo e(__('locale.labels.yes')); ?></span> <span class="switch-text-right"><?php echo e(__('locale.labels.no')); ?></span> </label> </div> </div> </div> </div> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_keywords')): ?> <div class="row mt-2"> <div class="col-10"> <p class="mb-0 text-primary"><?php echo e(__('locale.contacts.send_keyword_message')); ?>?</p> <p><small class=""><?php echo __('locale.contacts.send_keyword_message_description'); ?></small> <a href="#" class="text-danger small"><?php echo e(__('locale.menu.Keywords')); ?></a></p> </div> <div class="col-2"> <div class="mb-1"> <div class="form-check form-switch form-check-primary form-switch-md"> <input type="checkbox" name="send_keyword_message" value="1" <?php echo e($contact->send_keyword_message == 1 ? 'checked': null); ?> class="form-check-input" id="send_keyword_message"> <label class="form-check-label" for="send_keyword_message"> <span class="switch-text-left"><?php echo e(__('locale.labels.yes')); ?></span> <span class="switch-text-right"><?php echo e(__('locale.labels.no')); ?></span> </label> </div> </div> </div> </div> <?php endif; ?> <div class="row mt-2"> <div class="col-12"> <button type="submit" class="btn btn-primary mb-1"> <i data-feather="save"></i> <?php echo e(__('locale.buttons.save')); ?> </button> </div> </div> </form> </div> </div> </div> </div> <?php /**PATH /home/bouloter/sms/resources/views/customer/contactGroups/_settings.blade.php ENDPATH**/ ?>