@if(trim($data['product']->full_description) != null)
{!! $data['product']->full_description !!}
@endif
@foreach($data['sub_products'] as $sub_product)
@if(trim($sub_product->full_description) != null)
{!! $sub_product->full_description !!}
@endif
@endforeach
@if(count($data['videos']) > 0)
@foreach($data['videos'] as $video)
@php
$img_path = 'up_data/products/videos/thumbnails/'.$video->video_thumbnail;
if($video->video_thumbnail == '' || !file_exists($img_path))
$img_path = 'up_data/na.jpg';
@endphp
{{ $video->title }}
@endforeach
@endif
@if(count($data['files']) > 0)
@php
$fa_exts = ['.pdf' => 'fa-file-pdf', '.docx' => 'fa-file-word', '.doc' => 'fa-file-word', '.xlsx' => 'fa-file-excel', '.xls' => 'fa-file-excel'];
@endphp
@foreach($data['files'] as $file)
@php
$file_path = 'up_data/products/files/'.$file->name;
if($file->name == '' || !file_exists($file_path))
{
continue;
}
$ext = strrchr($file->name,'.');
@endphp
@endforeach
@endif
@if(count($data['reviews']) > 0)
{{ count($data['reviews']) }} REVIEW FOR {{ strtoupper($data['product']->name) }}
@foreach($data['reviews'] as $review)
@endforeach
@endif
{!! Form::open(array('route' => ['frontend.review.store'], 'method' => 'POST', 'id' => 'review_form')) !!}
@csrf
{!! Form::hidden('product_id', $data['product']->id) !!}
ADD A REVIEW
Thank you! we have received your review and if required we will respond within 48 hours.
{!! Form::close() !!}
{{ $review->name }} - {{ date('M d, Y', strtotime($review->created_at)) }}
{{ $review->comments }}