@extends('layouts.app') @if( Route::currentRouteName() == 'user-index' ) @section('title', 'User List') @else @section('title', 'View All User List') @endif @section('content')

{{ Route::currentRouteName() == 'user-index' ? 'User List' : 'All User List' }}

@if( Route::currentRouteName() == 'user-view-all' ) @endif
@if ( !$users->isEmpty() )
@endif @if( Route::currentRouteName() == 'user-index' ) @if ( !$users->isEmpty() )
@else
@endif Create New
@endif
@if ( $users->isEmpty() )

- N/A -

@else
@if( Route::currentRouteName() == 'user-view-all' ) @endif {{----}} @foreach ($users as $index => $user) @if( Route::currentRouteName() == 'user-view-all' ) @endif {{----}} @endforeach
No Name Email Job Title ServingStatusVerifiedHealth CertAction
{{ $index + 1 }} {{ $user->getName() }} {{ $user->email }} {{ empty($user->details->job->job_title) ? '-' : $user->details->job->job_title }} {{ $user->details->getServingPeriodString()}}{{ $user->active ? 'Active' : 'Resigned' }} @if (empty($user->details->job_id)) @else @endif @if ($user->details->health_cert_url) @else @endif @if( Route::currentRouteName() == 'user-index' ) @if( $user->details->gender && $user->details->marital_status && $user->details->joined_date ) @endif @endif
{!! $users->links('pagination::bootstrap-4') !!}
@endif
@if( Route::currentRouteName() == 'user-index' ) @endif
@endsection