

<?php $__env->startSection('main'); ?>
<main class="container mb-5">
    <?php if(!$news->isEmpty()): ?>
    <div class="row" id="sectionLastNews">
        <div class="col-12">
            <div id="lastNewsContainer">
                <ul>
                    <?php $__currentLoopData = $news; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $newsItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li <?php echo e($newsItem->id == $news->first()->id ? 'class=active' : ''); ?>>
                            <a href="<?php echo e(route('news.show', $newsItem)); ?>"><?php echo e($newsItem->title); ?></a>
                            <?php if(\Carbon\Carbon::parse($newsItem->created_at)->diffInHours() < 48): ?>
                            <small class="text-danger align-middle">(جدید)</small>
                            <?php endif; ?>
                        </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            </div>
            <small>
                <a href="<?php echo e(route('news')); ?>" class="float-left">مشاهده تمامی اخبار</a>
            </small>
        </div>
    </div>
    <?php endif; ?>
    <?php if(!$faq->isEmpty()): ?>
    <div class="row" id="sectionFaq">
        <div class="col-sm-6">
            <div class="accordion" id="activeFaqContainer">
                <div class="card">
                    <div class="card-header" id="activeFaqHeader">
                        <h2 class="mb-0">
                            <button class="btn btn-link" type="button" data-toggle="collapse" data-target="activeFaqContent" aria-expanded="true" aria-controls="activeFaqContent">
                                <?php echo e($faq->first()->title); ?>

                            </button>
                        </h2>
                    </div>
                    <div id="activeFaqContent" class="collapse show" aria-labelledby="activeFaqHeader" data-parent="#activeFaqContainer">
                        <div class="card-body">
                            <?php echo clean($faq->first()->content); ?>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="accordion" id="faqContainer">
                <?php $__currentLoopData = $faq->except($faq->first()->id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $faqItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="card mb-3">
                    <div class="card-header" id="faqHeader<?php echo e($faqItem->id); ?>">
                        <h2 class="mb-0">
                            <button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse" data-target="#faqContent<?php echo e($faqItem->id); ?>" aria-expanded="false" aria-controls="faqContent<?php echo e($faqItem->id); ?>">
                                <span><?php echo e($faqItem->title); ?></span>
                                <span class="fa fa-chevron-down float-left accordion-header-icon"></span>
                            </button>
                        </h2>
                    </div>
                    <div id="faqContent<?php echo e($faqItem->id); ?>" class="collapse" aria-labelledby="faqHeader<?php echo e($faqItem->id); ?>" data-parent="#faqContainer">
                        <div class="card-body">
                            <?php echo clean($faqItem->content); ?>

                        </div>
                    </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <small><a href="<?php echo e(route('faqs')); ?>" class="float-left m-3 mr-1">تمامی سوالات متداول</a></small>
            </div>
        </div>
    </div>
    <?php endif; ?>
    <?php if($templateConfigs['showOurTeamSection']): ?>
    <div id="sectionOurTeam">
        <h4 class="default-color text-center mb-5">
            <span class="fa fa-users d-block mb-3 font-lg"></span>
            <span><?php echo e($templateConfigs['ourTeamHeader']); ?></span>
        </h4>
        <div class="row">
            <?php $__currentLoopData = $templateConfigs['teamMembers']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $teamMember): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if($teamMember['name']): ?>
            <div class="col-sm-4">
                <div class="team-member mb-2">
                    <div class="team-member-header text-center">
                        <img src="<?php echo e(isset($teamMember['avatar']) ? asset('files/' . $teamMember['avatar']) : asset('assets/images/default-avatar.png')); ?>" alt="avatar" width="80" class="rounded-circle"/>
                        <h6 class="mt-3">
                            <span class="team-member-name"><?php echo e($teamMember['name']); ?></span>
                            <span><?php echo e($teamMember['position']); ?></span>
                        </h6>
                    </div>
                    <div class="team-member-about text-justify text-muted">
                        <?php echo e($teamMember['bio']); ?>

                    </div>
                    <div class="team-member-social clearfix">
                        <ul class="list-unstyled p-0">
                            <li class="float-left pr-2"><a href="<?php echo e($teamMember['instagram'] ?: '#'); ?>" class="text-muted"><span class="fab fa-instagram"></span></a></li>
                            <li class="float-left pr-2"><a href="<?php echo e($teamMember['twitter'] ?: '#'); ?>" class="text-muted"><span class="fab fa-twitter"></span></a></li>
                            <li class="float-left pr-2"><a href="<?php echo e($teamMember['telegram'] ?: '#'); ?>" class="text-muted"><span class="fab fa-telegram"></span></a></li>
                            <li class="float-left pr-2"><a href="<?php echo e($teamMember['linkedin'] ?: '#'); ?>" class="text-muted"><span class="fab fa-linkedin"></span></a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
    <?php endif; ?>
</main>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.public-master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/iphoneun/public_html/peygirsho.ir/patronic/resources/views/main.blade.php ENDPATH**/ ?>