<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover table-bordered table-striped default" id="class-trainers-table">
<thead>
<tr>
<th>Gambar</th>
<th>Nama Kelas</th>
<th>Nama Trainer</th>
<th>Tanggal Buat</th>
<th colspan="3">Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $classTrainers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $classTrainer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td> <?php if($classTrainer->class->getMedia('default')->isNotEmpty()): ?>
<img style="width: 120px" src="<?php echo e($post->getFirstMediaUrl('default')); ?>" alt="media">
<?php else: ?>
<p>No Image Available</p>
<?php endif; ?></td>
<td><?php echo e($classTrainer->class->name); ?></td>
<td><?php echo e($classTrainer->trainer->full_name); ?></td>
<td><?php echo e(\Carbon\Carbon::parse($classTrainer->created_at)->format('d F Y')); ?></td>
<td style="width: 120px">
<div class='btn-group'>
<a href="<?php echo e(route('classTrainers.show', [$classTrainer->id])); ?>"
class='btn btn-info btn-sm'>
<i class="fa fa-eye"></i>
</a>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<div class="card-footer clearfix">
<div class="float-right">
<?php echo $__env->make('adminlte-templates::common.paginate', ['records' => $classTrainers], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
</div>
<?php /**PATH C:\laragon\www\web_mudahcoding_2024\resources\views/class_trainers/table.blade.php ENDPATH**/ ?>
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]