@include('global.header-links') @include('partials.sidebar')
@include('partials.header')

Registered Users

Selected
@if (session()->has('message'))
{{ session()->get('message') }}
@elseif(session()->has('error'))
{{ session()->get('error') }}
@endif @foreach ($users as $user) @if ($user->roles[0]->name == 'User') @endif @endforeach
User Name Weight Height Phone Difficulties Status Actions
{{ ucfirst($user->profile->first_name ?? '--') }} {{ $user->profile->last_name ?? '--' }} {{-- {{ date('F d, Y', strtotime($user->profile->date_of_birth ?? '--')) }} --}} {{ $user->profile->weight ?? '--' }} {{ $user->profile->weight_unit ?? '--' }} {{--
{{ $user->last_login ? Carbon\Carbon::parse($user->last_login)->diffForHumans() : 'Not logged-in yet' }}
--}}
{{ $user->profile->height ?? '--' }} {{ $user->profile->height_unit ?? '--' }} {{ $user->profile->phone ?? '--' }} {{ $user->profile->difficulties ?? '--' }} @if ($user->otp_status == 1) @if ($user->status == 1)
Activate
@else
Inactive
@endif @elseif($user->otp_status == 0)
OTP not verified
@endif
Actions
@include('partials.footer')
@include('global.footer-links')