⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
6daa603404815d0e15b4b15c2021270f.php
<?php $get_setting = 'smtp'; if(array_key_exists('email_setting', $settings)) { $get_setting = $settings['email_setting']; } ?> <div class="card" id="email-sidenav"> <div class="email-setting-wrap "> <?php echo e(Form::open(['route' => ['email.setting.store'], 'id' => 'mail-form'])); ?> <?php echo method_field('post'); ?> <?php echo csrf_field(); ?> <input type="hidden" class="email"> <div class="card-header p-3"> <h5 ><?php echo e(__('Email Settings')); ?></h5> </div> <div class="card-body p-3 pb-0"> <div class="row"> <div class="col-sm-6 col-12"> <div class="form-group col switch-width"> <?php echo e(Form::label('email_setting',__('Email Setting'),array('class'=>'form-label'))); ?> <?php echo e(Form::select('email_setting',$email_setting, isset($settings['email_setting']) ? $settings['email_setting'] : $get_setting, ['id' => 'email_setting','class'=>"form-control choices",'searchEnabled'=>'true'])); ?> </div> </div> </div> <div class="row"> <div class="col-12" id="getfields"> </div> </div> </div> <div class="card-footer d-flex justify-content-between flex-wrap p-3 gap-2"> <input type="hidden" name="custom_email" id="custom_email" value="<?php echo e(isset($settings['email_setting']) ? $settings['email_setting'] : $get_setting); ?>"> <button type="button" data-url="<?php echo e(route('test.mail')); ?>" data-title="<?php echo e(__('Send Test Mail')); ?>" class="btn btn-print-invoice btn-primary test-mail"><?php echo e(__('Send Test Mail')); ?></button> <input class="btn btn-print-invoice btn-primary " type="submit" value="<?php echo e(__('Save Changes')); ?>"> </div> <?php echo e(Form::close()); ?> </div> </div> <!--Email Notification Settings--> <div class="card" id="email-notification-sidenav"> <div class="email-setting-wrap "> <?php echo e(Form::open(['route' => ['email.notification.setting.store'], 'id' => 'mail-notification-form'])); ?> <?php echo method_field('post'); ?> <div class="card-header p-3"> <h5><?php echo e(__('Email Notification Settings')); ?></h5> </div> <div class="card-body p-3 pb-0"> <ul class="nav nav-pills gap-2 mb-3" id="pills-tab" role="tablist"> <?php $active = 'active'; ?> <?php $__currentLoopData = $email_notification_modules; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $e_module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(Laratrust::hasPermission($e_module . ' manage') || Laratrust::hasPermission(strtolower($e_module) . ' manage') || $e_module == 'general'): ?> <li class="nav-item"> <a class="nav-link text-capitalize rounded-1 <?php echo e($active); ?>" id="pills-<?php echo e(strtolower($e_module)); ?>-tab-email" data-bs-toggle="pill" href="#pills-<?php echo e(strtolower($e_module)); ?>-email" role="tab" aria-controls="pills-<?php echo e(strtolower($e_module)); ?>-email" aria-selected="true"><?php echo e(Module_Alias_Name($e_module)); ?></a> </li> <?php $active = ''; ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <div class="tab-content " id="pills-tabContent"> <?php $__currentLoopData = $email_notification_modules; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $e_module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="tab-pane fade <?php echo e($loop->index == 0 ? 'active' : ''); ?> show" id="pills-<?php echo e(strtolower($e_module)); ?>-email" role="tabpanel" aria-labelledby="pills-<?php echo e(strtolower($e_module)); ?>-tab-email"> <div class="row"> <?php $__currentLoopData = $email_notify; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $e_action): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($e_action->permissions == null || Laratrust::hasPermission($e_action->permissions)): ?> <?php if($e_action->module == $e_module): ?> <div class="col-lg-4 col-sm-6 col-12 mb-3"> <div class="rounded-1 card list_colume_notifi p-3 h-100 mb-0"> <div class="card-body d-flex align-items-center justify-content-between gap-2 p-0"> <h6 class="mb-0"> <label for="<?php echo e($e_action->action); ?>" class="form-label mb-0"><?php echo e($e_action->action); ?></label> </h6> <div class="form-check form-switch d-inline-block text-end"> <input type="hidden" name="mail_noti[<?php echo e($e_action->action); ?>]" value="0" /> <input class="form-check-input" <?php echo e(isset($settings[$e_action->action]) && $settings[$e_action->action] == true ? 'checked' : ''); ?> id="mail_notificaation" name="mail_noti[<?php echo e($e_action->action); ?>]" type="checkbox" value="1"> </div> </div> </div> </div> <?php endif; ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div class="card-footer d-flex justify-content-end p-3"> <input class="btn btn-print-invoice btn-primary" type="submit" value="<?php echo e(__('Save Changes')); ?>"> </div> <?php echo e(Form::close()); ?> </div> </div> <script> $(document).ready(function() { // Check if email_setting is already set var emailSetting = $('#email_setting').val(); if (emailSetting) { $.ajax({ url: '<?php echo e(route('get.emailfields')); ?>', type: 'POST', data: { "_token": "<?php echo e(csrf_token()); ?>", "emailsetting": emailSetting, }, success: function(data) { $('#getfields').empty(); $('#getfields').append(data.html) $('.email').append(data.html) }, }); } // Initialize choices choices(); }); </script> <script> $(document).on('change', '#email_setting', function() { var emailsetting = $(this).val(); $.ajax({ url: '<?php echo e(route('get.emailfields')); ?>', type: 'POST', data: { "_token": "<?php echo e(csrf_token()); ?>", "emailsetting": emailsetting, }, success: function(data) { $('#getfields').empty(); $('#getfields').append(data.html) $('.email').append(data.html) }, }); }); </script> <?php /**PATH /home/id/erp.dev-unit.com/resources/views/email/index.blade.php ENDPATH**/ ?>