@php $class = 'home'; if(!empty($category_data)){ $class = $category_data->link; } @endphp @include('partials.header') @include('partials.search') @yield('content') @include('partials.footer') {{-- --}}