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

REPORTE {{$nombre}}

@if ($visible) @endif @php $t_inve =0; $t_ven =0; $t_gan =0; @endphp @foreach ($bolsas as $bolsa) @if ($visible) @endif @php $t_inve += $bolsa->p_costo * $bolsa->stock; $t_ven += $bolsa->p_venta * $bolsa->stock; $t_gan += ($bolsa->p_venta - $bolsa->p_costo) * $bolsa->stock; @endphp @endforeach
No BOLSA PRECIO VENTAPRECIO PRECIO COSTO UTILIDAD UNITARIA UTILIDAD TOTALSTOCK DESCRIPCION
{{ $bolsa->id }} {{ $bolsa->nombre }} Q. {{ number_format($bolsa->p_venta, 2) }}Q. {{ number_format($bolsa->p_costo, 2) }} Q. {{ number_format($bolsa->p_venta - $bolsa->p_costo, 2) }} Q. {{ number_format(($bolsa->p_venta - $bolsa->p_costo) * $bolsa->stock, 2) }}{{ $bolsa->stock }} / Minimo {{$bolsa->min_stock}} @php echo $bolsa->decripcion; @endphp
@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