@extends('layouts.app') @section('site_title', formatTitle([__('Dashboard'), config('settings.title')])) @section('content')

{{ Auth::user()->name }}

@if(paymentProcessors())
@include('icons.package', ['class' => 'text-muted fill-current width-4 height-4'])
@else
@include('icons.email', ['class' => 'text-muted fill-current width-4 height-4'])
{{ Auth::user()->email }}
@endif
@include('icons.assesment', ['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, __('.'), __(',')) }}

{{ __('Activity') }}

{{ __('Websites') }}
@include('shared.message') @if(count($websites) == 0) {{ __('No data') }}. @else
{{ __('Domain') }}
{{ __('Visitors') }}
{{ __('Pageviews') }}
@foreach($websites as $website)
@if($website->favorited_at)
@include('icons.star', ['class' => 'fill-current width-4 height-4 flex-shrink-0'])
@endif
{{ number_format($website->visitors->sum('count') ?? 0, 0, __('.'), __(',')) }}
{{ number_format($website->pageviews->sum('count') ?? 0, 0, __('.'), __(',')) }}
@include('websites.partials.menu')
@endforeach
{{ __('Showing :from-:to of :total', ['from' => $websites->firstItem(), 'to' => $websites->lastItem(), 'total' => $websites->total()]) }}
{{ $websites->onEachSide(1)->links() }}
@endif
@endsection @include('shared.sidebars.user')