@extends('ui::layouts.base')

@section('body')
    <div class="layout--app">

        <?php

// @todo: move filter somewhere else
$items = app('laravolt.menu.sidebar')->all()->filter(
    function ($item) {
        $skipAuthorization = $item->data('permission') === null;

        return $skipAuthorization || auth()->user()->can($item->data('permission'));
    }
);


?>
        <!-- <nav class="sidebar" style="width:270px">
            <div class="sidebar__wrapper"  data-role="sidebar">

                <div class="sidebar__menu">
                   <h2 class="ui header brand centered">
                        
                    </h2>

                    

                    <div class="ui attached vertical menu fluid" data-role="original-menu">
                        
                    </div>
                </div>
            </div>
        </nav> -->

        

        <div class="content" style="background-image: url('/img/bg.png')">
            <div class="content__inner">
                <div class="ui container-fluid content__body p-1" >
                    @yield('content')
                </div>

            </div>
        </div>
    </div>
@endsection
