@extends('layouts.app')

@section('title')
    {{ config('app.name') }}
@stop

@section('header')
    <h1 class="w3-center">Menú</h1>
@stop

@section('content')
<div class="w3-content">
    <h4 class="w3-center">Bienvenido {{ Auth::user()->email }}</h4>
    <div class="w3-margin">
        <div class="w3-row-padding">
            <div class="w3-col s12 m4 l4">
                <a href="{{ route('erc.recibos.create') }}">
                    <div class="w3-card-4 w3-center w3-padding w3-round w3-text-grey w3-hover-theme">
                        <h2><span class="fa fa-plus fa-5x"></span></h2>
                        <h2>Generar</h2>
                    </div>
                </a>
            </div>

            <div class="w3-col s12 m4 l4">
                <div class="w3-card-4 w3-round">
                    <a href="{{ route('erc.recibos.index') }}">
                        <div class="w3-card-4 w3-center w3-padding w3-round w3-text-grey w3-hover-theme">
                            <h2><span class="fa fa-receipt fa-5x"></span></h2>
                            <h2>Recibos</h2>
                        </div>
                    </a>
                </div>
            </div>

            <div class="w3-col s12 m4 l4">
                <div class="w3-card-4 w3-round">
                    <a href="{{ route('erc.recibos.cartera', ['filtro' => '1']) }}">
                        <div class="w3-card-4 w3-center w3-padding w3-round w3-text-grey w3-hover-theme">
                            <h2><span class="fa fa-coins fa-5x"></span></h2>
                            <h2>Cartera</h2>
                        </div>
                    </a>
                </div>
            </div>
        </div>
        <br>
        <div class="w3-row-padding">
            <div class="w3-col s12 m4 l4">
                <a href="{{ route('erc.usuarios.profile', Auth::user()) }}">
                    <div class="w3-card-4 w3-center w3-padding w3-round w3-text-grey w3-hover-theme">
                        <h2><span class="fa fa-user fa-5x"></span></h2>
                        <h2>Perfil</h2>
                    </div>
                </a>
            </div>

            <div class="w3-col s12 m4 l4">
                <div class="w3-card-4 w3-round">
                    <a href="{{ route('erc.usuarios.index') }}">
                        <div class="w3-card-4 w3-center w3-padding w3-round w3-text-grey w3-hover-theme">
                            <h2><span class="fa fa-users fa-5x"></span></h2>
                            <h2>Usuarios</h2>
                        </div>
                    </a>
                </div>
            </div>

            <div class="w3-col s12 m4 l4">
                <div class="w3-card-4 w3-round">
                    <a href="{{ route('logout') }}"
                        onclick="event.preventDefault();
                        document.getElementById('logout-form').submit();">
                        <div class="w3-card-4 w3-center w3-padding w3-round w3-text-grey w3-hover-theme">
                            <h2><span class="fa fa-sign-out-alt fa-5x"></span></h2>
                            <h2>Salir</h2>
                        </div>
                    </a>
                    <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">{{ csrf_field() }}</form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
