@php $tabs = [ 'logs' => ['label' => __('Logs'), 'icon' => 'heroicon-o-document-text'], 'stats' => ['label' => __('Statistics'), 'icon' => 'heroicon-o-chart-bar'], 'activity' => ['label' => __('Activity Log'), 'icon' => 'heroicon-o-clipboard-document-list'], ]; @endphp @if(in_array($activeTab, ['logs', 'stats'], true)) @if(count($this->getDomainOptions()) > 0) {{ __('Select Domain') }} {{ __('Choose the domain you want to view logs for.') }}
@foreach($this->getDomainOptions() as $value => $label) @endforeach
@if($selectedDomain) @if($activeTab === 'stats') @if($statsGenerated) {{ __('Statistics Report Ready') }} {{ __('Traffic analysis report has been generated for :domain', ['domain' => $selectedDomain]) }} {{ __('View Report') }} @endif @endif @if($activeTab === 'logs') {{ __('Log Viewer') }} {{ __('Viewing :type for :domain', ['type' => $logType === 'access' ? __('access log') : __('error log'), 'domain' => $selectedDomain]) }} @if(!empty($logInfo)) ({{ $logInfo['file_size'] ?? '' }}, {{ __(':lines lines', ['lines' => $logInfo['lines'] ?? 100]) }}) @endif
{{ __('Access Log') }} {{ __('Error Log') }}
@if($logContent)
@else {{ __('No Log Entries') }} {{ $logType === 'access' ? __('No access log entries found. Logs will appear after visitors access your site.') : __('No error log entries found. This is good - your site has no errors.') }} @endif
@endif @endif @else

{{ __('No Domains Yet') }}

{{ __('Add a domain first to view logs and statistics.') }}

{{ __('Add Domain') }}
@endif @endif @if($activeTab === 'activity') {{ __('Activity Log') }} {{ __('Recent actions performed in your account.') }}
@forelse($this->getActivityLogs() as $log) @empty @endforelse
{{ __('Time') }} {{ __('Category') }} {{ __('Action') }} {{ __('Description') }} {{ __('IP') }}
{{ $log->created_at?->format('Y-m-d H:i') }} {{ $log->category }} {{ $log->action }} {{ $log->description }} {{ $log->ip_address }}
{{ __('No activity recorded yet.') }}
@endif