@extends('layouts.app') @section('title', 'Resellers') @section('content')
@if(session('success'))
@endif @if(session('error'))
@endif @if(session('warning'))
@endif @if($errors->any())
@endif

Resellers

Manage reseller accounts and their access

All Invoice Payment Receive Connection Type
Total Resellers
{{ $stats['total_resellers'] }}
Active Resellers
{{ $stats['active_resellers'] }}
Inactive Resellers
{{ $stats['inactive_resellers'] }}
New Resellers (Monthly)
{{ $stats['new_resellers_monthly'] }}
Clear
Resellers List
@if($users->count() > 0)
@foreach($users as $index => $user) @endforeach
SN User Company Parent Reseller Connection Type Email Password Phone Assign Employee Role Status Last Login Created Actions
{{ $index + 1 }}
{{ $user->name }}
ID: {{ $user->id }}
{{ $user->company_name ?? '-' }}
@if($user->parentUser)
{{ $user->parentUser->name }}
{{ $user->parentUser->company_name ?? 'No Company' }}
@else
Top Level
@endif
@if($user->connectionTypeRelation)
{{ $user->connectionTypeRelation->name }}
@if($user->connectionTypeRelation->isp)
{{ $user->connectionTypeRelation->isp->name }}
@endif @else - @endif
{{ $user->email }} @if($user->plain_password) Click to view @elseif($user->password) Click to view @else - @endif @if($user->phone) {{ $user->phone }} @else - @endif @if($user->assignedEmployees && $user->assignedEmployees->count() > 0)
@foreach($user->assignedEmployees as $assignedEmployee) @endforeach
@else
@endif
@if($user->role) {{ ucfirst($user->role) }} @else - @endif {{ $user->is_active ? 'Active' : 'Inactive' }} @if($user->last_login_at) {{ $user->last_login_at->format('M d, Y H:i') }} @else Never @endif {{ $user->created_at->format('M d, Y') }}
@else
No resellers found

Start by adding your first reseller.

@endif @if($users->hasPages())
{{ $users->withQueryString()->links() }}
@endif
@push('scripts') @endpush @endsection