@extends('layouts.master') @push('styles') @endpush @section('title', 'Analytics Dashboard') {{-- container or container-full. Default: container-full --}} @section('content-width-class', 'container-full') @section('breadcrumb-text')

{{ __('Traffic overview') }}

{{ __('Track your site’s traffic over time')}}

@endsection @section('content')
 
{{__('Site Sessions') }}

{{ $siteSession }}

{{__('Unique visitors') }}

{{ $allUsers }}

{{__('Avg. session duration') }}

{{ $avgSession }}

{{ __('New vs Returning visitors')}}

{{ __('Visitors')}}

{{__('Sessions by device')}}

{{ __('Visitors')}}

{{ __('Sessions by country')}}

{{ __('Countries')}}
    @if($topCountry) @foreach($topCountry as $country) @php $count1 = $count2 = 0; if($siteSession != 0){ $count1 = $country[1] / $siteSession; $count2 = $count1 * 100; } $valuenow = number_format($count2, 0); @endphp
  • {{$country[0]}}

    {{$country[1]}}
  • @endforeach @endif

{{ __('Top traffic sources by sessions')}}

@if($topSearchEngine) @foreach($topSearchEngine as $search) @endforeach @endif
{{__('Search Engine') }} {{__('Total') }}
{{$search[0]}} {{$search[1]}}

{{ __('Top pages by sessions')}}

@foreach($topPages as $page) @endforeach
{{__('Date') }} {{__('Visitors') }} {{__('Page Title') }} {{__('Page View') }}
{{date("d-m-Y", strtotime($page['date']))}} {{$page['visitors']}} {{$page['pageTitle']}} {{$page['pageViews']}}

{{ __('Top browsers')}}

@foreach($topBrowsers as $browser) @endforeach
{{__('Browser') }} {{__('Visitors') }}
{{$browser['browser']}} {{$browser['sessions']}}
@endsection @push('scripts') @endpush