@foreach ($usersList as $user) @php $roleArray = $user->getRoleNames()->toArray(); @endphp @endforeach
Name Email ID Role Created Date Status Actions
{{ $user->name }} {{ $user->email }} @foreach ($roleArray as $userRole) {{ $userRole." " }} @endforeach {{ date('m/d/Y', strTotime($user->created_at)) }} {{ $user->status }}
@if($user->status == 'active') @endif
{{ $usersList->links('pagination.default')->with(array('type'=>'ajax')) }}