@if (in_array('leaves', user_modules()) && in_array('total_leaves_approved', $activeWidgets))
@endif @if (in_array('employees', user_modules()) && in_array('total_new_employee', $activeWidgets))
@endif @if (in_array('employees', user_modules()) && in_array('total_employee_exits', $activeWidgets))
@endif @if (in_array('attendance', user_modules()) && in_array('total_today_attendance', $activeWidgets))
@endif @if (in_array('attendance', user_modules()) && in_array('average_attendance', $activeWidgets))
@endif
@if (in_array('employees', user_modules()) && in_array('department_wise_employee', $activeWidgets))
@if (array_sum($departmentWiseChart['values']) > 0) @endif
@endif @if (in_array('employees', user_modules()) && in_array('designation_wise_employee', $activeWidgets))
@if (array_sum($designationWiseChart['values']) > 0) @endif
@endif @if (in_array('employees', user_modules()) && in_array('gender_wise_employee', $activeWidgets))
@if (array_sum($genderWiseChart['values']) > 0) @endif
@endif @if (in_array('employees', user_modules()) && in_array('role_wise_employee', $activeWidgets))
@if (array_sum($roleWiseChart['values']) > 0) @endif
@endif @if (in_array('employees', user_modules()) && in_array('headcount', $activeWidgets))
@endif @if (in_array('employees', user_modules()) && in_array('joining_vs_attrition', $activeWidgets))
@endif @if (in_array('leaves', user_modules()) && in_array('leaves_taken', $activeWidgets))
@forelse ($leavesTaken as $item) {{ $item->employeeLeaveCount }} @empty @endforelse
@endif @if (in_array('birthday', $activeWidgets))
@forelse ($birthdays as $birthday) {{ $birthday->date_of_birth->translatedFormat('d M') }} @php $currentYear = now(company()->timezone)->year; $year = $birthday->date_of_birth->timezone(company()->timezone)->year(date('Y')); $dateBirth = $birthday->date_of_birth->format($currentYear . '-m-d'); $dateBirth = \Carbon\Carbon::parse($dateBirth); $diffInDays = $year->copy()->diffForHumans(now()->timezone(company()->timezone),[ 'syntax' => \Carbon\CarbonInterface::DIFF_RELATIVE_AUTO, 'options' => \Carbon\Carbon::JUST_NOW | \Carbon\Carbon::ONE_DAY_WORDS | \Carbon\Carbon::TWO_DAY_WORDS, ]); @endphp @if ($dateBirth->isToday()) @lang('app.today') @else {{ $diffInDays }} @endif @empty @endforelse
@endif @if (in_array('attendance', user_modules()) && in_array('late_attendance_mark', $activeWidgets))
@forelse ($lateAttendanceMarks as $item) {{ $item->employeeLateCount }} @lang('app.view') @empty @endforelse
@endif