✏️ 编辑:a3b8e7fcc6a509c6a149ce0d9f493d56642658dd.php
路径:
/home/boguraj1/.trash/storage/framework/views/a3b8e7fcc6a509c6a149ce0d9f493d56642658dd.php
大小:3.54 KB · 修改:2026-07-24 17:25:49 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php $__env->startSection('title', 'Categories'); ?> <?php $__env->startSection('content'); ?> <div class="d-flex justify-content-between align-items-center mb-4"> <h5 class="fw-bold mb-0">All Categories</h5> <a href="<?php echo e(route('admin.categories.create')); ?>" class="btn btn-danger"><i class="bi bi-plus-lg me-1"></i>Add Category</a> </div> <div class="card"> <div class="card-body p-0"> <div class="table-responsive"> <table class="table mb-0"> <thead> <tr> <th class="px-4">#</th> <th>Image</th> <th>Name</th> <th>Slug</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td class="px-4"><?php echo e($loop->iteration); ?></td> <td> <?php if($cat->image): ?> <img src="<?php echo e($cat->image_url); ?>" style="width:44px;height:44px;object-fit:cover;border-radius:8px" alt=""> <?php else: ?> <div style="width:44px;height:44px;background:#f0f0f0;border-radius:8px;display:flex;align-items:center;justify-content:center"><i class="bi bi-image text-muted"></i></div> <?php endif; ?> </td> <td class="fw-semibold"><?php echo e($cat->name); ?></td> <td><code class="text-muted"><?php echo e($cat->slug); ?></code></td> <td> <span class="badge bg-<?php echo e($cat->status ? 'success' : 'secondary'); ?>"><?php echo e($cat->status ? 'Active' : 'Inactive'); ?></span> </td> <td> <a href="<?php echo e(route('admin.categories.edit', $cat)); ?>" class="btn btn-sm btn-outline-primary me-1"><i class="bi bi-pencil"></i></a> <form action="<?php echo e(route('admin.categories.destroy', $cat)); ?>" method="POST" class="d-inline" onsubmit="return confirm('Delete this category?')"> <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?> <button class="btn btn-sm btn-outline-danger"><i class="bi bi-trash"></i></button> </form> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr><td colspan="6" class="text-center py-5 text-muted">No categories found.</td></tr> <?php endif; ?> </tbody> </table> </div> </div> <?php if($categories->hasPages()): ?> <div class="card-footer bg-white"><?php echo e($categories->links('pagination::bootstrap-5')); ?></div> <?php endif; ?> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/boguraj1/public_html/udoktaecom/resources/views/admin/categories/index.blade.php ENDPATH**/ ?>
💾 保存
取消
保存为 UTF-8,换行统一为 LF