@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
{{__('web.visitors')}}
{{$visitors}}
{{__('web.form_count')}} {{__('web.ill')}}
{{$ill}}
{{__('web.count')}} {{__('web.right')}}
{{$right}}
{{__('web.form_count')}} - {{__('web.new')}}
{{$new}}
{{__('web.form_count')}} - {{__('web.process')}}
{{$process}}
{{__('web.form_count')}} - {{__('web.accepts')}}
{{$accept}}
{{__('web.form_count')}} - {{__('web.reject')}}
{{$reject}}
{{__('web.form_count')}} - {{__('web.pass')}}
{{$pass}}
{{__('web.form_count')}} - {{__('web.fail')}}
{{$fail}}
{{__('dashboard.visit_year')}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
The proportion of new users
--}}
{{--
2019-06-13 ~ 2019-06-19 | Last 7 days
--}}
{{--
--}}
{{--
--}}
{{-- --}}
{{--
--}}
{{--
--}}
{{--
--}}
{{__('dashboard.visit_year')}} ({{date('Y')}})
Year: {{date('Y')}}
@php
/** @var TYPE_NAME $allVisitorCounts */
$percentage = $allVisitorCounts > 0 ? ($allVisitorCounts*100)/$allVisitorCounts . '%' : '0 %';
@endphp
{{$allVisitorCounts}}
{{__('dashboard.visit_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}}
{{__('dashboard.visit_week')}} ({{date('W')}})
week: {{date('W')}}
@php
/** @var TYPE_NAME $weekVisitorCounts */
$percentage = $weekVisitorCounts > 0 ? ($weekVisitorCounts*100)/$allVisitorCounts . '%' : '0 %';
@endphp
{{$weekVisitorCounts}}
{{__('dashboard.visit_today')}} ({{date('l')}})
Day: {{date('F')}}
@php
/** @var TYPE_NAME $dayVisitCounts */
$percentage = !empty($dayVisitCounts) ? ($dayVisitCounts*100)/$allVisitorCounts . '%' : '0 %'
@endphp
{{!empty($dayVisitCounts) ? $dayVisitCounts : 0}}
@endsection
@section('inner_js')
{{----}}
{{----}}
@endsection