15 lines
399 B
PHP
15 lines
399 B
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
@include('dashboard.layout')
|
|
@if (Auth::check())
|
|
@include($view)
|
|
@else
|
|
<div class="text-red-500">{{ session('error') ?? 'You must log in to enter this page.' }}</div>
|
|
<a href="{{ route('login') }}" class="text-blue-500">Login</a>
|
|
@endif
|
|
@endsection
|
|
|
|
@section('content-body')
|
|
@yield('route-content')
|
|
@endsection |