@php $termsContent = \App\Models\CmsPage::where('page_name', \App\Models\CmsPage::TERMS_AND_CONDITIONS)->first(); @endphp @if($termsContent && !auth()->user()->terms_accepted) @endif