@if(!empty($post) && $post->post_type == 1)
@elseif(!empty($post) && $post->post_type == 3)
@php
$images = $post->image ? json_decode($post->image, true) : [];
@endphp
@if(!empty($images))
@foreach($images as $image)
@endforeach
@else
@endif
@elseif(!empty($post) && $post->post_type == 2)
@php
$videos = $post->post_video ? json_decode($post->post_video, true) : [];
@endphp
@if(!empty($videos))
@foreach($videos as $video)
@endforeach
@else
@endif
@endif