@foreach ($available_profiles as $profile) @if ('/' . strtolower($profile->name) == Request::route()->getPrefix()) @if ($profile->approved == 1)
@include('user.layouts.nav')
@include('user.layouts.header') {{--
{{ config('app.name', 'MPFI Portal') }}
@guest
{{ __('Login') }}
@if (Route::has('register'))
{{ __('Register') }}
@endif @else
{{ Auth::user()->name }}
{{ __('Logout') }}
@csrf
@endguest
--}}
@yield('content')
@else
ACCESS DENIED
Your {{$profile->name}} profile application is under verification
Back
@endif @else @endif @endforeach