@php $show = in_array($data->show_image_type, ['image', 'video']); $imgvid = ''; if($show){ if($data->show_image_type == 'image' && $data->image){ $imgvid = '
'.$siteinfo->site_name.'
'; } elseif ($data->show_image_type == 'video' && $data->video_url && $video = $helper->getVideoFromUrl($data->video_url)) { $imgvid = '
'; } } @endphp @if ($style = $data->mark_color && $data->mark_tags ? get_caferio_component_css($component->id, ['color' => $data->mark_color], $data->mark_tags) : false) @endif
bg_color == 'custom' && $data->bg_custom_color) style="background-color: {{$data->bg_custom_color}};" @endif id="caferio-component-{{$component->id}}"> @if (in_array($data->shape_type, ['white', 'grey']))
@endif
@if ($show && $data->image_side=='left') {!! $imgvid !!} @endif
@if ($data->sub_title)

{{ $data->sub_title }}

@endif @if ($data->title)

{!! nl2br($data->title) !!}

@endif

{!! nl2br($data->description) !!}

@if ($data->sign) sign @endif
@if ($show && $data->image_side!='left') {!! $imgvid !!} @endif