Cargando
Contraseña
{{ $this->consultaPassword($cliente->id) }}
Servicio
@if (!empty($cliente->tarifa->servicio)){{ $cliente->tarifa->servicio->nombre }} @if ($cliente->tarifa->servicio->nombre != 'Spotify Premium' && $cliente->tarifa->servicio->nombre != 'Youtube Premium') {{ $cliente->tarifa->pantallas }} Pantallas @endif
@endif @if (!empty($cliente->promocion_id)){{ $cliente->promocion->nombre }}
@endifEstado
{{ $cliente->estado ?? '' }}
Restante
@php $date1 = new DateTime(strtr(strval($fechaActual), '/', '-')); $date2 = new DateTime(strtr(strval($cliente->fecha_final), '/', '-')); @endphp @if ($date1 < $date2)
@php $diff = $date1->diff($date2); echo $diff->days . ' dias'; @endphp
@endif @if ($date1 > $date2)@php echo 'Vencido'; @endphp
@endif @if ($date1 == $date2)@php echo 'Vence hoy!!'; @endphp
@endifAcciones
@if (!empty($cliente->tarifa_id))
Ver
@if (!empty($cliente->cuentas->first()->estado) && !empty($cliente->tarifa->servicio)) @if ($cliente->cuentas->first()->estado == 'pendiente' && $cliente->tarifa->servicio->renovacion == true) {{-- renovar --}} @if (Auth::user()->saldo->valor >= $cliente->tarifa->valor)Renovar
@elseRenovar
@endif @endif @endif
Ver
@if (!empty($cliente->cuentas->first()->estado) && !empty($cliente->tarifa->servicio)) @if ($cliente->cuentas->first()->estado == 'pendiente' && $cliente->tarifa->servicio->renovacion == true) {{-- renovar --}} @if (Auth::user()->saldo->valor >= $cliente->tarifa->valor)Renovar
@elseRenovar
@endif @endif @endif{{ $cliente->estado ?? '' }}
{{ $cliente->estado ?? '' }}
Ver
@if (!empty($cliente->cuentas->first()->estado) && !empty($cliente->tarifa->servicio)) @if ($cliente->cuentas->first()->estado == 'pendiente' && $cliente->tarifa->servicio->renovacion == true) {{-- renovar --}} @if (Auth::user()->saldo->valor >= $cliente->tarifa->valor)Renovar
@elseRenovar
@endif @endif @endifVer
@if (!empty($cliente->cuentas->first()->estado) && !empty($cliente->tarifa->servicio)) @if ($cliente->cuentas->first()->estado == 'pendiente' && $cliente->tarifa->servicio->renovacion == true) {{-- renovar --}} @if (Auth::user()->saldo->valor >= $cliente->tarifa->valor)Renovar
@elseRenovar
@endif @endif @endif{{ $consulta_historial->tarifa->servicio->nombre . ' - ' . $consulta_historial->tarifa->pantallas . ' Pantalla' ?? '' }}
${{ number_format($consulta_historial->tarifa->valor) }}
{{ $consulta_historial->tarifa->dias }} Días
@foreach ($consulta_historial->cuentas->unique() as $cuenta)
{{ $consulta_historial->promocion->nombre ?? '' }}
${{ number_format($consulta_historial->promocion->precio) }}
{{ $consulta_historial->promocion->dias }} Días
@foreach ($consulta_historial->cuentas->unique() as $cuenta)
{{ $consulta_historial->cliente->name ?? '' }}
{{ $consulta_historial->cliente->email ?? '' }}
{{ Carbon\Carbon::parse($consulta_historial->fecha_inicio)->format('Y/m/d') ?? '' }}
{{ Carbon\Carbon::parse($consulta_historial->fecha_final)->diffInDays() ?? '' }} días
| Nombre | Fecha de Compra | Servicio | |||
|---|---|---|---|---|---|
| {{ $h->cliente->name ?? '' }} | {{ Carbon\Carbon::parse($h->created_at)->locale('co')->Format('d M Y, h:m a') ?? '' }} | @if (!empty($h->tarifa_id)){{ $h->tarifa->servicio->nombre }} @if ($h->tarifa->servicio->nombre != 'Spotify Premium' && $h->tarifa->servicio->nombre != 'Youtube Premium') {{ $h->tarifa->pantallas }} Pantallas @endif | @endif @if (!empty($h->promocion_id)){{ $h->promocion->nombre }} | @endif @if (!empty($h->tarifa_id))@elseif(!empty($h->promocion_id)) | @endif |