Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
@section("titulo", "Inicio")
<div class="col-12 text-center">
<h1>Bienvenido, {{Auth::user()->name}}</h1>
["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)}}
<a href="{{route("$modulo.index")}}" class="btn btn-success">
Ir a&nbsp;{{$modulo === "acerca_de" ? "Acerca de" : ucwords($modulo)}}
<i class="fa fa-arrow-right"></i>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment