@extends('master') @section('css') @endsection @section('js') @endsection @section('content')

{{ $subcategory->title }}

@if ($subcategory->content) {!! $subcategory->content !!} @else {!! $subcategory->summary !!} @endif
@if ($product->images()->count() > 1)
@if (Auth::check() && !Auth::user()->is_restricted())
{!! csrf_field() !!}
@endif
@else
@if (Auth::check() && !Auth::user()->is_restricted())
{!! csrf_field() !!}
@endif {{-- {{ $product->title }} --}} {{ $product->title }}
@endif

{{ $product->title }}

@if ($product->code)

Product code: {{ $product->code }}

@endif @if ($product->content) {!! $product->content !!} @else {!! $product->summary !!} @endif @if (!empty($price))

£{{ number_format($price, 2) }} @if (!empty($price_srp))
SRP: £{{ number_format($price_srp, 2) }} @endif

@if (!empty($product->promotion_available) && $product->promotion_available > 0)

A promotion is available for this product. All promotional pricing will be validated on receipt of order.

@endif
{!! csrf_field() !!}

Availability

@if ($stock > 0)

In stock Stock availability is subject to change

@else

Out of stock

@endif
@endif @if ($variants->count()) {{-- This is presumably an @else? --}}
@if (Auth::check() && !Auth::user()->is_restricted()) @endif @foreach ($variants as $variant) @if (Auth::check() && !Auth::user()->is_restricted()) @endif @endforeach
Code{{ $variants->first()->property }}Availability Price SRP Actions
{{ $variant->code }}{{ $variant->value }} @if ($variant->stock > 0) In stock @else Out of stock @endif £{{ number_format($variant->price, 2) }} £{{ number_format($variant->price_srp, 2) }}
{!! csrf_field() !!} {{-- --}}
@if (!empty($variant_promotion_available) && Auth::check() && !Auth::user()->is_restricted())

A promotion is available for this product. All promotional pricing will be validated on receipt of order.

@endif
@endif