
<?php $__env->startSection('pageTitle', isset($pageTitle) ? $pageTitle : 'Document Title'); ?>
<?php $__env->startSection('meta_tags'); ?>
<?php echo SEO::generate(); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<section class="section department-single">
    <div class="container py-5">
        <div class="row">
            <div class="col-12">
                <div class="d-flex justify-content-between align-items-center mb-4 flex-wrap">
                    <!-- Title -->
                    <h3 class="mb-0">Author: <?php echo e($pageTitle); ?> | Bulletin Room</h3>
                    <!-- Breadcrumb -->
                    <nav aria-label="breadcrumb">
                        <ol class="breadcrumb bg-transparent mb-0 px-0">
                            <li class="breadcrumb-item"><a href="<?php echo e(url('/')); ?>">Home</a></li>
                            <li class="breadcrumb-item"><a href="<?php echo e(route('bulletin')); ?>">Bulletin</a></li>
                            <li class="breadcrumb-item active" aria-current="page"><?php echo e($pageTitle); ?></li>
                        </ol>
                    </nav>
                </div>
                <hr>
            </div>
        </div>

        <div class="author-card text-center border-0 p-4 mt-5">
            <img src="<?php echo e($author->picture); ?>" class="rounded-circle mx-auto" style="width: 100px; height: 100px;" alt="Profile Image">
            <h4 class="mt-3 mb-1 card-title fw-bold"><?php echo e($author->name); ?></h4>
            <p class="mb-2 text-muted"><?php echo e($author->username); ?></p>
            <p class="text-muted px-3">
                <?php echo e($author->bio); ?>

            </p>
            <?php if($author->social_links): ?>
            <div class="d-flex justify-content-center mt-3 gap-3">
                <?php if($author->social_links->facebook_url): ?>
                <a href="<?php echo e($author->social_links->facebook_url); ?>" target="_blank" class=" fs-5"><i class="icofont-facebook"></i></a>
                <?php endif; ?>
                <?php if($author->social_links->instagram_url): ?>
                <a href="<?php echo e($author->social_links->instagram_url); ?>" target="_blank" class=" fs-5"><i class="icofont-instagram"></i></a>
                <?php endif; ?>
            </div>
            <?php endif; ?>
            <!-- <div class="d-flex justify-content-center mt-3 gap-3">
            <a href="#" class="text-dark fs-5"><i class="bi bi-github"></i></a>
            <a href="#" class="text-dark fs-5"><i class="mdi mdi-facebook"></i></a>
            <a href="#" class="text-dark fs-5"><i class="bi bi-linkedin"></i></a>
            <a href="#" class="text-dark fs-5"><i class="bi bi-twitter"></i></a>
        </div> -->
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
           
                <div class="container">
                    <div class="row">
                        <?php if($post->count()): ?>
                        <div class="row">
                            <?php $__currentLoopData = $post; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $posts): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <!-- Card 1 -->
                            <div class="col-12 col-sm-6 col-lg-3 mb-4">
                                <div class="card h-100 border-0">
                                    <img src="/images/posts/resized/resized_<?php echo e($posts->featured_image); ?>"
                                        class="card-img img-fluid rounded-3"
                                        alt="Post Image"
                                        style="height: 180px; object-fit: cover;">
                                    <div class="card-body px-0 ">
                                        <h6 class="card-title fw-semibold mb-3">

                                            <a href="<?php echo e(route('read_post', $posts->slug)); ?>">
                                                <strong><?php echo e($posts->title); ?></strong>
                                            </a>
                                        </h6>
                                        <p class="mb-0 text-muted ">Date : <?php echo e(date_formatter($posts->created_at)); ?></p>
                                        <p class="mb-0 text-muted ">Category : <a href="<?php echo e(route('category_post',$posts->post_category->slug)); ?>" class="ml-1"> </a><?php echo e($posts->post_category->name); ?></p>
                                    </div>
                                </div>
                            </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                        <?php else: ?>
                        <p><span class="text-danger">No post found in this author!</span></p>
                        <?php endif; ?>
                        <!-- /Blog Posts Section -->
                    </div>
                </div>
            
            <!-- Blog Pagination Section -->
            <section id="blog-pagination" class="blog-pagination section">

                <?php echo e($post->appends(request()->input())->links('custom_pagination')); ?>


            </section><!-- /Blog Pagination Section -->
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('front.layout.pages-layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\larablog\resources\views\front\pages\bulletin\author_posts.blade.php ENDPATH**/ ?>