@extends('layouts.reportes') @section('content')

REPORTE {{$nombre}}

@if ($visible) @endif @php $t_inve =0; $t_ven =0; $t_gan =0; @endphp @foreach ($uniformes as $uniforme) @if ($visible) @endif @php $t_inve += $uniforme->p_costo * $uniforme->stock; $t_ven += $uniforme->p_venta * $uniforme->stock; $t_gan += ($uniforme->p_venta - $uniforme->p_costo) * $uniforme->stock; @endphp @endforeach
No NOMBRE TALLA CANTIDAD PRECIO DE VENTAPRECIO COSTO UTILIDAD UNITARIA UTILIDAD TOTALDESCRIPCION
{{ $uniforme->id }} {{ $uniforme->nombre }} {{ $uniforme->talla }} {{ $uniforme->stock }} / Minimo: {{$uniforme->minio_stock}} Q. {{ number_format($uniforme->p_venta, 2) }}Q. {{ number_format($uniforme->p_costo, 2) }} Q. {{ number_format($uniforme->p_venta - $uniforme->p_costo, 2) }} Q. {{ number_format(($uniforme->p_venta - $uniforme->p_costo) * $uniforme->stock, 2) }}{{ $uniforme->description }}
@if ($visible)

TOTAL DE INVERSION: Q. {{number_format($t_inve, 2)}}

TOTAL DE VENTAS: Q. {{number_format($t_ven, 2)}}

TOTAL DE GANANCIA: Q. {{number_format($t_gan, 2)}}

@endif @endsection