@extends('layouts.reportes') @section('content')
REPORTE DE COMPRA DE UNIFORMES
@for ($i = 0; $i < count($compras); $i ++) @php $t_can = 0; $t_cost = 0; $t_precio = 0; @endphp @foreach ($compras[$i] as $art) @php $t_can += $art->cantidad ; $t_cost += $art->uniforme->p_costo; $t_precio += $art->uniforme->p_costo * $art->cantidad; @endphp @endforeach @endfor
# UNIFORME CANTIDAD PRECIO COSTO TOTAL FECHA DE COMPRA TIPO RECIBO USUARIO
{{$art->id}} {{$art->uniforme->nombre}} - TALLA: {{$art->uniforme->talla}} {{$art->cantidad}} Q. {{number_format($art->uniforme->p_costo, 2)}} Q. {{number_format($art->uniforme->p_costo * $art->cantidad, 2)}} {{$art->f_compra}} {{$art->tipo}} {{$art->recibo}} {{$art->user->name}}
- - {{$t_can}} unidades Q. {{number_format($t_cost, 2)}} Q. {{number_format($t_precio, 2)}} - - -
--------- --------- --------- --------- --------- --------- --------- ---------
@endsection