관리-도구
편집 파일: c4966fe2d5c3f8cefd098001ba1631a8.php
<?php $__env->startSection('content'); ?> <div class="main-panel"> <div class="content-wrapper"> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h3 class="text-center mb-3"><b>Product Enquiries</b></h3> <hr> <?php if(session('success')): ?> <div class="alert alert-success"><?php echo e(session('success')); ?></div> <?php endif; ?> <div class="table-responsive"> <table class="table table-hover"> <thead> <tr> <th>#</th> <th> Category </th> <th>Product</th> <th>Name</th> <th>Email</th> <th>Phone</th> <th>Message</th> <th>Date</th> <th class="text-center">Action</th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $enquiries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $enquiry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td><?php echo e($loop->iteration); ?></td> <td> <?php echo e($enquiry->product->category->productcategory ?? 'N/A'); ?> </td> <td> <?php echo e($enquiry->product->title ?? 'N/A'); ?> </td> <td><?php echo e($enquiry->name); ?></td> <td><?php echo e($enquiry->email); ?></td> <td><?php echo e($enquiry->phone); ?></td> <td style="max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;"> <?php echo e($enquiry->message); ?> </td> <td><?php echo e($enquiry->created_at->format('d M Y')); ?></td> <td class="text-center"> <form action="<?php echo e(route('admin-productenquiry.destroy', $enquiry->id)); ?>" method="POST" onsubmit="return confirm('Are you sure you want to delete this enquiry?');"> <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?> <button class="btn btn-danger btn-sm"> <i class="fa fa-trash"></i> </button> </form> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="9" class="text-center text-muted"> No enquiries found </td> </tr> <?php endif; ?> </tbody> </table> </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:\work\FinalCompressFile\roomgear\resources\views/admin/productenquiry.blade.php ENDPATH**/ ?>