Dashboard
{{ __('Resignation') }}
Holiday Calendar
Notice Board
Event
Asset
@php
$salaryActive = request()->routeIs(['employee.payslip']);
@endphp
Salary
@php
$pfRoutes = ['employee.pf', 'employee.pf.statement.pdf', 'employee.pf.statement.excel', 'employee.pf.yearly_certificate'];
$gfRoutes = ['employee.gf', 'employee.gf.statement.pdf', 'employee.gf.yearly_certificate'];
$swfRoutes = ['employee.swf', 'employee.swf.statement.pdf', 'employee.swf.statement.excel', 'employee.swf.yearly_certificate'];
$empStaff = auth()->check() ? auth()->user()->staff : null;
$pfEnrolled = false;
$gfEnrolled = false;
$swfEnrolled = false;
if ($empStaff) {
if ((int) get_setting('pf') === 1) {
$pfEnrolled = \App\Models\PfAccount::query()->where('staff_id', $empStaff->id)->where('is_enrolled', 1)->where('status', 'active')->exists();
}
if ((int) get_setting('gf') === 1) {
$gfEnrolled = \App\Models\GfAccount::query()->where('staff_id', $empStaff->id)->where('is_enrolled', 1)->where('status', 'active')->exists();
}
if ((int) get_setting('swf') === 1) {
$swfEnrolled = \App\Models\SwfAccount::query()->where('staff_id', $empStaff->id)->where('is_enrolled', 1)->where('status', 'active')->exists();
}
}
$showBenefitsTitle = $pfEnrolled || $gfEnrolled || $swfEnrolled;
@endphp
@if($showBenefitsTitle)
@endif
@if($pfEnrolled)
{{ __('My PF') }}
@endif
@if($gfEnrolled)
{{ __('My GF') }}
@endif
@if($swfEnrolled)
{{ __('My SWF') }}
@endif
@if(\App\Support\PerformanceAppraisalFeature::enabled() && auth()->check() && auth()->user()->staff)
{{ __('Performance appraisal') }}
@endif
@if((int) get_setting('disciplinary_management') === 1 && auth()->check() && auth()->user()->staff)
{{ __('Disciplinary') }}
@endif
@php
$serviceActive = request()->routeIs([
'visit.application',
'employee.attendance.report',
'employee.leave.application',
'attendance.reconciliation',
'employee.advance.salarys',
]);
@endphp
My Service
@if(get_setting('supervisor') == 1 || get_setting('approval_hierarchy') == 1)
Approval Center
@endif
@if(get_setting('supervisor') == 1)
Subordinate Employee List
@endif