{!! theme()->getSvgIcon("icons/duotune/general/gen021.svg", "svg-icon-2 svg-icon-lg-1 svg-icon-gray-500 position-absolute top-50 ms-5 translate-middle-y") !!}
@php $total = 10; @endphp @for($i = 1; $i <= $total; $i++) @php $user = \App\Core\Data::getSampleUserInfo($i); $user['size'] = '45px'; $user['initials']['font-size'] = 'fs-6'; $user['initials']['font-weight'] = 'fw-bolder'; if ( rand(1, 3) === 2 ) { $user['badge'] = '
'; } $last_seen_options = array('3 hrs', '5 hrs', '20 hrs', '1 day', '1 week', '2 weeks'); $last_seen = $last_seen_options[rand(0, 5)]; $label = ''; $label_index = rand(1, 12); $label_options = array( array('text' => '3', 'state' => 'success'), array('text' => '5', 'state' => 'danger'), array('text' => '2', 'state' => 'success'), array('text' => '6', 'state' => 'success'), array('text' => '9', 'state' => 'warning') ); if (isset($label_options[$label_index])) { $label = $label_options[$label_index]; } @endphp
{{ \App\Core\Components::getAvatar($user) }}
{{ $user['name'] }}
{{ $user['email'] }}
{{ $last_seen }} @if(!empty($label)) {{ $label['text'] }} @endif
@if($i !== $total)
@endif @endfor