<?php
    use App\Helpers\URL;
    $xhtmlBreadcrumb = '';
    foreach ($item['breadcrumb'] as $key => $value) {
        if ($value['parent_id']) {
            $link = URL::linkCategory($value['id'], $value['name']);
            $name = $value['name'];
            $breadcrumb = sprintf('<li><a href="%s">%s</a></li>', $link, $name);
            $xhtmlBreadcrumb .= $breadcrumb;
        }
    }
?> <div class="home"> <div class="parallax_background parallax-window" data-parallax="scroll" data-image-src="<?php echo asset('news/images/footer.jpg'); ?>" data-speed="0.8"></div> <div class="home_content_container"> <div class="container"> <div class="row"> <div class="col"> <div class="home_content"> <div class="home_title"><?php echo $item['name']; ?></div> <div class="breadcrumbs"> <ul class="d-flex flex-row align-items-start justify-content-start"> <li><a href="<?php echo route('home'); ?>">Trang chủ</a></li> <?php echo $xhtmlBreadcrumb; ?> <li><?php echo $item['name']; ?></li> </ul> </div> </div> </div> </div> </div> </div> </div><?php /**PATH D:\xampp\htdocs\offline_laravel_duongle\resources\views/news/block/breadcrumb_article.blade.php ENDPATH**/ ?>