@php $myListing = ''; if (\Auth::check()) { switch (\Auth::user()->type) { case 1: // Vendor $myListing = route('vendor.my.listings'); break; default: $myListing = ''; break; } } @endphp
@guest
@else @if(Auth::check() && Auth::user()->type === 1)
@endif @if(Auth::check() && Auth::user()->type === 0)
@endif @endguest