@extends('layouts.main') @section('title', 'Products') @section('main')

Products in {{ $category->name }}

Back to Categories
@foreach ($products as $product)
{{ $product->name }}
{{ $product->name }}
{{ $product->brand }}
@php $descriptions = json_decode($product->description, true); @endphp @if(!empty($descriptions[0]))

{{ $descriptions[0] }}

@else

No description available.

@endif

Price: ${{ number_format($product->base_product['listed_price'], 2) }}

In Stock: {{ $product->base_product['in_stock'] == 'yes' ? 'Yes' : 'No' }}

{{-- View Details--}} View Details
@endforeach
@endsection @section('scripts') @endsection