Created
March 11, 2020 03:41
-
-
Save parzibyte/49cb05e0461fcf778e07318e6f8db4ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('maestra') | |
@section("titulo", "Inicio") | |
@section('contenido') | |
<div class="col-12 text-center"> | |
<h1>Bienvenido, {{Auth::user()->name}}</h1> | |
</div> | |
@foreach([ | |
["productos", "ventas", "vender", "clientes"], | |
["usuarios", "acerca_de", "soporte"] | |
] as $modulos) | |
<div class="col-12 pb-2"> | |
<div class="row"> | |
@foreach($modulos as $modulo) | |
<div class="col-12 col-md-3"> | |
<div class="card"> | |
<img class="card-img-top" src="{{url("/img/$modulo.png")}}"> | |
<div class="card-body"> | |
<h5 class="card-title"> | |
{{$modulo === "acerca_de" ? "Acerca de" : ucwords($modulo)}} | |
</h5> | |
<a href="{{route("$modulo.index")}}" class="btn btn-success"> | |
Ir a {{$modulo === "acerca_de" ? "Acerca de" : ucwords($modulo)}} | |
<i class="fa fa-arrow-right"></i> | |
</a> | |
</div> | |
</div> | |
</div> | |
@endforeach | |
</div> | |
</div> | |
@endforeach | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment