@if (in_array('leave', $activeWidgets) && $sidebarUserPermissions['view_leave'] != 5 && $sidebarUserPermissions['view_leave'] != 'none' && in_array('employees', user_modules()))
@forelse ($leave as $totalLeave) @if ($totalLeave->duration == 'single' || $totalLeave->duration == 'multiple') @lang('modules.dashboard.fullDay') @elseif ($totalLeave->duration == 'half day' && $totalLeave->half_day_type == 'first_half') @lang('modules.leaves.firstHalf') @else @lang('modules.leaves.secondHalf') @endif {{ucfirst($totalLeave->type->type_name)}} @empty @endforelse
@endif