@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
زيارات الموقع خلال العام
إجمالي عدد زيارات اليوم ({{date('l')}})
شهر: {{date('F')}}
@php
/** @var TYPE_NAME $dayVisitCounts */
$percentage = !empty($dayVisitCounts) ? ($dayVisitCounts*100)/$allVisitorCounts . '%' : '0 %'
@endphp
{{!empty($dayVisitCounts) ? $dayVisitCounts : 0}}
إجمالي عدد زيارات الشهر ({{date('F')}})
شهر: {{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}}
{{--
إجمالي عدد زيارات السنة ({{ $year }})
سنة: {{$year }}
@php
/** @var TYPE_NAME $allVisitorCounts */
$percentage = $allVisitorCounts_year > 0 ? ($allVisitorCounts_year*100)/$allVisitorCounts_year . '%' : '0 %';
@endphp
{{$allVisitorCounts_year}}
--}}
إجمالي عدد زيارات الأسبوعي
@php
/** @var TYPE_NAME $weekVisitorCounts */
$percentage = $weekVisitorCounts > 0 ? ($weekVisitorCounts*100)/$weekVisitorCounts . '%' : '0 %';
@endphp
{{$weekVisitorCounts}}
@php
/** @var TYPE_NAME $weekVisitorCounts */
$percentage = $allusers_Counts > 0 ? ($allusers_Counts*100)/$allusers_Counts . '%' : '0 %';
@endphp
{{$allusers_Counts}}
@php
/** @var TYPE_NAME $weekVisitorCounts */
$percentage = $allsubjects_Counts > 0 ? ($allsubjects_Counts*100)/$allsubjects_Counts . '%' : '0 %';
@endphp
{{$allsubjects_Counts}}
@php
/** @var TYPE_NAME $weekVisitorCounts */
$percentage = $allcomments_Counts > 0 ? ($allcomments_Counts*100)/$allcomments_Counts . '%' : '0 %';
@endphp
{{$allcomments_Counts}}
@php
/** @var TYPE_NAME $weekVisitorCounts */
$percentage = $alltranslated_Counts > 0 ? ($alltranslated_Counts*100)/$alltranslated_Counts . '%' : '0 %';
@endphp
{{$alltranslated_Counts}}
{{--
اجمالي عدد طلبات التواصل ({{date('l')}})
شهر: {{date('F')}}
@php
/** @var TYPE_NAME $dayVisitCounts */
$percentage = !empty($dayVisitCounts) ? ($dayVisitCounts*100)/$allVisitorCounts . '%' : '0 %'
@endphp
{{!empty($dayVisitCounts) ? $dayVisitCounts : 0}}
--}}
@endsection
@section('inner_js')
@endsection