@extends('layouts.front.front') @section('content')
@if($product->images->isNotEmpty()) @if($product->images->count() > 6)
@foreach($product->images as $key => $image)
thumbnail
@endforeach
@else
@foreach($product->images as $key => $image)
thumbnail
@endforeach
@endif @endif

{{$product->name}}

{{$product->sub_title}}

{!! html_entity_decode($product->medium_description) !!}

@if($product->specification) {!! html_entity_decode($product->specification->body ?? "N/A") !!} @else N/A @endif

@if($product->manual_warranties->isNotEmpty()) @foreach($product->manual_warranties as $warranty)
{{$warranty->name ?? "N/A"}}
@if ($warranty->sub_title)

{{$warranty->sub_title ?? "N/A"}}

@endif
Download : {{$warranty->get_size('storage/files/product/document/')}} KB Format : {{$warranty->file_type}} Modified : {{$warranty->last_modified('storage/files/product/document/')}}
@endforeach @endif

@if($product->order_information) {!! html_entity_decode($product->order_information->body ?? "N/A") !!} @else N/A @endif

Specifications

@if($product->specification) {!!html_entity_decode($product->specification->body)!!} @else N/A @endif
@if($product->manual_warranties->isNotEmpty() || $product->catalogues->isNotEmpty())

Manuals & Warranties

@if($product->manual_warranties->isNotEmpty()) @foreach($product->manual_warranties as $warranty)
{{$warranty->name ?? "N/A"}}
@if($warranty->sub_title)

{{$warranty->sub_title ?? "N/A"}}

@endif
Download : {{$warranty->get_size('storage/files/product/document/')}} KB Format : {{$warranty->file_type}} Modified : {{$warranty->last_modified('storage/files/product/document/')}}
@if($warranty->check_file_exist()) @endif
@endforeach @endif @if($product->catalogues->isNotEmpty())
Catelogue
@foreach($product->catalogues as $catalogue)
{{$catalogue->name}}
@if ($catalogue->sub_title)

{{$catalogue->sub_title ?? "N/A"}}

@endif
Download : {{$catalogue->get_size('storage/files/product/document/')}} KB Format : {{$catalogue->file_type}} Modified : {{$catalogue->last_modified('storage/files/product/document/')}}
@if($catalogue->check_file_exist()) @endif
@endforeach @endif
@endif @if ($product->order_information)

Ordering Information

{!! html_entity_decode($product->order_information->body ?? "N/A") !!}
@endif @if($related_products->isNotEmpty()) @endif
@endsection