@if($product->photos()->count() > 0)
@endif
@if($product->logos()->count() > 0)
{{ HTML::image($product->first_photo->path,$product->first_photo->caption) }}
@foreach($photos as $index => $photo)
@if($photo->id !== $product->first_photo->id)
{{ HTML::link($photo->path,$photo->caption,array('data-fancybox-group'=>'gallery','title'=>$photo->caption)) }}
@endif
@endforeach
@foreach($product->logos as $logo)
@endif
{{ HTML::image($logo->path,$logo->caption) }}
@endforeach
Helpful Tips
-
@foreach($product->documents as $document)
- {{{ $document->caption?:$document->filename }}} @endforeach
{{ $page->content }}
@endif