@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
Website Views in this year
{{--
--}}
{{--
--}}
{{--
--}}
{{--
The proportion of new users
--}}
{{--
2019-06-13 ~ 2019-06-19 | Last 7 days
--}}
{{--
--}}
{{--
--}}
{{-- --}}
{{--
--}}
{{--
--}}
{{--
--}}
Users Visits in this year ({{date('Y')}})
Year: {{date('Y')}}
@php
/** @var TYPE_NAME $allVisitorCounts */
$percentage = $allVisitorCounts > 0 ? ($allVisitorCounts*100)/$allVisitorCounts . '%' : '0 %';
@endphp
{{$allVisitorCounts}}
Users Visits in this month ({{date('F')}})
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}}
Users Visits in this week ({{date('W')}})
week: {{date('W')}}
@php
/** @var TYPE_NAME $weekVisitorCounts */
$percentage = $weekVisitorCounts > 0 ? ($weekVisitorCounts*100)/$allVisitorCounts . '%' : '0 %';
@endphp
{{$weekVisitorCounts}}
Users Visits today ({{date('l')}})
Day: {{date('F')}}
@php
/** @var TYPE_NAME $dayVisitCounts */
$percentage = !empty($dayVisitCounts) ? ($dayVisitCounts*100)/$allVisitorCounts . '%' : '0 %'
@endphp
{{!empty($dayVisitCounts) ? $dayVisitCounts : 0}}
| Serial |
Article title |
Visited count |
@foreach ($articles as $article)
| {{$loop->iteration}} |
{{$article->title}} |
{{$article->visit_counts}} |
@endforeach
@endsection
@section('inner_js')
{{----}}
{{----}}
@endsection