@extends('layouts.sidebar') @section('content')

Dashboard

{{--
Visitor analytics:

{{ $pageStats['visitors']['day']}}

Today

{{ $pageStats['visitors']['week']}}

Week

{{ $pageStats['visitors']['month']}}

Month

{{ $pageStats['visitors']['year']}}

Year

{{ $pageStats['visitors']['all']}}

All Time
--}}
Total Links: {{ $links }}
Link Clicks: {{ $clicks }}
Top Links:
@php $i = 0; @endphp
    @foreach($toplinks as $link) @php $linkName = str_replace('default ','',$link->name) @endphp @php $i++; @endphp @if($link->name !== "phone" && $link->name !== 'heading' && $link->button_id !== 96)
  1. {{ $link->title }}
    {{ $link->link }}
    {{ $link->click_number }} - clicks
  2. @endif @endforeach
Site statistics:

{{ $siteLinks }}

Total links

{{ $siteClicks }}

Total clicks

{{ $userNumber }}

Total users
@if(auth()->user()->role == 'admin' && !config('linkstack.single_user_mode'))
Registrations:

{{ $lastMonthCount }}

Last 30 days

{{ $lastWeekCount }}

Last 7 days

{{ $last24HrsCount }}

Last 24 hours
Active users:

{{ $updatedLast30DaysCount }}

Last 30 days

{{ $updatedLast7DaysCount }}

Last 7 days

{{ $updatedLast24HrsCount }}

Last 24 hours
@endif
@endsection