@include('livewire.tenant.common.modalHead')
| Nombre | P. Original | Descuento | P. Final | |
|---|---|---|---|---|
| {{ $product->name }} | ${{ number_format($product->price, 0, ',', '.') }} |
@if ($type == 'amount')
$
@endif
@if ($type == 'percent')
%
@endif
|
@if ($type == 'percent')
${{ number_format($product->price - ($product->discount / 100) * $product->price) }} | @else${{ number_format($product->price - $product->discount) }} | @endif