@php($portal = request()->is('admin/*') ? 'admin' : (request()->is('franchise/*') ? 'franchise' : 'customer'))
@if(session('status')){{ session('status') }}
@endif
@if($errors->any())@foreach($errors->all() as $error)- {{ $error }}
@endforeach
@endif
@if(auth($portal)->check() && ($portal !== 'customer' || request()->routeIs('customer.*')))
@endif
@yield('content')
@stack('scripts')