@if(!$isConfigured)

WP Engine API Not Configured

To view website analytics, please configure your WP Engine API credentials in the environment settings.

Add to your .env file:

WPENGINE_API_USERNAME=your-username
WPENGINE_API_PASSWORD=your-password
@else
@if($selectedInstall && count($installs) > 0) @php $currentInstall = collect($installs)->firstWhere('id', $selectedInstall); @endphp

{{ $currentInstall['name'] ?? 'Select Install' }}

{{ $currentInstall['primary_domain'] ?? '' }}

@endif
@foreach($installs as $install) @endforeach
@if($error)

{{ $error }}

@endif @if($loading)
@for($i = 0; $i < 3; $i++)
@endfor
@elseif($metrics)

Snapshot

Past {{ $dateRange }} days: {{ \Carbon\Carbon::today()->subDays((int) $dateRange)->format('M j') }} - {{ \Carbon\Carbon::today()->format('M j, Y') }}

Storage

{{ $metrics['storage'] }}

Bandwidth

{{ $metrics['bandwidth'] }}

Total Visits

{{ $metrics['totalVisits'] }}

Page Views & Visitors

Last refreshed: {{ $metrics['lastRefreshed'] }}

Past {{ $dateRange }} days: {{ \Carbon\Carbon::today()->subDays((int) $dateRange)->format('M j') }} - {{ \Carbon\Carbon::today()->format('M j, Y') }}

Page Views
Unique Visitors

Bandwidth Usage

Last refreshed: {{ $metrics['lastRefreshed'] }}

Past {{ $dateRange }} days: {{ \Carbon\Carbon::today()->subDays((int) $dateRange)->format('M j') }} - {{ \Carbon\Carbon::today()->format('M j, Y') }}

@elseif(!$selectedInstall)

Select an Install

Choose a WP Engine install from the dropdown above to view analytics.

@endif @endif