-
- {{ $historial->fecha_inicio }}
+ @if ($promocion)
+
+
+
+ | Fecha inicio |
+ Servicio |
+ Pantallas |
+ valor |
+ Utilidad |
+
+
+ @php
+ $totalUtilidades = 0;
+ @endphp
+
+ @foreach ($historiales as $historial)
+
+ |
+ {{ $historial->fecha_inicio }}
+ |
+
+ @foreach ($historial->promocion->tarifas as $tarifa)
+ {{ $tarifa->servicio->nombre }}
+ @endforeach
+ |
+
+ @foreach ($historial->promocion->tarifas as $tarifa)
+ {{ $tarifa->pantallas }}
+ @endforeach
+ |
+
+ @foreach ($historial->promocion->tarifas as $tarifa)
+ ${{ number_format($tarifa->servicio->precio ?? 0, 2, ',', '.') }}
+ @endforeach
+ |
+
+ @foreach ($historial->promocion->tarifas as $tarifa)
+ ${{ number_format($tarifa->servicio->precio / $tarifa->pantallas ?? 0, 2, ',', '.') }}
+ @endforeach
+ |
+
+ @foreach ($historial->promocion->tarifas as $tarifa)
+ @php
+ $totalUtilidades += $tarifa->servicio->precio / $tarifa->pantallas;
+ @endphp
+ @endforeach
+ @endforeach
+
+ |
+
|
-
- {{ $historial->tarifa->servicio->nombre }}
+ |
+
|
-
- {{ $historial->tarifa->pantallas }}
+ |
+
|
-
- ${{ $historial->tarifa->servicio->precio }}
- |
-
- ${{ number_format($historial->tarifa->servicio->precio / $historial->tarifa->pantallas ?? 0, 2, ',', '.') }}
+ |
+
+ Utilidad Total
+
+ |
+
+
+ $ {{ number_format($totalUtilidades ?? 0, 2, ',', '.') }}
+
|
- @php
- $totalUtilidades += $historial->tarifa->servicio->precio / $historial->tarifa->pantallas;
- @endphp
- @endforeach
-
- |
+ |
+
+ @else
+
+
+
+ | Fecha inicio |
+ Servicio |
+ Pantallas |
+ valor |
+ Utilidad |
+
+
+ @php
+ $totalUtilidades = 0;
+ @endphp
+
+ @foreach ($historiales as $historial)
+
+ |
+ {{ $historial->fecha_inicio }}
+ |
+
+ {{ $historial->tarifa->servicio->nombre }}
+ |
+
+ {{ $historial->tarifa->pantallas }}
+ |
+
+ ${{ $historial->tarifa->servicio->precio }}
+ |
+
+ ${{ number_format($historial->tarifa->servicio->precio / $historial->tarifa->pantallas ?? 0, 2, ',', '.') }}
+ |
+
+ @php
+ $totalUtilidades += $historial->tarifa->servicio->precio / $historial->tarifa->pantallas;
+ @endphp
+ @endforeach
+
+ |
- |
-
+ |
+
- |
-
+ |
+
- |
-
-
- Utilidad Total
-
- |
-
-
- $ {{ number_format($totalUtilidades ?? 0, 2, ',', '.') }}
-
- |
-
-
-
+ |
+
+
+ Utilidad Total
+
+ |
+
+
+ $ {{ number_format($totalUtilidades ?? 0, 2, ',', '.') }}
+
+ |
+
+