@extends('layouts.app') @section('site_title', formatTitle([__('Dashboard'), config('settings.title')])) @section('content')
@include('dashboard.header')
@include('icons.overview', ['class' => 'fill-current width-5 height-5'])
{{ __('Visitors') }}
@include('icons.info', ['class' => 'width-4 height-4 fill-current text-muted'])
@include('stats.growth', ['growthCurrent' => $visitors, 'growthPrevious' => $visitorsOld])
{{ number_format($visitors, 0, __('.'), __(',')) }}
{{ __('Pageviews') }}
@include('icons.info', ['class' => 'width-4 height-4 fill-current text-muted'])
@include('stats.growth', ['growthCurrent' => $pageviews, 'growthPrevious' => $pageviewsOld])
{{ number_format($pageviews, 0, __('.'), __(',')) }}
{{ __('Websites') }}
@include('shared.message') @if(count($websites) == 0) {{ __('No data') }}. @else
@foreach($websites as $website)
{{ number_format($website->visitors->sum('count') ?? 0, 0, __('.'), __(',')) }}
{{ number_format($website->pageviews->sum('count') ?? 0, 0, __('.'), __(',')) }}
@include('icons.stats', ['class' => 'fill-current width-4 height-4'])​ @include('shared.dropdowns.website', ['options' => ['edit' => true, 'stats' => true, 'open' => true, 'delete' => true]])
@endforeach
{{ __('Showing :from-:to of :total', ['from' => $websites->firstItem(), 'to' => $websites->lastItem(), 'total' => $websites->total()]) }}
{{ $websites->onEachSide(1)->links() }}
@endif
@include('shared.sidebars.user') @include('shared.modals.delete_website') @endsection