@if (Auth::user()) @if (Auth::user()->tipo == 'contractor' || Auth::user()->advanced_provider == 1) @php $isCompleted = DB::table('contrata_mg_contratantes') // TODO: refactor, this should be deep in the backend ->where('user_id', Auth::user()->id) ->value('completed'); @endphp @if ($isCompleted == 'incomplete') @endif @endif @endif @yield('content')