{{ $loop->iteration }} |
{{ $item->serv_name }} |
{{ $item->factor == 1 ? $fact : 1 }} |
{{ $item->cantidad }} |
$ |
{{ number_format($item->valor, 2) }} |
@php
if ($item->factor == 1) {
$sub = $item->valor * $item->cantidad * $fact;
} else {
$sub = $item->valor * $item->cantidad;
}
if ($item->iva == 1) {
$valorIva = $sub * 0.13;
} else {
$valorIva = 0;
}
$total = $sub + $valorIva;
@endphp
$ |
{{ number_format($sub, 2) }} |
$ |
{{ number_format($valorIva, 2) }} |
$ |
{{ number_format($total, 2) }} |
|
@php
$totalCantidad += $item->cantidad;
$totalPunitario += $item->valor;
$totalSTotal += $sub;
$totalIVA += $valorIva;
$totalPago += $total;
@endphp
@endforeach
Monto total |
{{ $totalCantidad }} |
$ |
{{ number_format($totalPunitario, 2) }} |
$ |
{{ number_format($totalSTotal, 2) }} |
$ |
{{ number_format($totalIVA, 2) }} |
$ |
{{ number_format($totalPago, 2) }} |
|