@php $counter = get_theme_option(key: 'counter') ?? []; $totalExperience = $counter['total_experience'] ?? 1; $totalCourse = get_all_course('approved')->count() ?? []; $totalCourseText = $totalCourse > 0 ? 'Course' : 'Courses'; $totalTutor = get_all_instructor()->count() ?? []; $totalTutorText = $totalTutor > 1 ? 'Expert Tutors' : 'Expert Tutor'; $totalStudent = get_all_student()->count() ?? []; $totalStudentText = $totalStudent > 1 ? 'Satisfied Students' : 'Satisfied Student'; @endphp
{{ translate($totalCourseText) }}
{{ $totalCourse > 1 ? $totalCourse . '+' : $totalCourse }}
{{ translate('Years Experience') }}
{{ $totalExperience > 1 ? $totalExperience . '+' : 0 }}
{{ translate($totalTutorText) }}
{{ $totalTutor > 1 ? $totalTutor . '+' : $totalTutor }}
{{ translate($totalStudentText) }}
{{ $totalStudent > 1 ? $totalStudent . '+' : $totalStudent }}