<?php $sidebar = Config::get('constants.modulos');?>
<?php $user = Auth::guard('superadmin')->user(); ?>
@extends('superadmin.layouts.template')
@section('title', 'Inicio')
@section('content')
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li class="active">
                <i class="fa fa-home"></i>Inicio
            </li>
        </ul>
    </div>
    <div class="page-header position-relative">
        <div class="header-title">
            <h1>Inicio</h1>
        </div>
        <div class="header-buttons">
            @include('superadmin.layouts.partials.headerbuttons')
        </div>
    </div>
    <div class="page-body">
        <div class="row">
            <div class="col-md-12">
                @foreach($sidebar as $key => $value)
                    <div class="col-md-3 col-xs-6">
                        <a href="{{ route("superadmin.".$value['route'].".index") }}" class="d-block">
                            <div class="databox databox-lg databox-vertical databox-inverted bg-white databox-shadowed databox-portrait">
                                <div class="databox-top">
                                    <i class="zmdi zmdi-{{$value['icon']}} portada_zmdi"></i>
                                </div>
                                <div class="databox-bottom no-padding text-align-center">
                                    <span class="databox-text lightcarbon no-margin">{{$value['text']}}</span>
                                </div>
                            </div>
                        </a>
                    </div>
                @endforeach
                {{--<div class="col-md-3 col-xs-6 {{ ($user->soporte==1) ? '' : 'd-none' }}">--}}
                    {{--<a href="{{ route("superadmin.tickets.index") }}" class="d-block">--}}
                        {{--<div class="databox databox-lg databox-vertical databox-inverted bg-white databox-shadowed databox-portrait">--}}
                            {{--<div class="databox-top"><i class="zmdi zmdi-settings portada_zmdi"></i></div>--}}
                            {{--<div class="databox-bottom no-padding text-align-center">--}}
                                {{--<span class="databox-text lightcarbon no-margin">Tickets</span>--}}
                            {{--</div>--}}
                        {{--</div>--}}
                    {{--</a>--}}
                {{--</div>--}}
            </div>
        </div>
    </div>
@endsection