Anons79 Mini Shell

Directory : /home/aplikasiposinfo/.trash/storage.2/framework/views/
Upload File :
Current File : /home/aplikasiposinfo/.trash/storage.2/framework/views/60c28c483a7f8a5a318d7f02236c2ebb.php

<div class="card-body p-0">
    <div class="table-responsive">
        <table class="table table-hover table-bordered table-striped default" id="posts-table">
            <thead>
                <tr>
                    <th>Foto</th>
                    <th>Image Chaption</th>
                    <th>Post Category</th>
                    <th>Title</th>
                    <th>Content</th>
                    <th>Slug</th>
                    <th>Blogger</th>
                    
                    <th colspan="3">Action</th>
                </tr>
            </thead>
            <tbody>
                <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td>
                        <?php if($post->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($post->image_chaption); ?></td>
                    <td><?php echo e($post->postCategory->title); ?></td>
                    <td><?php echo e($post->title); ?></td>
                    <td> <p class="desc-p"><?php echo e($post->content); ?></p></td>
                    <td><?php echo e($post->slug); ?></td>
                    <td><?php echo e($post->user->name); ?></td>
                    
                    <td style="width: 120px">
                        <div class='btn-group'>
                            <a href="<?php echo e(route('posts.show', [$post->id])); ?>" class='btn btn-info btn-sm'>
                                <i class="fa fa-eye"></i>
                            </a>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('posts.edit')): ?>
                            <a href="<?php echo e(route('posts.edit', [$post->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('posts.destroy')): ?>
                            <?php echo Form::open(['route' => ['posts.destroy', $post->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' => $posts], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    </div>
</div>
<?php /**PATH C:\laragon\www\web_mudahcoding_2024\resources\views/posts/table.blade.php ENDPATH**/ ?>

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]