@extends("layout.index") @section("main")
@foreach ($doc->items as $item)
@php $data = false; if(!empty($items[$item->type][$item->id])){ $data = $items[$item->type][$item->id]; } @endphp @if ($data) @if($item->type == "images" || $item->type == "inline_gallery") @if (count($data['images'])>1)
@else @if($item->type == "images") @endif type == "images")data-fslightbox="lightbox"@endif class="lazy first"> @if($item->type == "images") @endif @endif @endif @if($item->type == "video") @if (!empty($data['thumb_video'])) @else @endif
@endif @if($item->type == "embed") @if (!empty($data['thumb_video'])) @elseif (empty($data['thumb']) && !empty($data['embed_data']['image'])) @else @endif
@endif @if($item->type == "text") {!!$data['body']!!} @endif @endif
@endforeach
@endsection