⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.23
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
/
public_html
/
storage
/
framework
/
views
/
View File Name :
0f71852c5478ec1f29ff6b33d7cbaf709d9acd90.php
<?php if(Session::has('admin_lang')): ?> <?php $admin_lang = Session::get('admin_lang'); $cd = str_replace('admin_', '', $admin_lang); $default = \App\Models\Language::where('code', $cd)->first(); ?> <?php else: ?> <?php $default = \App\Models\Language::where('is_default', 1)->first(); ?> <?php endif; ?> <?php $__env->startSection('content'); ?> <div class="page-header"> <h4 class="page-title"><?php echo e(__('Languages')); ?></h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="<?php echo e(route('admin.dashboard') . '?language=' . $default->code); ?>"> <i class="flaticon-home"></i> </a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e(__('Language Management')); ?></a> </li> </ul> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-title d-inline-block"><?php echo e(__('Languages')); ?></div> <a href="#" class="btn btn-primary float-right" data-toggle="modal" data-target="#createModal"><i class="fas fa-plus"></i> <?php echo e(__('Add Language')); ?></a> <a href="#" class="btn btn-secondary float-right mr-1 editBtn" data-toggle="modal" data-target="#addModal"> <span class="btn-label"> <i class="fas fa-plus"></i> </span> <?php echo e(__('Add Admin Keyword')); ?> </a> <a href="#" class="btn btn-info float-right mr-1 editBtn" data-toggle="modal" data-target="#addModalFrontend"> <span class="btn-label"> <i class="fas fa-plus"></i> </span> <?php echo e(__('Add Frontend Keyword')); ?> </a> </div> <div class="card-body"> <div class="row"> <div class="col-lg-12"> <?php if(count($languages) == 0): ?> <h3 class="text-center"><?php echo e(__('NO LANGUAGE FOUND')); ?></h3> <?php else: ?> <div class="table-responsive"> <table class="table table-striped mt-3"> <thead> <tr> <th scope="col">#</th> <th scope="col"><?php echo e(__('Name')); ?></th> <th scope="col"><?php echo e(__('Code')); ?></th> <th scope="col"><?php echo e(__('Appearance in Website')); ?></th> <th scope="col"><?php echo e(__('Actions')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($loop->iteration + 1); ?></td> <td><?php echo e($language->name); ?></td> <td><?php echo e($language->code); ?></td> <td> <?php if($language->is_default == 1): ?> <strong class="badge badge-success"><?php echo e(__('Default')); ?></strong> <?php else: ?> <form class="d-inline-block" action="<?php echo e(route('admin.language.default', $language->id)); ?>" method="post"> <?php echo csrf_field(); ?> <button class="btn btn-primary btn-sm" type="submit" name="button"><?php echo e(__('Make Default')); ?></button> </form> <?php endif; ?> </td> <td> <a class="btn btn-secondary btn-sm" href="<?php echo e(route('admin.language.editKeyword', $language->id)); ?>"> <span class="btn-label"> <i class="fas fa-edit"></i> </span> <?php echo e(__('Edit Front Keyword')); ?> </a> <a class="btn btn-secondary btn-sm" href="<?php echo e(route('admin.language.editAdminKeyword', $language->id)); ?>"> <span class="btn-label"> <i class="fas fa-edit"></i> </span> <?php echo e(__('Edit Admin Keyword')); ?> </a> <a class="btn btn-secondary btn-sm" href="<?php echo e(route('admin.language.edit', $language->id)); ?>"> <span class="btn-label"> <i class="fas fa-edit"></i> </span> <?php echo e(__('Edit')); ?> </a> <form class="deleteform d-inline-block" action="<?php echo e(route('admin.language.delete', $language->id)); ?>" method="post"> <?php echo csrf_field(); ?> <button type="submit" class="btn btn-danger btn-sm deletebtn"> <span class="btn-label"> <i class="fas fa-trash"></i> </span> <?php echo e(__('Delete')); ?> </button> </form> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> <div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle"><?php echo e(__('Add Admin Keyword')); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form id="admiAdKeyword" action="<?php echo e(route('admin.language_management.add_keyword')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="form-group"> <label for=""><?php echo e(__('Keyword')); ?>*</label> <input type="text" class="form-control" name="keyword" placeholder="<?php echo e(__('Enter Keyword')); ?>"> <p id="errkeyword" class="mb-0 text-danger em"></p> </div> </form> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal"> <?php echo e(__('Close')); ?> </button> <button data-form="admiAdKeyword" type="submit" class="submitBtn btn btn-primary btn-sm"> <?php echo e(__('Submit')); ?> </button> </div> </div> </div> </div> <div class="modal fade" id="addModalFrontend" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <form id="ajaxFormAddFrontkeyword" action="<?php echo e(route('admin.language_management.add_front_keyword')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle"><?php echo e(__('Add Frontend Keyword')); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="form-group"> <label for=""><?php echo e(__('Keyword')); ?>*</label> <input type="text" class="form-control" name="front_keyword" placeholder="<?php echo e(__('Enter Keyword')); ?>"> <p id="errfront_keyword" class="mb-0 text-danger em"></p> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal"> <?php echo e(__('Close')); ?> </button> <button data-form="ajaxFormAddFrontkeyword" type="submit" class="submitBtn btn btn-primary btn-sm"> <?php echo e(__('Submit')); ?> </button> </div> </div> </div> </form> </div> <!-- Create Language Modal --> <?php if ($__env->exists('admin.language.create')) echo $__env->make('admin.language.create', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/public_html/resources/views/admin/language/index.blade.php ENDPATH**/ ?>