Cargando

{{-- Buscador --}}
Clientes
{{-- tabla clientes --}}
@foreach ($clientes as $cliente) @if (!empty($cliente->tarifa_id)) @endif @if (!empty($cliente->promocion_id)) @endif @php $date1 = new DateTime(strtr(strval($fechaActual), '/', '-')); $date2 = new DateTime(strtr(strval($cliente->fecha_final), '/', '-')); @endphp @if ($date1 < $date2) @endif @if ($date1 > $date2) @endif @if ($date1 == $date2) @endif @if (!empty($cliente->tarifa_id)) @elseif(!empty($cliente->promocion_id)) @endif @endforeach
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') ?? '' }} {{ $cliente->tarifa->servicio->nombre }} @if ($cliente->tarifa->servicio->nombre != 'Spotify Premium' && $cliente->tarifa->servicio->nombre != 'Youtube Premium') {{ $cliente->tarifa->pantallas }} Pantallas @endif {{ $cliente->promocion->nombre }} {{ Carbon\Carbon::parse($cliente->fecha_final)->format('M j') ?? '' }} @php $diff = $date1->diff($date2); echo $diff->days . ' dias'; @endphp @php echo 'Vencido'; @endphp @php echo 'Vence hoy!!'; @endphp
@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
{{-- whatsapp --}} Notificar
{{ $clientes->links() }}
{{-- Modal ver clientes --}}
@if (!empty($consulta_historial))
@if (!empty($consulta_historial->tarifa_id))

{{ $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)

{{ $cuenta->servicio->nombre }}
@if (!empty($cuenta->servicio->ver_url)) - URL: {{ $cuenta->servicio->url }} @else @foreach ($cuenta->perfil as $perfil) @if ($consulta_historial->id == $perfil->historial_id) - Perfil {{ $perfil->perfil }} @if (!empty($cuenta->servicio->perfiles)) @switch($perfil->perfil) @case(1) : {{ $msj->clave_1 }} @break @case(2) : {{ $msj->clave_2 }} @break @case(3) : {{ $msj->clave_3 }} @break @case(4) : {{ $msj->clave_4 }} @break @case(5) : {{ $msj->clave_5 }} @break @case(6) : {{ $msj->clave_6 }} @break @default @endswitch @endif @endif @endforeach @endif
Email: {{ $cuenta->correo }}
Pass: {{ $cuenta->password }}
@endforeach

@endif @if (!empty($consulta_historial->promocion_id))

{{ $consulta_historial->promocion->nombre ?? '' }}

${{ number_format($consulta_historial->promocion->precio) }}

{{ $consulta_historial->promocion->dias }} Días

@foreach ($consulta_historial->cuentas->unique() as $cuenta)

{{ $cuenta->servicio->nombre }}
@foreach ($cuenta->perfil as $perfil) @if ($consulta_historial->id == $perfil->historial_id) - Perfil {{ $perfil->perfil }} @endif @endforeach
Email: {{ $cuenta->correo }}
Pass: {{ $cuenta->password }}
@endforeach

@endif
{{--
--}}

{{ $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

@endif
{{-- Modal ver vencidos --}}
@if (!empty($vencidHoy))
Los siguientes servicios vencen hoy:
@foreach ($vencidHoy as $h) @if (!empty($h->tarifa_id)) @endif @if (!empty($h->promocion_id)) @endif @if (!empty($h->tarifa_id)) @elseif(!empty($h->promocion_id)) @endif @endforeach
Nombre Fecha de Compra Servicio
{{ $h->cliente->name ?? '' }} {{ Carbon\Carbon::parse($h->created_at)->locale('co')->Format('d M Y, h:m a') ?? '' }} {{ $h->tarifa->servicio->nombre }} @if ($h->tarifa->servicio->nombre != 'Spotify Premium' && $h->tarifa->servicio->nombre != 'Youtube Premium') {{ $h->tarifa->pantallas }} Pantallas @endif {{ $h->promocion->nombre }}
@endif