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,32 @@
<tr>
<td
@if ($subsidio !== null)
rowspan="2"
@endif
>
Subsidio
@if ($subsidio !== null)
<a href="{{$urls->base}}/venta/{{$venta->id}}/subsidio">
<i class="edit icon"></i>
</a>
@else
<a href="{{$urls->base}}/venta/{{$venta->id}}/subsidio/add">
<i class="plus icon"></i>
</a>
@endif
</td>
@if ($subsidio !== null)
<td>Ahorro</td>
<td class="right aligned">{{$format->ufs($subsidio->ahorro->valor())}}</td>
<td class="right aligned">{{$format->pesos($subsidio->ahorro->valor)}}</td>
<td colspan="2"></td>
</tr>
<tr>
<td>Subsidio</td>
<td class="right aligned">{{$format->ufs($subsidio->ahorro->valor())}}</td>
<td class="right aligned">{{$format->pesos($subsidio->ahorro->valor)}}</td>
<td colspan="2"></td>
@else
<td colspan="5"></td>
@endif
</tr>