관리-도구
편집 파일: 584fc183a9ada14f59843b3d854f0c68.php
<?php $__env->startSection('content'); ?> <!-- partial --> <div class="main-panel"> <div class="content-wrapper"> <style> .description-cell { max-width: 200px; /* Adjust the value as needed */ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } </style> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <div class="d-flex justify-content-between"> <h3 class="text-center"><b>Seo Description</b></h3> <button class="btn btn-success" data-toggle="modal" data-target="#addService">Add new Seo +</button> </div> <hr> <div class="table-responsive"> <table class="table table-hover"> <thead> <tr> <th>#</th> <th>Page</th> <th>Title</th> <th>Description</th> <th class="text-center">Action</th> </tr> </thead> <tbody> <?php if($seos): ?> <?php $__currentLoopData = $seos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $seo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($loop->iteration); ?></td> <td><?php echo e($seo->page); ?></td> <td><?php echo e($seo->title); ?></td> <td style="white-space: normal; word-wrap: break-word;"><?php echo e($seo->description); ?></td> <td class="text-center"> <button class="btn btn-primary my-2" data-toggle="modal" data-target="#updateService<?php echo e($seo->id); ?>"><i class="fa fa-pen"></i></button> <form method="post" action="<?php echo e(route('admin-seo.destroy', $seo->id)); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?> <button class="btn btn-danger my-2"><i class="fa fa-trash"></i></button> </form> </td> </tr> <!--update Service Modal --> <div class="modal fade" id="updateService<?php echo e($seo->id); ?>" 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">Update Seo</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="card"> <div class="card-body"> <form method="post" action="<?php echo e(route('admin-seo.update', $seo->id)); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="form-group"> <label for="exampleInputUsername1">Page</label> <input type="text" name="page" value="<?php echo e($seo->page); ?>" class="form-control" id="exampleInputUsername1" placeholder="Enter Title"> </div> <div class="form-group"> <label for="exampleInputUsername1">Title</label> <input type="text" name="title" value="<?php echo e($seo->title); ?>" class="form-control" id="exampleInputUsername1" placeholder="Enter Title"> </div> <div class="form-group"> <label for="exampleInputDescription">Description</label> <textarea class="form-control" name="description" id="exampleInputDescription" rows="4" placeholder="Enter description"><?php echo e($seo->description); ?></textarea> </div> <div class="text-center"><button type="submit" class="btn btn-primary w-50">Submit</button></div> </form> </div> </div> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <!-- content-wrapper ends --> <!--Add Service Modal --> <div class="modal fade" id="addService" 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">Add new Seo</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="card"> <div class="card-body"> <form method="post" action="<?php echo e(route('admin-seo.store')); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="form-group"> <label for="exampleInputUsername1">Page</label> <input type="text" name="page" class="form-control" id="exampleInputUsername1" placeholder="Enter Page"> </div> <div class="form-group"> <label for="exampleInputUsername1">Title</label> <input type="text" name="title" class="form-control" id="exampleInputUsername1" placeholder="Enter Title"> </div> <div class="form-group"> <label for="exampleInputDescription">Description</label> <textarea class="form-control" name="description" id="exampleInputDescription" rows="4" placeholder="Enter description"></textarea> </div> <div class="text-center"><button type="submit" class="btn btn-primary w-50">Submit</button></div> </form> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\ICT\Backend\Raumwerk\resources\views/admin/seo.blade.php ENDPATH**/ ?>