Skip to content

Instantly share code, notes, and snippets.

Created March 6, 2020 20:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
@section("titulo", "Productos")
<div class="row">
<div class="col-12">
<h1>Productos <i class="fa fa-box"></i></h1>
<a href="{{route("productos.create")}}" class="btn btn-success mb-2">Agregar</a>
<div class="table-responsive">
<table class="table table-bordered">
<th>Código de barras</th>
<th>Precio de compra</th>
<th>Precio de venta</th>
@foreach($productos as $producto)
<td>{{$producto->precio_venta - $producto->precio_compra}}</td>
<a class="btn btn-warning" href="{{route("productos.edit",[$producto])}}">
<i class="fa fa-edit"></i>
<form action="{{route("productos.destroy", [$producto])}}" method="post">
<button type="submit" class="btn btn-danger">
<i class="fa fa-trash"></i>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment