@extends($_layout . 'master') @section('title', $page_title) @include($_lib . 'register-meta') @section('body.class', 'product-page') @section('content')
@include($_template . 'page-header', [ 'title' => $page_title, // 'sub_title' => isset($category) && $category->description ? $category->description : $dynamic->description, ]) @php // $tabs = get_product_page_tabs(); $t = $tab ?? 'all'; @endphp
@include($_current . 'templates.tabs', ['tab' => $t]) @if ($t == 'all' && $html->product_banners && $html->product_banners->getComponents())
{!! $html->product_banners->components !!}
@endif @if (count($products))
@foreach ($products as $product)
@php $hasPromo = $product->hasPromo(); $reviews = $product->getReviewData(); $hasOption = $product->hasOption(); $u = $product->getViewUrl(); $style_attrs = $product->style_attrs ?? []; $downPercent = $product->getDownPercent(); $listPrice = $product->priceFormat('list'); $finalPrice = $style_attrs ? get_currency_format($product->checkPrice($product->style_attrs)) : $product->priceFormat('final'); @endphp @if ($product->labels && count($product->labels))
@foreach ($product->labels as $label)
{{$label->title}}
@endforeach
@endif

{{ $product->name }}

{{ $finalPrice }}
@endforeach
{{ $products->links($_template . 'pagination') }}
@else
Không tìm thấy kết quả phù hợp!
@endif
@endsection