@extends('layouts.app', ['isProduct' => TRUE]) @section('content') @php $supplier = $product->suppliers()->first(); @endphp
@include('pages.product._sidebar')
@if(session('success'))
@endif @if ($errors->any())
@foreach ($errors->all() as $error)

{{ $error }}

@endforeach
@endif

{{ $product->name }}

{{$category->name}} / {{$supplier->name}}
{{ csrf_field() }}
Price
Quantity
Product Description

{!! $product->description !!}

Specification
Supplier {{$supplier->name}}
Ingredients {{$product->ingredients}}
Shelf Life {{$product->shelf_life}}
Allergen Information {{$product->allergen_info}}
Category {{$product->categories()->first()->name}}
SKU {{$product->sku}}
@if($product->categories()->first()->id == 5 || $product->categories()->first()->parent_id == 5)
Challenge 25
@endif
@endsection @section('myjsfile') @if(session('html')) {!! session('html') !!} @endif @endsection