@extends('landingpage::themes.job_board.layouts.master') {{-- $page is constructed in FrontendController for meta tags --}} {{-- $product is the actual product model instance --}} @section('theme_content')
{{-- Product Images --}}
@if($product->images && !empty($product->images[0])) {{-- Main Image --}} {{ $product->name }} {{-- Thumbnails (if more than one image) --}} @if(count($product->images) > 1)
@foreach($product->images as $image) {{ $product->name }} thumbnail @endforeach
@endif @else
@endif
{{-- Product Details --}}

{{ $product->name }}

@if($product->company)

Sold by: {{ $product->company->name }}

@endif
@if($product->sale_price && $product->sale_price < $product->price) ${{ number_format($product->sale_price, 2) }} ${{ number_format($product->price, 2) }} @else ${{ number_format($product->price, 2) }} @endif
@if($product->sku)

SKU: {{ $product->sku }}

@endif
{!! $product->description !!} {{-- Sanitize if user-generated --}}
{{-- Add to Cart Button / Stock Status --}} @if($product->stock_quantity !== null)

{{ $product->stock_quantity > 0 ? $product->stock_quantity . ' in stock' : 'Out of stock' }}

@endif
@endsection