{{-- whatsapp css --}} {{-- toastr --}} {{-- rtl css are goes here --}} @if ($currentLanguageInfo->direction == 1) @endif @php $primaryColor = $basicInfo->primary_color; // check, whether color has '#' or not, will return 0 or 1 function checkColorCode($color) { return preg_match('/^#[a-f0-9]{6}/i', $color); } // if, primary color value does not contain '#', then add '#' before color value if (isset($primaryColor) && checkColorCode($primaryColor) == 0) { $primaryColor = '#' . $primaryColor; } // change decimal point into hex value for opacity function rgb($color = null) { if (!$color) { echo ''; } $hex = htmlspecialchars($color); [$r, $g, $b] = sscanf($hex, '#%02x%02x%02x'); echo "$r, $g, $b"; } @endphp @yield('style')