Server IP : 127.0.1.1 / Your IP : 216.73.216.172 Web Server : Apache/2.4.52 (Ubuntu) System : Linux bahcrestlinepropertiesllc 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/bahcrestline/core/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?> <div class="padding"> <div class="box"> <div class="box-header dker"> <h3><?php echo trans('backLang.'.$WebmasterSection->name); ?></h3> <small> <a href="<?php echo e(route('adminHome')); ?>"><?php echo e(trans('backLang.home')); ?></a> / <a><?php echo trans('backLang.'.$WebmasterSection->name); ?></a> </small> </div> <?php if($Topics->total() >0): ?> <?php if(@Auth::user()->permissionsGroup->add_status): ?> <div class="row p-a"> <div class="col-sm-12"> <a class="btn btn-fw primary" href="<?php echo e(route("topicsCreate",$WebmasterSection->id)); ?>"> <i class="material-icons"></i> <?php echo e(trans('backLang.topicNew')); ?> <?php echo trans('backLang.'.$WebmasterSection->name); ?> </a> </div> </div> <?php endif; ?> <?php endif; ?> <?php if($Topics->total() == 0): ?> <div class="row p-a"> <div class="col-sm-12"> <div class=" p-a text-center "> <?php echo e(trans('backLang.noData')); ?> <br> <br> <?php if(@Auth::user()->permissionsGroup->add_status): ?> <a class="btn btn-fw primary" href="<?php echo e(route("topicsCreate",$WebmasterSection->id)); ?>"> <i class="material-icons"></i> <?php echo e(trans('backLang.topicNew')); ?> <?php echo trans('backLang.'.$WebmasterSection->name); ?> </a> <?php endif; ?> </div> </div> </div> <?php endif; ?> <?php if($Topics->total() > 0): ?> <?php echo e(Form::open(['route'=>['topicsUpdateAll',$WebmasterSection->id],'method'=>'post'])); ?> <div class="table-responsive"> <table class="table table-striped b-t"> <thead> <tr> <th style="width:20px;"> <label class="ui-check m-a-0"> <input id="checkAll" type="checkbox"><i></i> </label> </th> <th><?php echo e(trans('backLang.topicName')); ?></th> <?php if($WebmasterSection->date_status): ?> <th class="text-center" style="width:120px;"><?php echo e(trans('backLang.topicDate')); ?></th> <?php endif; ?> <?php if($WebmasterSection->expire_date_status): ?> <th class="text-center" style="width:120px;"><?php echo e(trans('backLang.expireDate')); ?></th> <?php endif; ?> <th class="text-center" style="width:80px;"><?php echo e(trans('backLang.visits')); ?></th> <th class="text-center" style="width:50px;"><?php echo e(trans('backLang.status')); ?></th> <th class="text-center" style="width:200px;"><?php echo e(trans('backLang.options')); ?></th> </tr> </thead> <tbody> <?php $title_var = "title_" . trans('backLang.boxCode'); $title_var2 = "title_" . trans('backLang.boxCodeOther'); ?> <?php $__currentLoopData = $Topics; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $Topic): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if ($Topic->$title_var != "") { $title = $Topic->$title_var; } else { $title = $Topic->$title_var2; } // Get Categories list $section = ""; $sectionSt = ""; if ($WebmasterSection->sections_status != 0) { foreach ($Topic->categories as $category) { try { if ($category->section->$title_var != "") { $cat_title = $category->section->$title_var; } else { $cat_title = $category->section->$title_var2; } $section .= $cat_title . ", "; } catch (Exception $e) { } } if ($section == "") { $sectionSt = "<span style='color: orangered'><i>" . trans('backLang.topicDeletedSection') . "</i></span>"; } else { $section = rtrim($section, ", "); } } ?> <tr> <td><label class="ui-check m-a-0"> <input type="checkbox" name="ids[]" value="<?php echo e($Topic->id); ?>"><i class="dark-white"></i> <?php echo Form::hidden('row_ids[]',$Topic->id, array('class' => 'form-control row_no')); ?> </label> </td> <td> <?php if($Topic->photo_file !=""): ?> <div class="pull-right"> <img src="<?php echo e(URL::to('uploads/topics/'.$Topic->photo_file)); ?>" style="height: 40px" alt="<?php echo e($title); ?>"> </div> <?php endif; ?> <?php echo Form::text('row_no_'.$Topic->id,$Topic->row_no, array('class' => 'pull-left form-control row_no','id'=>'row_no')); ?> <?php if($Topic->icon !=""): ?> <i class="fa <?php echo $Topic->icon; ?> "></i> <?php endif; ?> <?php echo e($title); ?> <div> <small> <?php echo e($section); ?> <?php echo $sectionSt; ?> </small> </div> </td> <?php if($WebmasterSection->date_status): ?> <td class="text-center"> <small><?php echo $Topic->date; ?></small> </td> <?php endif; ?> <?php if($WebmasterSection->expire_date_status): ?> <td class="text-center"> <small <?php echo ($Topic->expire_date < date("Y-m-d"))? "style='color:red'":""; ?>><?php echo $Topic->expire_date; ?></small> </td> <?php endif; ?> <td class="text-center"> <?php echo $Topic->visits; ?> <?php if($WebmasterSection->comments_status): ?> <?php if(count($Topic->newComments) >0): ?> <div title="<?php echo e(trans('backLang.comments')); ?>"> <a href="<?php echo e(route('topicsComments',[$WebmasterSection->id,$Topic->id])); ?>"> <small style="color:red"><i class="material-icons" style="font-size: 14px;color:red"> </i> <?php echo e(count($Topic->newComments)); ?></small> </a> </div> <?php elseif(count($Topic->comments) >0): ?> <div title="<?php echo e(trans('backLang.comments')); ?>"> <a href="<?php echo e(route('topicsComments',[$WebmasterSection->id,$Topic->id])); ?>"> <small><i class="material-icons" style="font-size: 14px"> </i> <?php echo e(count($Topic->comments)); ?></small> </a> </div> <?php endif; ?> <?php endif; ?> </td> <td class="text-center"> <i class="fa <?php echo e(($Topic->status==1) ? "fa-check text-success":"fa-times text-danger"); ?> inline"></i> </td> <td class="text-center"> <?php if(@Auth::user()->permissionsGroup->edit_status): ?> <a class="btn btn-sm success" href="<?php echo e(route("topicsEdit",["webmasterId"=>$WebmasterSection->id,"id"=>$Topic->id])); ?>"> <small><i class="material-icons"></i> <?php echo e(trans('backLang.edit')); ?> </small> </a> <?php endif; ?> <?php if(@Auth::user()->permissionsGroup->delete_status): ?> <button class="btn btn-sm warning" data-toggle="modal" data-target="#m-<?php echo e($Topic->id); ?>" ui-toggle-class="bounce" ui-target="#animate"> <small><i class="material-icons"></i> <?php echo e(trans('backLang.delete')); ?> </small> </button> <?php endif; ?> </td> </tr> <!-- .modal --> <div id="m-<?php echo e($Topic->id); ?>" class="modal fade" data-backdrop="true"> <div class="modal-dialog" id="animate"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title"><?php echo e(trans('backLang.confirmation')); ?></h5> </div> <div class="modal-body text-center p-lg"> <p> <?php echo e(trans('backLang.confirmationDeleteMsg')); ?> <br> <strong>[ <?php echo e($title); ?> ]</strong> </p> </div> <div class="modal-footer"> <button type="button" class="btn dark-white p-x-md" data-dismiss="modal"><?php echo e(trans('backLang.no')); ?></button> <a href="<?php echo e(route("topicsDestroy",["webmasterId"=>$WebmasterSection->id,"id"=>$Topic->id])); ?>" class="btn danger p-x-md"><?php echo e(trans('backLang.yes')); ?></a> </div> </div><!-- /.modal-content --> </div> </div> <!-- / .modal --> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <footer class="dker p-a"> <div class="row"> <div class="col-sm-3 hidden-xs"> <!-- .modal --> <div id="m-all" class="modal fade" data-backdrop="true"> <div class="modal-dialog" id="animate"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title"><?php echo e(trans('backLang.confirmation')); ?></h5> </div> <div class="modal-body text-center p-lg"> <p> <?php echo e(trans('backLang.confirmationDeleteMsg')); ?> </p> </div> <div class="modal-footer"> <button type="button" class="btn dark-white p-x-md" data-dismiss="modal"><?php echo e(trans('backLang.no')); ?></button> <button type="submit" class="btn danger p-x-md"><?php echo e(trans('backLang.yes')); ?></button> </div> </div><!-- /.modal-content --> </div> </div> <!-- / .modal --> <?php if(@Auth::user()->permissionsGroup->edit_status): ?> <select name="action" id="action" class="input-sm form-control w-sm inline v-middle" required> <option value=""><?php echo e(trans('backLang.bulkAction')); ?></option> <option value="order"><?php echo e(trans('backLang.saveOrder')); ?></option> <option value="activate"><?php echo e(trans('backLang.activeSelected')); ?></option> <option value="block"><?php echo e(trans('backLang.blockSelected')); ?></option> <?php if(@Auth::user()->permissionsGroup->delete_status): ?> <option value="delete"><?php echo e(trans('backLang.deleteSelected')); ?></option> <?php endif; ?> </select> <button type="submit" id="submit_all" class="btn btn-sm white"><?php echo e(trans('backLang.apply')); ?></button> <button id="submit_show_msg" class="btn btn-sm white" data-toggle="modal" style="display: none" data-target="#m-all" ui-toggle-class="bounce" ui-target="#animate"><?php echo e(trans('backLang.apply')); ?> </button> <?php endif; ?> </div> <div class="col-sm-3 text-center"> <small class="text-muted inline m-t-sm m-b-sm"><?php echo e(trans('backLang.showing')); ?> <?php echo e($Topics->firstItem()); ?> -<?php echo e($Topics->lastItem()); ?> <?php echo e(trans('backLang.of')); ?> <strong><?php echo e($Topics->total()); ?></strong> <?php echo e(trans('backLang.records')); ?></small> </div> <div class="col-sm-6 text-right text-center-xs"> <?php echo $Topics->links(); ?> </div> </div> </footer> <?php echo e(Form::close()); ?> <script type="text/javascript"> $("#checkAll").click(function () { $('input:checkbox').not(this).prop('checked', this.checked); }); $("#action").change(function () { if (this.value == "delete") { $("#submit_all").css("display", "none"); $("#submit_show_msg").css("display", "inline-block"); } else { $("#submit_all").css("display", "inline-block"); $("#submit_show_msg").css("display", "none"); } }); </script> <?php endif; ?> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('footerInclude'); ?> <script type="text/javascript"> $("#checkAll").click(function () { $('input:checkbox').not(this).prop('checked', this.checked); }); $("#action").change(function () { if (this.value == "delete") { $("#submit_all").css("display", "none"); $("#submit_show_msg").css("display", "inline-block"); } else { $("#submit_all").css("display", "inline-block"); $("#submit_show_msg").css("display", "none"); } }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('backEnd.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/bahcrestline/core/resources/views/backEnd/topics.blade.php ENDPATH**/ ?>