<?php $__env->startSection('content'); ?>
<div class="col-md-9 jobs-container">
        <?php echo $__env->make('posts.partials.search', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <div class="row">
            <h2 class="content-heading"><?php echo e($title); ?></h2>
            <?php echo $__env->make('posts.partials.util-list', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            <div class="jobs-list">
            <?php foreach($posts as $post): ?>
            <div class="media job-content">
                <div class="media-body">
                    <div class="col-md-2 col-sm-2 col-xs-2 avatar-holder">
                        <a href="<?php echo e(route('users.profile', ['username' => $post->user->username])); ?>">
                            <img class="img-responsive" src="<?php echo e(Resize::avatar($post->user,'listingAvatar')); ?>" alt="<?php echo e($post->user->fullname); ?>">
                        </a>
                    </div>
                    <div class="col-md-10 col-sm-9 col-xs-9">
                    <h3 class="media-heading">
                        <a href="<?php echo e(route('posts.main',['id' => $post->id, 'slug' => $post->slug])); ?>"><?php echo e($post->title); ?></a>
                    </h3>
                    <div class="job-info">
                        <p><i><?php echo e(t('by')); ?>: <a href="<?php echo e(route('users.profile', ['username' => $post->user->username])); ?>"><?php echo e($post->user->fullname); ?></a></i>
                            <?php if(auth()->check() && auth()->user()->id == $post->user->id): ?>
                                | <a href="<?php echo e(route('posts.edit', ['id' => $post->id, 'slug' => $post->slug])); ?>"><?php echo e(t('Edit')); ?></a>
                            <?php endif; ?>
                        </p>
                        <?php if($post->tags): ?>
                            <ul class="list-inline tags-list">
                                <?php foreach(explode(',',$post->tags) as $tag): ?>
                                    <li><a href="<?php echo e(route('posts.list', ['tag' => $tag])); ?>"><span class="label label-default"><i class="fa fa-tag"></i> <?php echo e($tag); ?></span></a></li>
                                <?php endforeach; ?>
                            </ul>
                        <?php endif; ?>
                        <div>
                            <a href="<?php echo e(route('posts.list',['category' => $post->category->slug])); ?>"><span class="label label-default"><i class="fa fa-th-large"></i> <?php echo e($post->category->name); ?></span></a>
                            <a href="<?php echo e(route('posts.list',['type' => $post->type->slug])); ?>"><span class="label label-default"><i class="fa fa-list-ul"></i> <?php echo e($post->type->name); ?></span></a>
                            <span class="country-tag">
                                <?php if($post->is_remote): ?>
                                    <a href="<?php echo e(route('posts.list', ['remote' => true])); ?>"><span class="label label-default"><i class="fa fa-globe"></i> <?php echo e(t('Remote / Anywhere')); ?></span></a>
                                <?php else: ?>
                                    <?php if($post->city): ?><a href="<?php echo e(route('posts.list', ['city' => $post->city])); ?>"><span class="label label-default"><i class="fa fa-map-marker"></i> <?php echo e($post->city); ?></span></a><?php endif; ?>
                                    <?php if($post->state): ?><a href="<?php echo e(route('posts.list', ['state' => $post->state])); ?>"><span class="label label-default"><i class="fa fa-location-arrow"></i> <?php echo e($post->state); ?></span></a><?php endif; ?>
                                    <?php if($post->country): ?><a href="<?php echo e(route('posts.list', ['country' => $post->country])); ?>"><span class="label label-default"><i class="fa fa-globe"></i> <?php echo e($post->country); ?></span></a><?php endif; ?>
                                <?php endif; ?>
                            </span>
                        </div>
                    </div>
                </div>
              </div>
            </div>
            <?php endforeach; ?>
            </div>
        </div>
</div>
    <?php echo $__env->make('posts.partials.sidebar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <div class="clearfix"></div>
    <?php echo $posts->appends(Input::except('page'))->render(); ?>

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