<?php $__env->startSection('title',$news->name.' - '.$yazar->name.' '.' - '.config('settings.site_title_devam', 'Varsayılan Başlık')); ?>
<?php $__env->startSection('description',$news->short_description ?? config('settings.site_description', 'Varsayılan Başlık')); ?>



<?php $__env->startSection('content'); ?>

<div class="container-page-custom custom-page-news"  id="site-content" style="background: #fff; padding: 10px;"">
    <div class="newsPage container">
        <div class="row">
            <div class="col-md-12">
                    <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="/" title="Köşe Yazıları">Köşe Yazıları</a></li>
                <li class="breadcrumb-item"><a href="#" title="<?php echo e($yazar->name); ?>"><?php echo e($yazar->name); ?></a></li>
                <li class="breadcrumb-item active" aria-current="page"><?php echo e($news->name); ?></li>
            </ol>
        </nav>

            </div>
                <div class="col-md-6"><div class="ads-1">
                        <div class="author-card">
                        <img src="<?php if(isset($yazar->image)): ?> <?php echo e(config('settings.panel_url', 'Varsayılan Başlık')); ?>/uploads/images/<?php echo e($yazar->image); ?> <?php else: ?> https://via.placeholder.com/100 <?php endif; ?> " alt="<?php echo e($yazar->name); ?>">
            <div class="author-info">
                <h3 class="mb-0"><?php echo e($yazar->name); ?></h3>
                <p class="mb-2"><?php echo e($yazar->mail); ?></p>
                <a href="/yazar/<?php echo e($yazar->slug); ?>" title="<?php echo e($yazar->name); ?>" class="btn btn-all-articles">Tüm Yazıları</a>
            </div>
        </div>
                </div>
            </div>
             <div class="col-md-6"><div class="ads-1">
                    <div class="container">
                        <div class="d-flex align-items-center">
                            <?php echo $yazar->ads_side; ?>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-9">
                
                  <div class="row">
        <div class="col-12">
            <div class="d-flex justify-content-between align-items-center">
                                <div class="row" style="width:100%">

                <div class="col-md-9">
                    <div class="article-title"><?php echo e($news->name); ?></div>
                    <div class="article-date"><?php echo e($news->date); ?> <?php echo e($news->time); ?></div>
                </div>
                <div class="share-icons col-md-3">
                    <span>Paylaş:</span>
                    <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo e(config('settings.site_url', 'Varsayılan Başlık')); ?>yazar/<?php echo e($yazar->slug); ?>/<?php echo e($news->slug); ?>"  target="_blank" title="Facebook'ta Paylaş"><i class="bi bi-facebook"></i></a>
                    <a href="https://twitter.com/intent/tweet?url=<?php echo e(config('settings.site_url', 'Varsayılan Başlık')); ?>/yazar/<?php echo e($yazar->slug); ?>/<?php echo e($news->slug); ?>&text=<?php echo e($news->name ?? ''); ?>"  target="_blank" title="Twitter'da Paylaş"><i class="bi bi-twitter"></i></a>
                    <a href="https://api.whatsapp.com/send?text=<?php echo e(config('settings.site_url', 'Varsayılan Başlık')); ?>/yazar/<?php echo e($yazar->slug); ?>/<?php echo e($news->slug); ?>%20<?php echo e($news->name ?? ''); ?>"  target="_blank" title="Whatsapp'ta Paylaş"><i class="bi bi-whatsapp"></i></a>
                    <a href="https://www.linkedin.com/sharing/share-offsite/?url=<?php echo e(config('settings.site_url', 'Varsayılan Başlık')); ?>/yazar/<?php echo e($yazar->slug); ?>/<?php echo e($news->slug); ?>"  target="_blank" title="Linkedin'da Paylaş"><i class="bi bi-linkedin"></i></a>
                </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Article Content -->
    <div class="row">
        <div class="col-12">
            <div class="article-sub-content">
                <p><?php echo e($news->short_description); ?></p>
            </div>
        </div>
    </div>

    <!-- Article Image -->
    <div class="row">
        <div class="col-12">
            <img src="<?php echo e(config('settings.panel_url', 'Varsayılan Başlık')); ?>/uploads/images/<?php echo e($news->news_image); ?>" alt="<?php echo e($news->name); ?>" class="article-image">
        </div>
    </div>

    <div class="row">
        <div class="col-12">
            <div class="article-content">
                <?php 
                $description=$news->description;
                $description=str_replace('http://panel.ogaste.com/','/',$description);
                $description=str_replace('https://panel.ogaste.com/','/',$description);
                $description=str_replace('height','/',$description);
                $description=str_replace('oembed url','iframe frameborder="0" allowfullscreen="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" style="width: 100%;height: 500px" src',$description);
            $description=str_replace('</oembed>','</iframe>',$description);
                ?>

                <?php echo $description; ?>

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

    <!-- Article Footer -->


    <div class="row">
        <div class="col-12 article-footer">
    <?php if(isset($news->kaynak)): ?> <p>Kaynak: AA</p> <?php endif; ?>
    <?php if(isset($news->tag)): ?>
    <?php 

    $tagParcala=explode(',',$news->tag);

    ?>
            <div class="article-tags">
            <?php $__currentLoopData = $tagParcala; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <a href="#"><?php echo e($tag); ?></a>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <?php endif; ?>
        </div>
    </div>


            </div>
            <div class="col-md-3">
                <div class="row">
                    <div class="col-md-12" style="margin-top:20px"><div class="row">
                        
                           <div class="authors-articles-header">Yazarın Diğer Yazıları</div> 
        <div class="list-group">
             <?php $__currentLoopData = $yazarHaberler; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $haber): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="list-group-item authors-article-item" style="padding:20px">
                <div class="authors-article-title">
                        <?php echo getNewsLink($haber); ?><?php echo e($haber->name); ?></a></div>
                <div class="authors-article-date"><?php echo e($haber->date); ?> <?php echo e($haber->time); ?></div>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
           
        </div>
        </div>


                    </div>
                    <div class="col-md-12" style="margin-top:20px"> <div class="row">
                     <div class="authors-articles-header">Diğer Yazarlar</div>
        <div class="list-group">
             <?php $__currentLoopData = $yazarlar; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $yazar): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
               <?php if(isset($yazar->lastNews)): ?>
            <div class="list-group-item authors-article-item" style="padding:20px">

                <div class="authors-article-title">
                        <?php echo getNewsLink($yazar->lastNews); ?><?php echo e($yazar->name); ?></a></div>
                <div class="authors-article-date"><?php echo e($yazar->lastNews->name ?? ''); ?></div>
            </div>
            <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
           
        </div>
</div>
                </div>


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

</div>

<?php $__env->stopSection(); ?>


<?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/habercode/domains/demo.habercode.com/public_html/resources/views/author_news.blade.php ENDPATH**/ ?>