Implemented repository mapper, and venta show
This commit is contained in:
@ -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>
|
Reference in New Issue
Block a user