@php $var = Auth::user()->restaurants()->first()->name ?? ''; if($var) { echo $var; } @endphp
@php $var = Auth::user()->restaurants()->first()->name ?? ''; if($var) { if(strlen($var)>15) { echo substr($var,0,15).'..'; } else { echo $var; } } @endphp
{{ auth()->user()->getName() }}
@if(auth()->user()->profile_image!='')
@else
@endif
{{ __('Logout') }}
@csrf
@yield('content')
@yield('script')