@extends('layouts.landing') @section('title') Users @endsection @section('content')
{{number_format($user_count)}} users
|
s/n | User | Phone | Date of Birth | State | Country | Referrals | Points | Year of CTB | Package | Active Date | Expiry Date | Status | Role | Joined at | Action | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{$user_no}} | @php $user_no++ @endphp{{$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}} | @php $package = App\Models\Package::where('id', $user->package_id)->first(); @endphp{{$package ? $package->name : '--'}} | @if(isset($user->package_id)){{\Carbon\Carbon::parse($user->active_date)->toFormattedDateString()}} | {{\Carbon\Carbon::parse($user->expiry_date)->toFormattedDateString()}} | @else-- | -- | @endif @if($user->status == 'active')Active | @elseInactive | @endif @if($user->isSuperAdmin() || $user->isTenant() || $user->isAdmin())Admin | @elseAlumni | @endif{{\Carbon\Carbon::parse($user->created_at)->toFormattedDateString()}} |