@extends('clients.layouts.app') @section('title', 'Dashboard') @section('content')
@php $stats = [ ['label' => 'Active Services', 'value' => $details['stats']['productsnumactive'] ?? 0, 'icon' => 'fa-server', 'trend' => '40.35%', 'up' => true], ['label' => 'Total Domains', 'value' => $details['stats']['numactivedomains'] ?? 0, 'icon' => 'fa-globe', 'trend' => '12.4%', 'up' => true], ['label' => 'Pending Invoices', 'value' => $details['stats']['numunpaidinvoices'] ?? 0, 'icon' => 'fa-file-invoice-dollar', 'trend' => '5.2%', 'up' => false], ['label' => 'Support Tickets', 'value' => $details['stats']['numactivetickets'] ?? 0, 'icon' => 'fa-life-ring', 'trend' => '0.00%', 'up' => true], ]; @endphp @foreach($stats as $stat)

{{ $stat['label'] }}

{{ $stat['value'] }}

Growth rate
{{ $stat['trend'] }}
@endforeach
@include('partials.modules.domain_search', [ 'content' => [ 'title' => 'Find Your Perfect Domain Name', 'subtitle' => 'Search for available domains and register them instantly' ], 'popularTlds' => \App\Models\DomainPrice::orderBy('price', 'asc')->take(7)->get() ])

Active Services

View All
@forelse($services['products']['product'] ?? [] as $service) @empty @endforelse
Service Status Date Action

{{ $service['name'] }}

{{ $service['domain'] ?: 'N/A' }}

{{ $service['status'] }} {{ \Carbon\Carbon::parse($service['regdate'])->format('d M, Y') }}
No active services to show

Support Tickets

View All
@forelse(collect($tickets['tickets']['ticket'] ?? [])->take(5) as $ticket) @empty @endforelse
Subject Status Last Reply Action

{{ Str::limit($ticket['subject'], 30) }}

#{{ $ticket['tid'] }}

{{ $ticket['status'] }} {{ \Carbon\Carbon::parse($ticket['lastreply'])->diffForHumans() }} Open
No recent tickets

Recent Invoices

View All
@forelse(collect($invoices['invoices']['invoice'] ?? [])->take(5) as $invoice) @empty @endforelse
ID Amount Date Action

INV-{{ $invoice['id'] }}

{{ $invoice['total'] }}

{{ \Carbon\Carbon::parse($invoice['date'])->format('d M, Y') }} View
No recent invoices
@endsection @push('scripts') @endpush