From 0c15e3c3b09242d1809b651f01cad1d40c1de271 Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 10 Oct 2023 13:31:17 -0500 Subject: [PATCH] editar --- .../views/livewire/show-planes.blade.php | 14 +++++++---- .../views/livewire/show-utilidades.blade.php | 24 +++++++++---------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/resources/views/livewire/show-planes.blade.php b/resources/views/livewire/show-planes.blade.php index 69c444a..463a5bc 100644 --- a/resources/views/livewire/show-planes.blade.php +++ b/resources/views/livewire/show-planes.blade.php @@ -760,6 +760,7 @@ Pantallas Valor Dias + Utilidad @@ -772,11 +773,12 @@ {{ $tarifa->pantallas ?? '' }} {{ $tarifa->valor ?? '' }} {{ $tarifa->dias ?? '' }} + {{ $tarifa->utilidad ?? '' }} - {{-- @endforeach @endif @@ -805,11 +807,10 @@ class="fixed backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full z-20">
- @if($informacionTarifaRol)
-
+
+
diff --git a/resources/views/livewire/show-utilidades.blade.php b/resources/views/livewire/show-utilidades.blade.php index 481dbdf..5a693e6 100644 --- a/resources/views/livewire/show-utilidades.blade.php +++ b/resources/views/livewire/show-utilidades.blade.php @@ -110,8 +110,7 @@ @endphp @foreach ($historiales as $historial) - + {{ $historial->fecha_inicio }} @@ -127,15 +126,14 @@ @foreach ($historial->promocion->tarifas as $tarifa) -

${{ number_format($tarifa->servicio->precio ?? 0, 2, ',', '.') }} -

+

${{ number_format($tarifa->servicio->precio ?? 0, 0, ',', '.') }}

@endforeach - @foreach ($historial->promocion->tarifas as $tarifa) -

${{ number_format($tarifa->servicio->precio / $tarifa->pantallas ?? 0, 2, ',', '.') }} -

- @endforeach + ${{$historial->utilidad ?? ''}} + {{-- @foreach ($historial->promocion->tarifas as $tarifa) +

${{ number_format($tarifa->servicio->precio / $tarifa->pantallas ?? 0, 2, ',', '.') }}

+ @endforeach --}} @foreach ($historial->promocion->tarifas as $tarifa) @@ -185,8 +183,7 @@ @endphp @foreach ($historiales as $historial) - + {{ $historial->fecha_inicio }} @@ -199,8 +196,9 @@ ${{ $historial->tarifa->servicio->precio }} - - ${{ number_format($historial->tarifa->servicio->precio / $historial->tarifa->pantallas ?? 0, 2, ',', '.') }} + + ${{ $historial->utilidad ?? ''}} + {{-- ${{ number_format($historial->tarifa->servicio->precio / $historial->tarifa->pantallas ?? 0, 2, ',', '.') }} --}} @php @@ -224,7 +222,7 @@

- $ {{ number_format($totalUtilidades ?? 0, 2, ',', '.') }} + $ {{ number_format($totalUtilidades ?? 0, 0, ',', '.') }}