

<?php $__env->startSection('content'); ?>
  <div class="row">
    <div class="col-lg-9 col-12 mx-auto">
        
      <?php if($errors->get('msgError')): ?>
          <div class="m-3  alert alert-warning alert-dismissible fade show" role="alert">
            <span class="alert-text text-white">
              <?php echo e($errors->first()); ?></span>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
              <i class="fa fa-close" aria-hidden="true"></i>
            </button>
          </div>
          <?php endif; ?>
          <?php if(session('success')): ?>
          <div class="m-3  alert alert-success alert-dismissible fade show" id="alert-success" role="alert">
            <span class="alert-text text-white">
              <?php echo e(session('success')); ?></span>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
              <i class="fa fa-close" aria-hidden="true"></i>
            </button>
          </div>
          <?php endif; ?>  
        
      <div class="card card-body mt-4">
        <h6 class="mb-0">Server Configuration</h6>
        <p class="text-sm mb-0">App Configuration</p>
        <form action="/setting/update" method="POST">
        <?php echo csrf_field(); ?>
        <input  type="hidden" name="type" value="server">
        <hr class="horizontal dark my-2"> 
        <label for="projectName" class="form-label">API URL <a href="https://create-api.techappinnovation.com/" class="text-info" target="_blank">[ Click here to Generate Your API URL ]</a></label>

        <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">ADMIN PANEL DEBUG MODE</label>
        <select name="APP_DEBUG"  class="form-control" >
            <option value="local" <?php echo e((env('APP_ENV') == 'local') ? 'selected' : ''); ?>>DEBUG</option>
            <option value="production" <?php echo e((env('APP_ENV') == 'production') ? 'selected' : ''); ?>>PRODUCTION</option>
        </select>
        

        
        <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">APP URL</label>
        <input type="text" class="form-control" name="APP_URL" value="<?php echo e(env('APP_URL')); ?>">
        
         <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">CUSTOM OFFER SECRET</label>
        <input type="text" class="form-control" name="CUSTOM_OFFER_SECRET" value="<?php echo e($key[0]->offer_secret); ?>">
        
        <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">CRON JOB URL</label>
        <input type="text" class="form-control" name="CRON_SECRET" value="<?php echo e(env('APP_URL').'api/cronjob/'. $key[0]->cron_secret); ?>">


        <div class="d-flex justify-content-end mt-4">
          <button type="submit" name="button" class="btn bg-gradient-info m-0 ms-2">Save Changes</button>
          </form>
        </div>
      </div>
    </div>

    
    <div class="col-lg-9 col-12 mx-auto">
      <div class="card card-body mt-4">
        <h6 class="mb-0">One Signal Configuration</h6>
        <p class="text-sm mb-0"></p>
        <form action="/setting/update" method="POST">
        <?php echo csrf_field(); ?>
        <input type="hidden" name="type" value="notification">
        
        <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">ONESIGNAL APP ID</label>
        <input type="text" class="form-control" name="ONESIGNAL_APP_ID" value="<?php echo e(env('ONESIGNAL_APP_ID')); ?>">
        
        <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">ONESIGNAL REST API KEY</label>
        <input type="text" class="form-control" name="ONESIGNAL_REST_API_KEY" value="<?php echo e(env('ONESIGNAL_REST_API_KEY')); ?>">
    
         <div class="d-flex justify-content-end mt-4">
          <button type="submit" name="button" class="btn bg-gradient-info m-0 ms-2">Save Changes</button>
          </form>
        </div>
      </div>
    </div>
    
    <div class="col-lg-9 col-12 mx-auto">
      <div class="card card-body mt-4">
        <h6 class="mb-0">SMTP Configuration</h6>
        <p class="text-sm mb-0"></p>
        <form action="/setting/update" method="POST">
        <?php echo csrf_field(); ?>
        <input type="hidden" name="type" value="smtp">
        
        <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">MAIL MAILER </label>
        <input type="text" class="form-control" name="MAIL_MAILER" placeholder="smtp" value="<?php echo e(env('MAIL_MAILER')); ?>">
        
        <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">MAIL HOST </label>
        <input type="text" class="form-control" name="MAIL_HOST" placeholder="smtp.gmail.com" value="<?php echo e(env('MAIL_HOST')); ?>">
        
        <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">MAIL PORT </label>
        <input type="number" class="form-control" name="MAIL_PORT" placeholder="465"  value="<?php echo e(env('MAIL_PORT')); ?>">
        
        <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">MAIL USERNAME </label>
        <input type="text" class="form-control" name="MAIL_USERNAME" placeholder="****"  value="<?php echo e(env('MAIL_USERNAME')); ?>">
        
        
        <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">MAIL PASSWORD </label>
        <input type="password" class="form-control" name="MAIL_PASSWORD" placeholder="" value="<?php echo e(env('MAIL_PASSWORD')); ?>">
        
        <hr class="horizontal dark my-2">
        <label for="projectName" class="form-label">Encryption Mode</label>
        <select name="MAIL_ENCRYPTION"  class="form-control" >
            <option name="ssl" <?php echo e((env('MAIL_ENCRYPTION')=='ssl') ? 'selected' : ''); ?>>SSL</option>
            <option name="tls" <?php echo e((env('MAIL_ENCRYPTION')=='tls') ? 'selected' : ''); ?>>TLS</option>
        </select>

        <div class="d-flex justify-content-end mt-4">
          <button type="submit" name="submit" class="btn bg-gradient-info m-0 ms-2">Save Changes</button>
        </div>
        </form>
      </div>
    </div>
  </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('js'); ?>  
  <script src="<?php echo e(URL::asset('assets/js/plugins/choices.min.js')); ?>"></script>
  <script>

    if (document.getElementById('choices-tag')) {
      var tag = document.getElementById('choices-tag');
      const example = new Choices(tag);
    }

    if (document.getElementById('choices-tag1')) {
      var tag = document.getElementById('choices-tag1');
      const example = new Choices(tag);
    }
  
    if (document.getElementById('choices-tag2')) {
      var tag = document.getElementById('choices-tag2');
      const example = new Choices(tag);
    }
  
  </script>


<?php $__env->stopPush(); ?>
<?php echo $__env->make('user_type.auth', ['parentFolder' => 'admin-setting', 'childFolder' => 'app-setting'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/in2apps/public_html/lebara.in2apps.xyz/resources/views/setting/config.blade.php ENDPATH**/ ?>