Файловый менеджер - Редактировать - /home/clickysoft/public_html/calvary-p2.clickysoft.net/storage/framework/views/4e8a8fb99c2e52bc6a7d7b3d1d8c329a.php
Назад
<?php $__env->startSection('title', 'Hot Lunch Detail'); ?> <?php $__env->startPush('admin-styles'); ?> <link rel="stylesheet" href="<?php echo e(asset('assets/admin/vendor/libs/quill/typography.css')); ?>" /> <link rel="stylesheet" href="<?php echo e(asset('assets/admin/vendor/libs/quill/katex.css')); ?>" /> <link rel="stylesheet" href="<?php echo e(asset('assets/admin/vendor/libs/quill/editor.css')); ?>" /> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="container-xxl flex-grow-1 container-p-y"> <div class="row"> <div class="col-md-12"> <div class="card mb-4"> <h5 class="card-header">Hot Lunch Detail</h5> <div class="card-body"> <div class="row"> <div class="col-md-6 mb-6 mt-3"> <label class="form-label" for="title">Title</label> <input type="text" id="title" class="form-control" value="<?php echo e($lunch->title); ?>" disabled /> </div> <div class="col-md-6 mb-6 mt-3"> <label class="form-label" for="lunch_half">First Half / Second Half</label> <input type="text" id="lunch_half" class="form-control" value="<?php echo e(ucwords(str_replace('_', ' ', $lunch->lunch_half))); ?>" disabled /> </div> <div class="col-md-6 mb-6 mt-3"> <label class="form-label" for="reg_starts">Registration Start Date</label> <input type="date" id="reg_starts" class="form-control" value="<?php echo e($lunch->reg_starts); ?>" disabled /> </div> <div class="col-md-6 mb-6 mt-3"> <label class="form-label" for="reg_ends">Registration End Date</label> <input type="date" id="reg_ends" class="form-control" value="<?php echo e($lunch->reg_ends); ?>" disabled /> </div> <div class="col-md-6 mb-6 mt-3"> <label class="form-label" for="status">Enable Late Fee</label> <input type="text" id="late_fee" class="form-control" value="<?php echo e($lunch->late_fee ? 'Yes' : 'No'); ?>" disabled /> </div> <div class="col-md-6 mb-6 mt-3"> <label class="form-label" for="status">Status</label> <input type="text" id="status" class="form-control" value="<?php echo e($lunch->status ? 'Active' : 'Inactive'); ?>" disabled /> </div> </div> <div class="row mt-3"> <div class="col-md-12 mb-6"> <label class="form-label">Lunch Description</label> <div class="form-control" id="description"></div> <input type="hidden" name="description" value="" readonly> </div> </div> </div> </div> </div> </div> </div> <?php $__currentLoopData = $lunch->hotLunchMenu; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="container-xxl flex-grow-1 container-p-y"> <div class="row"> <div class="col-md-12"> <div class="card mb-4"> <div class="row mt-3 align-items-center"> <div class="col-md-6 mb-6"> <h5 class="card-header">Hot Lunch Menu Detail</h5> </div> <div class="col-md-6 col-sm-6 col-12"> <div class="ed-btn"> <a style="margin-right: 10px;" href="<?php echo e(route('menu.update', $menu->id)); ?>" class="btn btn-primary">Edit</a> <a style="margin-right: 10px;" href="<?php echo e(route('menu.sort', $menu->id)); ?>" class="btn btn-warning">Sorting</a> <form action="<?php echo e(route('menu.delete', $menu->id)); ?>" method="POST"> <?php echo csrf_field(); ?> <input type="hidden" name="_method" value="DELETE"> <input type="submit" class="btn btn-danger show_alert" value="Delete"> </form> </div> </div> </div> <div class="card-body"> <div class="row mt-3"> <div class="col-md-6 mb-6"> <label class="form-label">Title ( Lunch Day )</label> <input type="text" class="form-control" value="<?php echo e($menu->title); ?>" disabled /> </div> </div> <div class="row mt-3"> <div class="col-md-6 mb-6"> <label class="form-label">Grades: </label><br> <?php $__currentLoopData = $menu->grades; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $grade): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <span class="badge bg-primary p-1"><?php echo e($grade->grade->title); ?></span> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div class="col-md-12 mb-6"> <label class="form-label">Vendor Items: </label><br> <?php $__currentLoopData = $menu->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemName): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <span class="badge bg-primary p-1"><?php echo e($itemName->vendorItem->name . " - ($" . $itemName->vendorItem->price . ')'); ?></span> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div class="row mt-3"> <div class="col-md-12"> <a href="<?php echo e(route('manage.lunch')); ?>" class="btn btn-danger redirect-btn">Back</a> </div> </div> </div> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('admin-scripts'); ?> <script src="<?php echo e(asset('assets/admin/js/sweetalert.min.js')); ?>"></script> <script src="<?php echo e(asset('assets/admin/js/axios.min.js')); ?>"></script> <script src="<?php echo e(asset('assets/admin/vendor/libs/quill/katex.js')); ?>"></script> <script src="<?php echo e(asset('assets/admin/vendor/libs/quill/quill.js')); ?>"></script> <script> $('.show_alert').click(function(event) { const form = $(this).closest("form"); event.preventDefault(); swal({ title: `Are you sure you want to delete this menu?`, text: "If you delete this, it will be gone forever.", icon: "warning", buttons: true, dangerMode: true, }) .then((willDelete) => { if (willDelete) { axios.post(form.attr('action'), new FormData(form[0])) .then(function(response) { swal({ title: `Menu successfully deleted`, icon: "success", closeOnClickOutside: false }).then((successBtn) => { if (successBtn) { window.location.reload(); } }); }) .catch(function(error) { swal({ title: `Something went wrong, Please try again later`, icon: "error", dangerMode: true, closeOnClickOutside: false }); }); } }); }); $(function() { const lunchDescription = new Quill("#description", { bounds: "#description", modules: {}, theme: "snow" }); lunchDescription.root.innerHTML = <?php echo json_encode($lunch->description); ?>; lunchDescription.on('text-change', function() { $("input[name=description]").val(lunchDescription.root.innerHTML); }); lunchDescription.disable(); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/clickysoft/public_html/calvary-p2.clickysoft.net/resources/views/admin/hot-lunch/detail.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка