Implemented repository mapper, and venta show
This commit is contained in:
28
app/resources/views/ventas/show/forma_pago/total.blade.php
Normal file
28
app/resources/views/ventas/show/forma_pago/total.blade.php
Normal 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>
|
||||
Δ
|
||||
{{$format->ufs($venta->saldo())}}
|
||||
({{$format->number($venta->saldo() / $venta->valor * 100, 2)}} %)
|
||||
</strong>
|
||||
@endif
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
Reference in New Issue
Block a user