@php use Illuminate\Support\Str; @endphp
@section('title', 'Alumnos') {{-- @include('admin.user.edit') --}} @if (session('mensaje'))
{{ session('mensaje') }}
@endif
GESTIÓN DE USUARIOS
{{-- --}} Crear alumno
loading-.....
@if ($usuarios->count()) @foreach ($usuarios as $item) @elseif($item->url && Str::contains($item->url, 'registro')) Registro @else Asignar @endif @if($item->carteras->isEmpty()) @else @php $total = 0; $pagadooo = 0; @endphp @foreach ($item->carteras as $cartera) @php $total += $cartera->abonos->sum('valor'); $pagadooo += $cartera->saldo @endphp @endforeach @endif @if ($item->suscripcions->isEmpty()) @else @endif @endforeach @else
No existe coincidencias...
@endif
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 @if (!empty($item->getRoleNames())) @foreach ($item->getRoleNames() as $it)
{{ $it }}
@endforeach @endif
{{ $item->perfils->name ?? 'Pendiente' }} No tiene cartera Crear cartera No tiene cartera {{ $total }} {{ $pagadooo }} No tiene suscripcion No tiene suscripcion @if($item->suscripcions->first()->estado == 'activo') {{ $item->suscripcions->first()->estado }} @else {{ $item->suscripcions->first()->estado }} @endif {{ $item->suscripcions->first()->dias }}
{{ $usuarios->links() }}
Mostrando {{ $usuarios->firstItem() }} a {{ $usuarios->lastItem() }} del total de {{ $usuarios->total() }} registros
@push('js') @endpush @push('css') @endpush