<div class="content-wrapper">
    
    <!-- Content Header (Page header) -->
    <?php $this->load->view('admin/include/breadcrumb'); ?>

    <!-- Main content -->
    <div class="content">
      <div class="container-fluid">
        <div class="row">
        
            <?php $this->load->view('admin/user/include/settings_menu.php'); ?>

            <div class="col-lg-9 pl-3">
                <div class="card">
                    <form method="post" enctype="multipart/form-data" action="<?php echo base_url('admin/settings/update_sms') ?>" role="form" class="form-horizontal pl-20">
                        <div class="card-body">
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                      <label><?php echo trans('account-sid') ?></label>
                                        <input type="text" name="twillo_account_sid" value="<?php echo html_escape(user()->twillo_account_sid); ?>" class="form-control" >
                                    </div>

                                    <div class="form-group">
                                      <label><?php echo trans('auth-token') ?></label>
                                        <input type="text" name="twillo_auth_token" value="<?php echo html_escape(user()->twillo_auth_token); ?>" class="form-control" >
                                    </div>

                                    <div class="form-group">
                                      <label><?php echo trans('sender-number-tw') ?></label>
                                        <input type="text" name="twillo_number" value="<?php echo html_escape(user()->twillo_number); ?>" class="form-control" >
                                    </div>
                                </div>

                                <div class="col-md-6">
                                    <div class="form-group col-md-12 mb-2">
                                        <div class="custom-control custom-switch pt-10">
                                          <input type="checkbox" value="1" name="enable_sms_notify" class="custom-control-input" id="switch-1" <?php if(user()->enable_sms_notify == 1){echo 'checked';} ?>>
                                          <label class="custom-control-label" for="switch-1"><?php echo trans('enable-booking-confirmation-sms') ?></label>
                                          <p class="small text-muted"><?php echo trans('enable-booking-con-title') ?>.</p>
                                        </div>
                                    </div>

                                    <div class="form-group col-md-12 mb-2 d-none">
                                        <div class="custom-control custom-switch pt-10">
                                          <input type="checkbox" value="1" name="enable_sms_alert" class="custom-control-input" id="switch-2" <?php if(user()->enable_sms_alert == 1){echo 'checked';} ?>>
                                          <label class="custom-control-label" for="switch-2"><?php echo trans('enable-booking-reminder-alert') ?></label>
                                          <p class="small text-muted"><?php echo trans('enable-booking-alert-title') ?>.</p>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>

                        <div class="card-footer">
                            <input type="hidden" name="id" value="<?php echo html_escape(user()->id); ?>">
                            <!-- csrf token -->
                            <input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
                            <button type="submit" class="btn btn-primary mt-2"> <?php echo trans('save-changes') ?></button>
                        </div>
                    </form>
                </div>
            </div>

        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content -->
</div>
