@extends('adminlte::page') @section('content_header')

Compras/Registro de una nueva compra


@stop @section('content')

Ingrese los datos

@csrf
* @error('cantidad') {{$message}} @enderror
@foreach($tmp_compras as $tmp_compra) @php $total_cantidad += $tmp_compra->cantidad; $total_compra += $costo; @endphp @endforeach
Nro Codígo Cantidad Nombre Costo Total Acción
{{$cont++}} {{$tmp_compra->producto->codigo}} {{$tmp_compra->cantidad}} {{$tmp_compra->producto->nombre}} {{$tmp_compra->producto->precio_compra}} {{$costo = $tmp_compra->cantidad * $tmp_compra->producto->precio_compra }}
Total cantidad {{$total_cantidad}} Total compra {{$total_compra}}

* @error('fecha') {{$message}} @enderror
* @error('comprobante') {{$message}} @enderror
* @error('precio_total') {{$message}} @enderror

@stop @section('css') @stop @section('js') @stop