@extends('admin.admin_dashboard') @section('admin') @php //users $users = App\Models\User::where('role', 'user')->where('status', 1)->latest()->get(); @endphp

All Users : {{ count($users) }}

{{--
--}} @foreach($users as $key => $user) @php $UserSubscription = $user->subscriptions() ->where('status', 'active') ->where('end_date', '>', now()) ->where('id', '!=', 6) ->latest() ->first(); @endphp @endforeach
s/n fullnames email phone_number country ce_zone ministry/church category timestamp email_verification_status user_subscription_status actions
{{ $key+1 }} {{ $user->title }} {{ $user->firstname }} {{ $user->surname }} {{ $user->email }} {{ $user->phone_number }} {{ $user->country }} {{$user->ce_zone}} {{$user->church}} {{ $user->zone }} {{ $user->created_at->format('Y F jS - h:ia') }} @if($user->email_verified_at != null) verified @else unverified @endif @if ($UserSubscription) Subscribed @else Unsubscribed @endif @if (Auth::user()->can('users.edit')) Edit @endif @if (Auth::user()->can('users.delete')) Delete @endif
@endsection