Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 11, 2020 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save parzibyte/49cb05e0461fcf778e07318e6f8db4ba to your computer and use it in GitHub Desktop.
Save parzibyte/49cb05e0461fcf778e07318e6f8db4ba to your computer and use it in GitHub Desktop.
@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&nbsp;{{$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