@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">Dashboard</div>
                <?php if(auth()->user()->isAdmin == 1)
                {?>
                <div class="panel-body">
                <a href="{{url('admin/routes')}}">Admin</a>
                </div>
                <?php } 
                elseif(auth()->user()->isAdmin == 2)
                {?>
                <div class="panel-body">
                <a href="{{url('manager/routes')}}">Manager</a>
                </div>
                <?php } 
                elseif(auth()->user()->isAdmin == 3)
                {?>
                <div class="panel-body">
                <a href="{{url('manager/routes')}}">Manager</a>
                </div>
                <?php } 
                else echo '<div class="panel-heading">Normal User</div>';?>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection

