@extends('layouts.app') @section('title', 'MAC Reseller Details - ISP ERP System') @section('page-title', 'MAC Reseller Details') @push('styles') @endpush @section('content')
MAC Reseller Information
Company Name: {{ $pppoeMacReseller->company_name ?? 'N/A' }}
Full Name: {{ $pppoeMacReseller->name }}
Email Address: {{ $pppoeMacReseller->email }}
Phone Number: {{ $pppoeMacReseller->phone ?? 'N/A' }}
Role: @if($pppoeMacReseller->role === 'mac_reseller') MAC Reseller @elseif($pppoeMacReseller->role === 'reseller') Reseller @else {{ ucfirst($pppoeMacReseller->role) }} @endif
Status: @if($pppoeMacReseller->status === 'active') Active @else Inactive @endif
Created At: {{ $pppoeMacReseller->created_at->format('M d, Y h:i A') }}
Last Updated: {{ $pppoeMacReseller->updated_at->format('M d, Y h:i A') }}
@if($pppoeMacReseller->address)
Address: {{ $pppoeMacReseller->address }}
@endif
Additional Information
User ID: #{{ $pppoeMacReseller->id }}
Account Type: PPPoE MAC Reseller
@if($pppoeMacReseller->assignedBranches()->count() > 0)
Assigned Branches ({{ $pppoeMacReseller->assignedBranches()->count() }})
@foreach($pppoeMacReseller->assignedBranches as $branch)
{{ $branch->name }}
@endforeach
@endif @if($pppoeMacReseller->assignedServers()->count() > 0)
Assigned Servers ({{ $pppoeMacReseller->assignedServers()->count() }})
@foreach($pppoeMacReseller->assignedServers as $server)
{{ $server->name }}
@endforeach
@endif
@php $allAssignedMenuIds = $pppoeMacReseller->activeMenus()->pluck('menus.id')->toArray(); $parentMenus = $pppoeMacReseller->activeMenus()->whereNull('menus.parent_id')->with('children')->get(); @endphp @if(count($allAssignedMenuIds) > 0)
Assigned Menus ({{ count($allAssignedMenuIds) }})
@foreach($parentMenus as $menu)
@if($menu->icon) @else @endif {{ $menu->name }}
@php $children = $pppoeMacReseller->activeMenus()->where('menus.parent_id', $menu->id)->get(); @endphp @if($children->count() > 0)
@foreach($children as $child)
@if($child->icon) @else @endif {{ $child->name }}
@endforeach
@endif
@endforeach
@endif
@endsection