@extends('layouts.app') @section('content') @include('includes.top-nav')
@include('includes.navbar')
Registered Users
@forelse($users as $user) @php $activeSubscription = $user->subscriptions ->where('status', 'active') ->where('end_date', '>=', now()) ->first(); $currentPlan = $activeSubscription ? $activeSubscription->plan : null; @endphp @empty @endforelse
Name Email Company Role Plan Status Actions
Name Email Company Role Plan Status Actions
{{ $user->userDetail?->first_name }} {{ $user->userDetail?->last_name }} {{ $user->email }} {{ $user->userDetail?->company ?? 'N/A' }} @if ($user->role === 1)
Admin
@else
Client
@endif
@if ($user->userDetail?->status === 'accepted')
@csrf
@else - @endif
@if ($user->userDetail?->status === 'accepted')
Accepted
@elseif($user->userDetail?->status === 'rejected')
Rejected
@else
Pending
@endif
@if ($user->userDetail?->status !== 'accepted')
@csrf
@endif @if ($user->userDetail?->status !== 'accepted' && $user->userDetail?->status !== 'rejected')
@csrf
@endif
No registered users found.
@include('includes.footer')
@include('includes.footer-script') @if (session('success')) @endif @if (session('error')) @endif @endsection