@if (!in_array('payroll', user_modules()))
@lang('modules.incrementPromotion.incrementAlert')
@endif @if ($manageIncrementPermission != 'none')
@lang('modules.incrementPromotion.addPromotion')
@endif
@forelse ($careerProgress as $progress)
{{ $loop->iteration }}
{{ \Carbon\Carbon::parse($progress['date'])->translatedFormat($company->date_format) }} @php $date = \Carbon\Carbon::parse($progress['data']->date); @endphp @if($progress['type'] === 'promotion' && isset($progress['data']->date)) @if($date->isToday()) (@lang('modules.incrementPromotion.promotion') @lang('app.fromToday')) @else (@lang('modules.incrementPromotion.promotion') {{ $date->diffForHumans() }}) @endif @elseif($progress['type'] === 'increment' && isset($progress['data']->date) && module_enabled('Payroll') && in_array('payroll', user_modules())) @if($date->isToday()) (@lang('modules.incrementPromotion.increment') @lang('app.fromToday')) @else (@lang('modules.incrementPromotion.increment') {{ $date->diffForHumans() }}) @endif @endif
@if($progress['type'] === 'promotion' && $manageIncrementPermission == 'all') @endif
@if($progress['type'] === 'increment' && module_enabled('Payroll') && in_array('payroll', user_modules()))
@lang('modules.incrementPromotion.increment')
  • @lang('modules.incrementPromotion.salary'): {{ currency_format($progress['netSalary'], $currency, true) }} ({{ $progress['percentage'] }}% @lang('modules.incrementPromotion.increment'))
@elseif($progress['type'] === 'promotion')
@lang('modules.incrementPromotion.promotion')
  • {{ $progress['data']->previousDesignation->name }} {{ $progress['data']->currentDesignation->name }} (@lang('app.designation'))
  • @if ($progress['data']->previous_department_id != $progress['data']->current_department_id) {{ $progress['data']->previousDepartment->team_name }} {{ $progress['data']->currentDepartment->team_name }} (@lang('app.department')) @else (@lang('app.inSameDepartment')) @endif
@endif
@empty
@endforelse