@extends('layouts.landing') @section('title') Users @endsection @section('content')

Users

{{number_format($user_count)}} users

@php $user_no = 1 @endphp @if($user_count > 0) @foreach($users as $user) @php $user_no++ @endphp @php $package = App\Models\Package::where('id', $user->package_id)->first(); @endphp @if(isset($user->package_id)) @else @endif @if($user->status == 'active') @else @endif @if($user->isSuperAdmin() || $user->isTenant() || $user->isAdmin()) @else @endif @endforeach @else
{{--
No user found
--}}
@endif
s/n User Email Phone Date of Birth State Country Referrals Points Year of CTB Package Active Date Expiry Date Status Role Joined at Action
{{$user_no}} {{$user->first_name}} {{$user->last_name}} {{$user->email}} {{$user->phone}} @if(isset($user->dob)) {{\Carbon\Carbon::parse($user->dob)->toFormattedDateString()}} @else -- @endif {{$user->state}} {{$user->country}} {{$user->referrals}} {{$user->points}} {{$user->ctb}}{{$package ? $package->name : '--'}} {{\Carbon\Carbon::parse($user->active_date)->toFormattedDateString()}} {{\Carbon\Carbon::parse($user->expiry_date)->toFormattedDateString()}} -- -- Active Inactive Admin Alumni {{\Carbon\Carbon::parse($user->created_at)->toFormattedDateString()}}
@include('elements.edit-role') @endsection