@php use Illuminate\Support\Str; @endphp
ID @if ($sort == 'id') @if ($direction == 'desc') @else @endif @else @endif | NAME @if ($sort == 'name') @if ($direction == 'desc') @else @endif @else @endif | EMAIL @if ($sort == 'email') @if ($direction == 'desc') @else @endif @else @endif | Enlace a Imporsuit | SESSION | ROL | PERFIL | Cartera - Pagado | Cartera - Deuda | Suscripcion - Estado | Suscripcion - Días | OPTION | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $item->id }} | {{ $item->name }} | {{ $item->email }} | @if($item->url && !Str::contains($item->url, 'registro') ) Ir a Imporsuit | @elseif($item->url && Str::contains($item->url, 'registro')) Registro @else Asignar @endif
@if (!empty($item->getRoleNames()))
@foreach ($item->getRoleNames() as $it)
{{ $it }}@endforeach @endif |
{{ $item->perfils->name ?? 'Pendiente' }} | @if($item->carteras->isEmpty())No tiene cartera Crear cartera | No tiene cartera | @else @php $total = 0; $pagadooo = 0; @endphp @foreach ($item->carteras as $cartera) @php $total += $cartera->abonos->sum('valor'); $pagadooo += $cartera->saldo @endphp @endforeach{{ $total }} | {{ $pagadooo }} | @endif @if ($item->suscripcions->isEmpty())No tiene suscripcion | No tiene suscripcion | @else@if($item->suscripcions->first()->estado == 'activo') {{ $item->suscripcions->first()->estado }} @else {{ $item->suscripcions->first()->estado }} @endif | {{ $item->suscripcions->first()->dias }} | @endif||