👁 查看:35aa63a8e3077dc57377c9071771a6bec43464d4.php
路径:/home/boguraj1/.trash/storage.1/framework/views/35aa63a8e3077dc57377c9071771a6bec43464d4.php
大小:4.36 KB · 修改:2026-08-31 17:50:52 · 权限:0644 · 可写
<?php $__env->startSection('title', 'All Newspapers'); ?>
<?php $__env->startSection('content'); ?>
<div class="card">
<div class="card-header d-flex align-items-center justify-content-between py-3 px-4">
<span><i class="bi bi-newspaper me-2"></i>All Editions</span>
<a href="<?php echo e(route('admin.newspapers.create')); ?>" class="btn btn-sm btn-primary">
<i class="bi bi-plus"></i> New Edition
</a>
</div>
<div class="card-body p-0">
<table class="table table-hover mb-0">
<thead>
<tr>
<th class="ps-4">Date</th>
<th>Edition Name</th>
<th>Vol / Issue</th>
<th>Pages</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php $__empty_1 = true; $__currentLoopData = $newspapers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $newspaper): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<tr>
<td class="ps-4 fw-semibold"><?php echo e($newspaper->publish_date->format('d M Y')); ?></td>
<td><?php echo e($newspaper->edition_name ?? '—'); ?></td>
<td style="font-size:.8rem;color:#6b7280">
<?php echo e($newspaper->volume ? 'Vol. '.$newspaper->volume : ''); ?>
<?php echo e($newspaper->issue_number ? 'No. '.$newspaper->issue_number : ''); ?>
</td>
<td><span class="badge bg-secondary"><?php echo e($newspaper->pages_count); ?></span></td>
<td>
<span class="badge <?php echo e($newspaper->status === 'published' ? 'bg-success' : 'bg-warning text-dark'); ?>">
<?php echo e(ucfirst($newspaper->status)); ?>
</span>
</td>
<td>
<div class="d-flex gap-1">
<a href="<?php echo e(route('admin.newspapers.pages', $newspaper)); ?>" class="btn btn-sm btn-outline-secondary" title="Manage Pages">
<i class="bi bi-images"></i>
</a>
<a href="<?php echo e(route('admin.newspapers.edit', $newspaper)); ?>" class="btn btn-sm btn-outline-primary" title="Edit">
<i class="bi bi-pencil"></i>
</a>
<a href="<?php echo e(route('newspaper.show', $newspaper->publish_date->format('Y-m-d'))); ?>" target="_blank" class="btn btn-sm btn-outline-dark" title="View">
<i class="bi bi-eye"></i>
</a>
<form method="POST" action="<?php echo e(route('admin.newspapers.destroy', $newspaper)); ?>"
onsubmit="return confirm('Delete this edition and all its pages?')">
<?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
<button type="submit" class="btn btn-sm btn-outline-danger" title="Delete">
<i class="bi bi-trash"></i>
</button>
</form>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<tr><td colspan="6" class="text-center py-5 text-muted">No editions yet. <a href="<?php echo e(route('admin.newspapers.create')); ?>">Create one →</a></td></tr>
<?php endif; ?>
</tbody>
</table>
</div>
<?php if($newspapers->hasPages()): ?>
<div class="card-footer"><?php echo e($newspapers->links()); ?></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/epaper/resources/views/admin/newspapers/index.blade.php ENDPATH**/ ?>