@forelse ($leaveTypes as $key=>$leave) @if($leave->leaveTypeCodition($leave, $userRole))
@lang('modules.leaves.leaveType') @lang('modules.leaves.noOfLeaves') @lang('modules.leaves.monthLimit') @lang('app.total') @lang('modules.leaves.leavesTaken') {{ isset($employeeLeavesQuota[$key]) ? $employeeLeavesQuota[$key]->no_of_leaves : 0 }} {{ ($leave->monthly_limit > 0) ? $leave->monthly_limit : '--' }} {{ (!is_null($leave->leavesCount)) ? $leave->leavesCount->count - ($leave->leavesCount->halfday*0.5) : '0' }}
@endif @empty @endforelse