@php $date = Date('Y'); if (!is_null($footerTextInfo)) { $footer_text = str_replace('{year}', $date, $footerTextInfo->copyright_text); } @endphp {!! !is_null($footerTextInfo) ? $footer_text : '' !!}