%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/evablog/storage/framework/views/
Upload File :
Create Path :
Current File : /var/www/html/evablog/storage/framework/views/dbb8be39897626be3ed71db2e3aee308ef28d402.php

<?php $__env->startSection('content'); ?>
    <div class="posts-container">
        <form method="GET" autocomplete="off" action="<?php echo e(route('dashboard.posts')); ?>" novalidate>
            <div class="form-group row">
                <div class="col-md-3">
                    <input type="text" class="form-control" placeholder="Title" id="title" name="title"
                           value="<?php echo e(array_key_exists('title', $params) ? $params['title'] : ''); ?>">
                </div>
                <div class="col-md-3">
                    <select type="text" class="form-control" id="category_id" name="category_id">
                        <option value="">Category</option>
                        <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($category->id); ?>" <?php echo e(array_key_exists('category_id', $params) && $params['category_id'] == $category->id ? 'selected' : ''); ?> ><?php echo e($category->name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
            </div>
            <div class="form-group row">
                <div class="col-md-6">
                    <button class="btn btn-outline-primary">Search</button>
                    <a class="btn btn-outline-primary" href="<?php echo e(route('dashboard.posts.details', 'new')); ?>">
                        Create
                    </a>
                </div>
                <div class="col-md-6">
                    <?php echo e($posts->links('pagination::bootstrap-4')); ?>

                </div>
            </div>
        </form>

        <div class="row">
            <div class="col-md-12">
                <table class="table">
                    <thead>
                    <th width="20%">Image</th>
                    <th>Title</th>
                    <th>Description</th>
                    <th class="text-right">Actions</th>
                    </thead>
                    <tbody>
                    <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td>
                                <img src="<?php echo e($post->media()->first()->getUrl()); ?>" class="img-fluid">
                            </td>
                            <td><?php echo e($post->title); ?></td>
                            <td><?php echo e($post->description); ?></td>
                            <td class="text-right">
                                <a class="btn btn-outline-primary"
                                   href="<?php echo e(route('dashboard.posts.details', $post->id)); ?>">Edit</a>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Zerion Mini Shell 1.0