@extends('layouts.app')

@section('content')
    @include('dashboard.layout')
    @if (Auth::check())
        @include($view)
    @else
        <div>{{ session('error') ?? 'You must log in to enter this page.' }}</div>
        <a href="{{ route('login') }}">Login</a>
    @endif
@endsection

@section('content-body')
    @yield('route-content')
@endsection