<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover table-bordered table-striped default" id="trainers-table">
<thead>
<tr>
<th>Foto Trainer</th>
<th>Full Name</th>
<th>Title</th>
<th>Biodata</th>
<th>Birth Date</th>
<th>Birth Place</th>
<th>Gender</th>
<th>Address</th>
<th>Phone Number</th>
<th>Facebook</th>
<th>Twitter</th>
<th>Whatsapp</th>
<th>Telegram</th>
<th>Web</th>
<th colspan="3">Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $trainers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $trainer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td>
<?php if($trainer->getMedia()->isNotEmpty()): ?>
<img style="width: 120px" src="<?php echo e($trainer->getFirstMediaUrl()); ?>" alt="media">
<?php else: ?>
<p>No Image Available</p>
<?php endif; ?>
</td>
<td><?php echo e($trainer->full_name); ?></td>
<td><?php echo e($trainer->title); ?></td>
<td><?php echo e($trainer->biodata); ?></td>
<td><?php echo e(\Carbon\Carbon::parse($trainer->birth_date)->format('d F Y')); ?></td>
<td><?php echo e($trainer->birth_place); ?></td>
<td><?php echo e($trainer->gender); ?></td>
<td><?php echo e($trainer->address); ?></td>
<td><?php echo e($trainer->phone_number); ?></td>
<td><?php echo e($trainer->facebook); ?></td>
<td><?php echo e($trainer->twitter); ?></td>
<td><?php echo e($trainer->whatsapp); ?></td>
<td><?php echo e($trainer->telegram); ?></td>
<td><?php echo e($trainer->web); ?></td>
<td style="width: 120px">
<div class='btn-group'>
<a href="<?php echo e(route('trainers.show', [$trainer->id])); ?>"
class='btn btn-info btn-sm'>
<i class="fa fa-eye"></i>
</a>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('trainers.edit')): ?>
<a href="<?php echo e(route('trainers.edit', [$trainer->id])); ?>"
class='btn btn-warning btn-sm'>
<i class="fa fa-edit"></i>
</a>
<?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('trainers.destroy')): ?>
<?php echo Form::open(['route' => ['trainers.destroy', $trainer->id], 'method' => 'delete']); ?>
<?php echo Form::button('<i class="fa fa-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-sm', 'onclick' => "return confirm('Are you sure?')"]); ?>
<?php echo Form::close(); ?>
<?php endif; ?>
</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' => $trainers], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
</div>
<?php /**PATH C:\laragon\www\web_mudahcoding_2024\resources\views/trainers/table.blade.php ENDPATH**/ ?>
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]