@extends('admin.layouts.main') @section('title', 'Hosting Accounts') @section('menu', 'Hosting') @section('content')
@forelse($accounts as $account) @empty @endforelse
Domain Client Product Server Status Next Due Actions
{{ $account->domain }} @if($account->user) {{ $account->user->first_name }} {{ $account->user->last_name }} @else N/A @endif {{ $account->product?->name ?? 'N/A' }} {{ $account->server?->name ?? 'N/A' }} @php $badgeClass = match($account->status) { 'active' => 'success', 'pending' => 'warning', 'suspended' => 'danger', 'terminated' => 'dark', 'cancelled' => 'secondary', default => 'secondary', }; @endphp {{ ucfirst($account->status) }} {{ $account->next_due_date?->format('M d, Y') ?? 'N/A' }}
No hosting accounts found
@if($accounts->hasPages()) @endif
@endsection