@extends('layouts.website') @section('title', 'All Products') @section('content')
non
create2fit
{{ $product->name }}
{{ number_format($product->price, 2) }} NGN
SIZE:
{{-- use loop to mimic sizes available for this product --}} @foreach ($product->sizes as $item) {{-- ui for when product is in cart --}} @if (($options = getProductInCart($product)?->options) && isset($options['size'])) $options['size'] == $item->name, ])>{{ $item->name }} @else {{-- ui for when product is not in cart --}} {{ $item->name }} @endif @endforeach
@if (productInCart($product))
@csrf
@else
@csrf
@endif
{{-- description container --}}
    @foreach (['description', 'size guide'] as $title)
  • {{ $title }}
    @if ($title == 'description') @endif @if ($title == 'size guide') @endif
  • @endforeach

related products

@include('partials.all_products_page.related-products-section')
@endsection