<!DOCTYPE html>
<html lang="en">

<head>
    @include('partials.head')
</head>

<body class="fix-header card-no-border logo-center">
    <div class="preloader">
        <svg class="circular" viewBox="25 25 50 50">
            <circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10" />
        </svg>
    </div>
<div id="main-wrapper">

    @include('partials.topbar')


    @include('partials.sidebar')

    <div class="page-wrapper">
        <div class="container-fluid">
            @if(isset($siteTitle))
            @endif

            <div class="row p-t-20">
                <div class="col-12">

                    @if (Session::has('message'))
                        <div class="alert alert-info">
                            <p>{{ Session::get('message') }}</p>
                        </div>
                    @endif
                    @if ($errors->count() > 0)
                        <div class="alert alert-danger">
                            <ul class="list-unstyled">
                                @foreach($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    @endif
                    @if (Session::has('errormessage'))
                        <div class="alert alert-danger">
                            <p>{{ Session::get('errormessage') }}</p>
                        </div>
                    @endif

                    @yield('content')

                </div>
            </div>
        </div>
    </div>
</div>
    <div class="scroll-to-top"
         style="display: none;">
        <i class="fa fa-arrow-up"></i>
    </div>

    {!! Form::open(['route' => 'auth.logout', 'style' => 'display:none;', 'id' => 'logout']) !!}
        <button type="submit">Logout</button>
    {!! Form::close() !!}

    @include('partials.javascripts')
</body>
</html>
