{{-- regular object attribute --}} @php $value = data_get($entry, $column['name']); if( !empty($value) ) { // if attribute casting is used, convert to object if (is_array($value)) { $video = (object)$value; } elseif (is_string($value)) { $video = json_decode($value); } else { $video = $value; } $bgColor = $video->provider == 'vimeo' ? '#00ADEF' : '#DA2724'; } @endphp @if( isset($video) ) {{$video->title}} @else - @endif