editar
This commit is contained in:
@@ -110,8 +110,7 @@
|
||||
@endphp
|
||||
<tbody class="text-gray-500 select-none pr-4 sm:pr-2">
|
||||
@foreach ($historiales as $historial)
|
||||
<tr
|
||||
class="border-gray-200 text-left w-full sm:pl-4 hover:bg-gray-200 hover:ring-gray-500">
|
||||
<tr class="border-gray-200 text-left w-full sm:pl-4 hover:bg-gray-200 hover:ring-gray-500">
|
||||
<td class="md:pl-[2rem] md:pr-[2rem]">
|
||||
{{ $historial->fecha_inicio }}
|
||||
</td>
|
||||
@@ -127,15 +126,14 @@
|
||||
</td>
|
||||
<td class="md:pl-[2rem] md:pr-[2rem]">
|
||||
@foreach ($historial->promocion->tarifas as $tarifa)
|
||||
<p>${{ number_format($tarifa->servicio->precio ?? 0, 2, ',', '.') }}
|
||||
</p>
|
||||
<p>${{ number_format($tarifa->servicio->precio ?? 0, 0, ',', '.') }}</p>
|
||||
@endforeach
|
||||
</td>
|
||||
<td class="md:pl-[2rem] md:pr-[2rem] text-right">
|
||||
@foreach ($historial->promocion->tarifas as $tarifa)
|
||||
<p>${{ number_format($tarifa->servicio->precio / $tarifa->pantallas ?? 0, 2, ',', '.') }}
|
||||
</p>
|
||||
@endforeach
|
||||
${{$historial->utilidad ?? ''}}
|
||||
{{-- @foreach ($historial->promocion->tarifas as $tarifa)
|
||||
<p>${{ number_format($tarifa->servicio->precio / $tarifa->pantallas ?? 0, 2, ',', '.') }}</p>
|
||||
@endforeach --}}
|
||||
</td>
|
||||
</tr>
|
||||
@foreach ($historial->promocion->tarifas as $tarifa)
|
||||
@@ -185,8 +183,7 @@
|
||||
@endphp
|
||||
<tbody class="text-gray-500 select-none pr-4 sm:pr-2">
|
||||
@foreach ($historiales as $historial)
|
||||
<tr
|
||||
class="border-gray-200 text-left w-full sm:pl-4 hover:bg-gray-200 hover:ring-gray-500">
|
||||
<tr class="border-gray-200 text-left w-full sm:pl-4 hover:bg-gray-200 hover:ring-gray-500">
|
||||
<td class="md:pl-[2rem] md:pr-[2rem]">
|
||||
{{ $historial->fecha_inicio }}
|
||||
</td>
|
||||
@@ -199,8 +196,9 @@
|
||||
<td class="md:pl-[2rem] md:pr-[2rem]">
|
||||
${{ $historial->tarifa->servicio->precio }}
|
||||
</td>
|
||||
<td class="md:pl-[2rem] md:pr-[2rem] text-right">
|
||||
${{ number_format($historial->tarifa->servicio->precio / $historial->tarifa->pantallas ?? 0, 2, ',', '.') }}
|
||||
<td class="md:pl-[2rem] md:p-r[2rem] text-right">
|
||||
${{ $historial->utilidad ?? ''}}
|
||||
{{-- ${{ number_format($historial->tarifa->servicio->precio / $historial->tarifa->pantallas ?? 0, 2, ',', '.') }} --}}
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
@@ -224,7 +222,7 @@
|
||||
</th>
|
||||
<td class="border-t border-b">
|
||||
<p class="flex items-center px-6 py-4 cursor-pointer">
|
||||
$ {{ number_format($totalUtilidades ?? 0, 2, ',', '.') }}
|
||||
$ {{ number_format($totalUtilidades ?? 0, 0, ',', '.') }}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user