✏️ 编辑:e945fe527b3c24d6f6ec5ae4568939b5391410c9.php
路径:
/home/boguraj1/.trash/storage/framework/views/e945fe527b3c24d6f6ec5ae4568939b5391410c9.php
大小:4.96 KB · 修改:2026-07-24 17:26:08 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php $__env->startSection('title', 'Tags'); ?> <?php $__env->startSection('content'); ?> <div class="row g-4"> <div class="col-lg-4"> <div class="card"> <div class="card-header"><i class="bi bi-plus-circle me-2" style="color:var(--primary)"></i>Add New Tag</div> <div class="card-body p-4"> <form action="<?php echo e(route('admin.tags.store')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="mb-3"> <label class="form-label">Tag Name <span class="text-danger">*</span></label> <input type="text" name="name" class="form-control <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" placeholder="e.g. Featured" value="<?php echo e(old('name')); ?>" required> <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"><?php echo e($message); ?></div><?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <button type="submit" class="btn btn-danger w-100">Add Tag</button> </form> </div> </div> </div> <div class="col-lg-8"> <div class="card"> <div class="card-header">All Tags</div> <div class="card-body p-0"> <div class="table-responsive"> <table class="table mb-0"> <thead> <tr> <th class="px-4">#</th> <th>Name</th> <th>Slug</th> <th>Products</th> <th>Actions</th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td class="px-4"><?php echo e($loop->iteration); ?></td> <td> <form action="<?php echo e(route('admin.tags.update', $tag)); ?>" method="POST" class="d-flex gap-2"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <input type="text" name="name" class="form-control form-control-sm" value="<?php echo e($tag->name); ?>" style="width:140px"> <button class="btn btn-sm btn-outline-primary"><i class="bi bi-check-lg"></i></button> </form> </td> <td><code class="text-muted"><?php echo e($tag->slug); ?></code></td> <td><span class="badge bg-light text-dark border"><?php echo e($tag->products_count); ?></span></td> <td> <form action="<?php echo e(route('admin.tags.destroy', $tag)); ?>" method="POST" onsubmit="return confirm('Delete tag?')"> <?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="5" class="text-center py-5 text-muted">No tags yet.</td></tr> <?php endif; ?> </tbody> </table> </div> </div> <?php if($tags->hasPages()): ?> <div class="card-footer bg-white"><?php echo e($tags->links('pagination::bootstrap-5')); ?></div> <?php endif; ?> </div> </div> </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/tags/index.blade.php ENDPATH**/ ?>
💾 保存
取消
保存为 UTF-8,换行统一为 LF