@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.website_views_in_this_year')}}
{{__('dashboard.app_user_proportion')}}
{{--
2019-06-13 ~ 2019-06-19 | Last 7 days
--}}
{{__('dashboard.transactions_proportion')}}
{{--
2019-06-13 ~ 2019-06-19 | Last 7 days
--}}
{{__('dashboard.currency_page_visitor')}}
{{--
2019-06-13 ~ 2019-06-19 | Last 7 days
--}}
{{__('dashboard.user_visit_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.user_visit_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.user_visit_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.user_visit_today')}} ({{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')}}
{{--
--}}
{{--
--}}
{{-- --}}
{{-- --}}
{{-- --}}
{{--
--}}
{{-- --}}
{{-- | Serial | --}}
{{-- Article title | --}}
{{-- Visited count | --}}
{{--
--}}
{{-- --}}
{{-- --}}
{{-- @foreach ($articles as $article)--}}
{{-- --}}
{{-- | {{$loop->iteration}} | --}}
{{-- {{$article->title}} | --}}
{{-- {{$article->visit_counts}} | --}}
{{--
--}}
{{-- @endforeach--}}
{{-- --}}
{{--
--}}
{{--
--}}
@endsection
@section('inner_js')
{{----}}
@endsection