{{ __('Dashboard') }}

@trans_db('welcome_message', 'dashboard', 'Bine ai venit'), {{ Auth::user()->name }}!

{{-- Alerte Sistem - afișate pe un singur rând --}} @if(!empty($systemAlerts))
@foreach($systemAlerts as $alert)
{{ $alert['message'] }}
@if($alert['link']) Rezolvă → @endif
@endforeach
@endif {{-- Plan Info Card - full width --}} @if(Auth::user()->role === 'reseller')

{{ Auth::user()->resellerPlan?->name ?? 'Reseller' }}

Pachet Reseller activ

@if(Auth::user()->resellerPlan && Auth::user()->resellerPlan->price > 0)

{{ number_format(Auth::user()->resellerPlan->price, 0) }} RON

/ lună

@else Plan Gratuit @endif
@else

{{ Auth::user()->plan?->name ?? 'Fără plan' }}

{{ Auth::user()->plan ? 'Plan activ' : 'Alege un plan pentru a începe' }}

@if(Auth::user()->plan && Auth::user()->plan->price > 0)

{{ number_format(Auth::user()->plan->price, 0) }} RON

/ lună

@else Gratuit @endif Upgrade
@endif {{-- Statistici Principale - 4 carduri pe același rând --}}
{{-- Zone DNS --}}
{{ $stats['zones']['count'] }} @if(Auth::user()->role !== 'admin') / {{ $stats['zones']['limit'] }} @endif

Zone DNS

@if(Auth::user()->role !== 'admin')
@endif
{{-- Înregistrări DNS --}}
{{ $stats['records']['count'] }} @if(Auth::user()->role !== 'admin') / {{ $stats['records']['limit'] }} @endif

Înregistrări DNS

@if(Auth::user()->role !== 'admin')
@endif
{{-- Query-uri DNS --}}
{{ $stats['queries']['formatted'] }} @if(Auth::user()->role !== 'admin' && $stats['queries']['limit'] > 0) / {{ $stats['queries']['limit_formatted'] }} @endif

Query-uri DNS (lună)

@if(Auth::user()->role !== 'admin' && $stats['queries']['limit'] > 0)
@endif
{{-- Uptime Nameservere --}}
{{ $stats['uptime']['percentage'] }}%

Uptime NS

{{ $stats['uptime']['online'] }}/{{ $stats['uptime']['total'] }} online

{{-- Grafic Query-uri și Notificări --}}
{{-- Grafic Query-uri (2/3) --}}

Query-uri DNS (ultimele 7 zile)

Total: {{ number_format($queryChart['total']) }}
{{-- Notificări (1/3) --}}

Notificări @if($unreadCount > 0) {{ $unreadCount }} @endif

Vezi toate
@forelse($unreadNotifications as $notification)

{{ $notification->data['message'] ?? 'Notificare' }}

{{ $notification->created_at->diffForHumans() }}

@empty

Nicio notificare necitită

@endforelse
{{-- Acțiuni Rapide - stil compact pe un singur rând --}}

Acțiuni Rapide

{{-- Zone DNS Recente și Nameservere --}}
{{-- Zone DNS Recente (2/3) --}} {{-- Nameservere Alocate (1/3) --}}

Nameservere

@if(count($nameservers) > 0)
@foreach($nameservers as $ns)

{{ $ns['hostname'] }}

{{ $ns['ip_address'] }}

@if($ns['response_time']) {{ $ns['response_time'] }}ms @endif
@endforeach
@else

Nu ai nameservere alocate

@endif
@push('scripts') @endpush