@if ($data->count()>0)

Tổng số {{ $data->count() }} sản phẩm Xóa all

@endif
@foreach($data as $product)
{{ asset($product->name) }} @if ($product->sale) -{{ $product->sale }}% @endif

{{$product->name}}

{{ $product->price_after_sale?number_format($product->price_after_sale):"Liên hệ" }} {{ $unit }} @if ($product->sale>0) {{ number_format($product->price) }} {{ $unit }} @endif

Thông tin chính

  • Model: {{ $product->model?$product->model:"Chưa xác định" }}
  • Tình trạng: {{ $product->tinhtrang?$product->tinhtrang:"Chưa xác định" }}
  • Bảo hành: {{ $product->baohanh?$product->baohanh:"Chưa xác định" }}
  • Xuất sứ: {{ $product->xuatsu?$product->xuatsu:"Chưa xác định" }}

Thuộc tính

    @foreach ($attribute as $item)
  • {{ $item->name }} @php $tex="Chưa xác định"; @endphp @foreach ($item->childs()->orderby('order')->get() as $attr) @php if($product->attributes()->get()->pluck('id')->contains($attr->id)){ $tex=$attr->name ; } @endphp @endforeach {{ $tex }}
  • @endforeach
@endforeach