@extends('layouts.app') @section('title', 'PPPoE MAC Reseller Dashboard - ISP ERP System') @section('page-title', 'PPPoE MAC Reseller Dashboard') @push('styles') @endpush @section('content')
| # | User | Company | Password | Phone | Assign | Role | Status | Last Login | Created | Actions | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $resellers->firstItem() + $index }} |
{{ $reseller->name }}
ID: {{ $reseller->id }}
|
{{ $reseller->company_name ?? '-' }}
|
{{ $reseller->email }} | Hidden | @if($reseller->phone) {{ $reseller->phone }} @else - @endif |
@php
$assignedBranches = $reseller->assignedBranches ?? collect();
$assignedServers = $reseller->assignedServers ?? collect();
@endphp
@if($assignedBranches->count() > 0 || $assignedServers->count() > 0)
@if($assignedBranches->count() > 0)
@else
No assignments
@endif
@foreach($assignedBranches->take(2) as $branch)
{{ $branch->name }}
@endforeach
@if($assignedBranches->count() > 2)
+{{ $assignedBranches->count() - 2 }} more
@endif
@endif
@if($assignedServers->count() > 0)
@foreach($assignedServers->take(2) as $server)
{{ $server->name }}
@endforeach
@if($assignedServers->count() > 2)
+{{ $assignedServers->count() - 2 }} more
@endif
@endif
|
{{ ucfirst($reseller->role) }} | @php $statusClass = match($reseller->status) { 'active' => 'success', 'inactive' => 'secondary', 'suspended' => 'warning', 'expired' => 'danger', default => 'secondary' }; @endphp {{ ucfirst($reseller->status) }} |
@if($reseller->last_login)
{{ \Carbon\Carbon::parse($reseller->last_login)->format('M d, Y') }}
{{ \Carbon\Carbon::parse($reseller->last_login)->format('h:i A') }}
|
{{ \Carbon\Carbon::parse($reseller->created_at)->format('M d, Y') }}
{{ \Carbon\Carbon::parse($reseller->created_at)->format('h:i A') }}
|
|