Implemented repository mapper, and venta show

This commit is contained in:
Juan Pablo Vial
2023-08-08 23:53:49 -04:00
parent ef30ae67d2
commit 59825259b6
111 changed files with 2766 additions and 612 deletions

View File

@ -0,0 +1,28 @@
<tr class="{{$venta->saldo() < 0 ? 'positive' : ($venta->saldo() > 0 ? 'error' : '')}}">
<td>
<strong>
Total
</strong>
</td>
<td></td>
<td class="right aligned">
<strong>
{{$format->ufs($formaPago->total())}}
</strong>
</td>
<td class="right aligned">
<strong>
{{$format->pesos($formaPago->total('pesos'))}}
</strong>
</td>
<td class="right aligned" >
@if ($venta->saldo() / $venta->valor > 0.01)
<strong>
&Delta;
{{$format->ufs($venta->saldo())}}
({{$format->number($venta->saldo() / $venta->valor * 100, 2)}} %)
</strong>
@endif
</td>
<td></td>
</tr>