Cargando
| Nombre | Correo | Compra | Servicio | Vence | Restante | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $cliente->nombre_cliente ?? $cliente->cliente->name }} | {{ $cliente->cliente->email ?? '' }} | {{ Carbon\Carbon::parse($cliente->created_at)->locale('co')->Format('d M Y, h:m a') ?? '' }} | @if (!empty($cliente->tarifa_id)){{ $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 }} | @endif{{ Carbon\Carbon::parse($cliente->fecha_final)->format('M j') ?? '' }} | @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 | @endif @if (!empty($cliente->tarifa_id))
@if (!empty($cliente->cuentas->first()->estado))
@if ($cliente->cuentas->first()->estado == 'pendiente' && $cliente->tarifa->servicio->renovacion == true)
{{-- renovar --}}
@if (Auth::user()->saldo->valor >= $cliente->tarifa->valor)
@else
@endif
@endif
@endif
{{-- whatsapp --}}
Notificar
|
@elseif(!empty($cliente->promocion_id))
{{-- whatsapp --}}
Notificar
|
@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 |