관리-도구
편집 파일: a986ccada99ddd2dca65d413bb4df549.php
<?php $__env->startSection('content'); ?> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <!-- Bootstrap 4 CSS --> <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"> <!-- Bootstrap 4 JS + Popper --> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> <!-- Summernote --> <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.js"></script> <!-- 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>Accolades</b></h3> <button class="btn btn-success" data-toggle="modal" data-target="#addServices">Add New Accolade +</button> <div class="modal fade" id="addServices" 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 Accolade +</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-awards.store')); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="form-group"> <label for="exampleInputDescription">Award</label> <input type="text" name="award" class="form-control" id="exampleInputUsername1" placeholder="Enter Award Name" required> </div> <div class="form-group"> <label for="exampleInputDescription">Presented by</label> <input type="text" name="presentedby" class="form-control" id="exampleInputUsername1" placeholder="Enter Presented by"> </div> <!-- <div> <label for="exampleInputDescription">Description</label> <textarea class="form-control" name="description" rows="4" placeholder="Enter Description" required></textarea> </div> --> <!-- <div class="form-group"> <label for="serviceImage">Image</label> <input type="file" name="image" class="form-control" id="serviceImage" required> </div> --> <div class="text-center"> <button type="submit" class="btn btn-primary w-50">Submit</button> </div> </form> </div> </div> </div> </div> </div> </div> </div> <hr> <div class="table-responsive"> <table class="table table-hover"> <thead> <tr> <th>#</th> <th>Award</th> <th>Presented by</th> <!-- <th>Image</th> --> <th class="text-center">Action</th> </tr> </thead> <tbody> <?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($loop->iteration); ?></td> <td><?php echo e($service->award); ?></td> <td><?php echo e($service->presentedby); ?></td> <!-- <td class="description" style="white-space: pre-wrap; padding: 10px; "> <?php echo $service->description; ?> </td> --> <!-- <td><img src="<?php echo e(asset('storage/'. $service->image)); ?>"></td> --> <td class="text-center"> <button class="btn btn-primary my-2" data-toggle="modal" data-target="#updateServices<?php echo e($service->id); ?>"><i class="fa fa-pen"></i></button> <form method="post" action="<?php echo e(route('admin-awards.destroy', $service->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> <!--Add service Modal --> <!--Update service Modal --> <div class="modal fade" id="updateServices<?php echo e($service->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 Accolades</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-awards.update', $service->id)); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="form-group"> <label for="exampleInputName">Award</label> <input type="text" name="award" value="<?php echo e($service->award); ?>" class="form-control" id="exampleInputUsername1" placeholder="Enter Service Name" required> </div> <div> <label for="exampleInputDescription">Presented by</label> <input type="text" name="presentedby" value="<?php echo e($service->presentedby); ?>" class="form-control" id="exampleInputUsername1" placeholder="Enter Presented by"> </div> <!-- <div class="form-group"> <label for="exampleInputImage">Image</label> <input type="file" name="image" value="<?php echo e($service->image); ?>" class="form-control" id="exampleInputUsername1" > </div> <?php if($service->image): ?> <div> <img src="<?php echo e(asset('storage/' . $service->image)); ?>" alt="Selected Image" style="max-width: 100px; max-height: 100px;"> </div> <?php endif; ?> --> <div class="text-center"><button type="submit" class="btn btn-primary w-50">Update</button></div> </form> </div> </div> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <script> $('.summernotes').summernote({ placeholder: 'Description', tabsize: 2, height: 120, toolbar: [ ['style', ['style']], ['font', ['bold', 'underline', 'clear']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['table', ['table']], ['insert', ['link', 'picture', 'video']], ['view', ['fullscreen', 'codeview', 'help']] ] }); // Wait for the DOM to be ready </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\D E L L\Downloads\ashnapa\resources\views/admin/awards.blade.php ENDPATH**/ ?>