<?php
    use App\Helpers\Template as Template;
    use App\Helpers\URL;
    
    $name         = $item['name'];
    $thumb        = asset('images/article/' . $item['thumb']);
   

    if ($showCategory) {
        $linkCategory  =  URL::linkCategory($item['category_id'], $item['category_name']);
    }

    $linkArticle  = URL::linkArticle($item['id'], $item['name']);
    $created      = Template::showDatetimeFrontend($item['created']);

    if($lenghtContent === "full") {
        $content      = $item['content'];
    }else {
        $content      = Template::showContent($item['content'], $lenghtContent);
    }
?> <div class="post_content"> <?php if($showCategory): ?> <div class="post_category cat_technology"><a href="<?php echo e($linkCategory); ?>"><?php echo e($item['category_name']); ?></a></div> <?php endif; ?> <div class="post_title"><a href="<?php echo e($linkArticle); ?>"><?php echo e($name); ?></a></div> <div class="post_info d-flex flex-row align-items-center justify-content-start"> <div class="post_author d-flex flex-row align-items-center justify-content-start"> <div><div class="post_author_image"><img src="<?php echo e(asset('news/images/author_1.jpg')); ?>" alt=""></div></div> <div class="post_author_name"><a href="#">hailan</a></div> </div> <div class="post_date"><a href="#"><?php echo e($created); ?></a></div> </div> <?php if($lenghtContent > 0): ?> <div class="post_text"> <p><?php echo e($content); ?></p> </div> <?php endif; ?> <?php if($lenghtContent == "full"): ?> <div class="post_text"> <p><?php echo $content; ?></p> </div> <?php endif; ?> </div><?php /**PATH D:\xampp\htdocs\offline_laravel_duongle\resources\views/news/partials/article/content.blade.php ENDPATH**/ ?>