@php $hasImage = isset($model) && $model->image; $getImage = $hasImage ? $model->imageUrl : ''; $getMobileImage = $hasImage ? $model->imageUrl : ''; $textColor = array_key_exists('text_color', $data) && $data['text_color'] ? "color: {$data['text_color']} !important;" : ''; $titleColor = array_key_exists('title_color', $data) && $data['title_color'] ? "color: {$data['title_color']} !important;" : ''; $headingTitleColor = array_key_exists('heading_title_color', $data) && $data['heading_title_color'] ? "color: {$data['heading_title_color']} !important;" : ''; $buttonColor = array_key_exists('button_text_color', $data) && $data['button_text_color'] ? "color: {$data['button_text_color']} !important;" : ''; $buttonBgColor = array_key_exists('button_bg_color', $data) && $data['button_bg_color'] ? "background-color: {$data['button_bg_color']} !important;" : ''; @endphp @if (array_key_exists('display', $data) && $data['display'])