<?php $submodulos = Config::get('constants.herramientas'); ?>
<?php $user = Auth::guard('superadmin')->user(); ?>
@extends('superadmin.layouts.template')
@section('title', 'Herramientas')
@section('content')
    @include('superadmin.layouts.partials.breadcrumbs')
    <div class="page-header position-relative">
        <div class="header-title">
            <h1>Herramientas</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">
                <div class="col-md-3 col-xs-6">
                    <a href="{{ route("superadmin.herramientas.reportes.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-file-text portada_zmdi"></i>
                            </div>
                            <div class="databox-bottom no-padding text-align-center">
                                <span class="databox-text lightcarbon no-margin">Reportes</span>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="col-md-3 col-xs-6 {{ ($user->soporte==1) ? '' : 'd-none' }}">
                    <a href="{{ route("superadmin.herramientas.listas.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-file-text portada_zmdi"></i>
                            </div>
                            <div class="databox-bottom no-padding text-align-center">
                                <span class="databox-text lightcarbon no-margin">Listas</span>
                            </div>
                        </div>
                    </a>
                </div>
                {{--@foreach($submodulos as $key => $value)--}}
                {{--@if(isset($value['soporte']) and  $value['soporte']==1)--}}
                {{--<div class="col-md-3 col-xs-6">--}}
                {{--<a href="{{ route("superadmin.herramientas.".$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>--}}
                {{--@endif--}}
                {{--@endforeach--}}
            </div>
        </div>
    </div>
@endsection