@extends('admin.layouts.container') @section('content')
@for ($i = 1; $i < 13 ; $i++) @if (array_key_exists($i, $monthVisitCounts)) @continue @endif @php $monthVisitCounts[$i] = 0; @endphp @endfor @php ksort($monthVisitCounts); @endphp @foreach ($monthVisitCounts as $month => $count) @endforeach
{{__('dashboard.view_in_year')}}
{{--
--}} {{--
--}} {{--
--}} {{--
The proportion of new users
--}} {{--

2019-06-13 ~ 2019-06-19 | Last 7 days

--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}}
{{__('dashboard.view_in_year')}} ({{date('Y')}})

{{__('dashboard.year')}}: {{date('Y')}}

@php /** @var TYPE_NAME $allVisitorCounts */ $percentage = $allVisitorCounts > 0 ? ($allVisitorCounts*100)/$allVisitorCounts . '%' : '0 %'; @endphp {{$allVisitorCounts}}

{{__('dashboard.visits')}}

{{__('dashboard.view_in_month')}} ({{date('F')}})

{{__('dashboard.month')}}: {{date('m')}}

@php /** @var TYPE_NAME $monthVisitCounts */ /** @var TYPE_NAME $allVisitorCounts */ $month = date('n'); $count = $monthVisitCounts[$month]; $percentage = $count > 0 ? ($count*100)/$allVisitorCounts . '%' : '0 %'; @endphp {{$count}}

{{__('dashboard.visits')}}

{{__('dashboard.view_in_week')}} ({{date('W')}})

{{__('dashboard.week')}}: {{date('W')}}

@php /** @var TYPE_NAME $weekVisitorCounts */ $percentage = $weekVisitorCounts > 0 ? ($weekVisitorCounts*100)/$allVisitorCounts . '%' : '0 %'; @endphp {{$weekVisitorCounts}}

{{__('dashboard.visits')}}

{{__('dashboard.view_in_day')}} ({{date('l')}})

{{__('dashboard.day')}}: {{date('F')}}

@php /** @var TYPE_NAME $dayVisitCounts */ $percentage = !empty($dayVisitCounts) ? ($dayVisitCounts*100)/$allVisitorCounts . '%' : '0 %' @endphp {{!empty($dayVisitCounts) ? $dayVisitCounts : 0}}

{{__('dashboard.visits')}}

{{__('dashboard.clients_counts')}}
{{$clientCounts}}

{{__('dashboard.client')}}

{{__('dashboard.orders_counts')}}
{{$ordersCounts}}

{{__('dashboard.order')}}

{{__('dashboard.sales_revenue')}}
{{$revenueTotal}}

{{__('dashboard.sar')}}

@foreach ($articles as $article) @endforeach
Most viewed articles
Serial Article title Visited count
{{$loop->iteration}} {{$article->title}} {{$article->visit_counts}}
@endsection @section('inner_js') {{----}} {{----}} @endsection