<?php echo $__env->make('admin.includes.errors', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->startSection('content'); ?>
<div class="container">
<?php echo $__env->make('admin.posts.mylink', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<h2 class="text-center">Trashed Property List</h2>
<div class="card">
<div class="card-body">
<table class="table table-hover">
    <thead>
        <th>
            GalleryI
        </th>
        <th>
            Project Name
        </th>
        <th>
            Restore
        </th>
        <th>
            Delete
        </th>
    </thead>
    <tbody>
    <?php if($posts->count() > 0): ?>
    <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td>
                    <img src="<?php echo e($post->gallery_one); ?>" alt="<?php echo e($post->project_name); ?>" width="100px" height="80px">
                </td>
                <td>
                     <?php echo e($post->project_name); ?>

                </td>
                <td>
                <a href="<?php echo e(route('post.restore', ['id' =>$post->id])); ?>" class="btn btn-success">Restore</a>
                </td>
                <td>
                <a href="<?php echo e(route('post.kill', ['id' =>$post->id])); ?>" class="btn btn-danger">Delete</a>
                </td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php else: ?>
        <tr>
            <th colspan="5" class="text-center">No Trashed Property</th>
        </tr>
    <?php endif; ?> 
    </tbody>
</table>
</div>
    <?php echo e($posts->links()); ?>

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