Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<div class="row">
<div class="col-12 col-md-6">
<form action="{{route("terminarOCancelarVenta")}}" method="post">
@csrf
<div class="form-group">
<label for="id_cliente">Cliente</label>
<select required class="form-control" name="id_cliente" id="id_cliente">
@foreach($clientes as $cliente)
<option value="{{$cliente->id}}">{{$cliente->nombre}}</option>
@endforeach
</select>
</div>
@if(session("productos") !== null)
<div class="form-group">
<button name="accion" value="terminar" type="submit" class="btn btn-success">Terminar
venta
</button>
<button name="accion" value="cancelar" type="submit" class="btn btn-danger">Cancelar
venta
</button>
</div>
@endif
</form>
</div>
<div class="col-12 col-md-6">
<form action="{{route("agregarProductoVenta")}}" method="post">
@csrf
<div class="form-group">
<label for="codigo">Código de barras</label>
<input id="codigo" autocomplete="off" required autofocus name="codigo" type="text"
class="form-control"
placeholder="Código de barras">
</div>
</form>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment