@section('title', get_setting('site_name') . ' | Salary Review') @push('css') @endpush

{{ __('Salary Review') }}

{{ __('Settings') }}: {{ number_format((float) ($settings['increment_percent'] ?? 0), 2) }}% {{ __('on basic') }}, {{ __('min') }} {{ $settings['min_job_years'] ?? 1 }} {{ __('year(s)') }}. {{ __('Change settings') }}

{{ __('Back') }}
@if (session()->has('error'))
{{ session('error') }}
@endif
@if($mode === 'bulk')
{{ __('Eligible') }}
{{ $bulkStats['eligible'] }}
{{ __('Selected') }}
{{ $bulkStats['selected'] }}
{{ __('Basic increase') }}
@if($bulkStats['basic_increase'] === null) — @else +{{ number_format($bulkStats['basic_increase'], 2) }} @endif
{{ __('Gross increase') }}
@if($bulkStats['gross_increase'] === null) — @else +{{ number_format($bulkStats['gross_increase'], 2) }} @endif
{{ __('Bulk salary review') }} {{ $settings['review_type'] ?? 'Annual' }} · {{ number_format((float) ($settings['increment_percent'] ?? 0), 2) }}%
@error('effectiveDate') {{ $message }} @enderror
@forelse($eligibleRows as $row) @php $isSelected = in_array((int) $row['staff_id'], $selectedStaffIds, true); @endphp @empty @endforelse
{{ __('Employee') }} {{ __('Department') }} {{ __('Branch') }} {{ __('Job age') }} {{ __('Current basic') }} {{ __('New basic') }} {{ __('Basic +') }} {{ __('Gross +') }}
{{ $row['staff_name'] }} ID: {{ $row['user_id'] }} {{ $row['department_name'] ?? '—' }} {{ $row['branch_name'] }} {{ $row['job_age'] }} {{ number_format((float) $row['current_basic'], 2) }} {{ number_format((float) $row['new_basic'], 2) }} +{{ number_format((float) $row['basic_diff'], 2) }} +{{ number_format((float) $row['gross_diff'], 2) }}
{{ __('No eligible employees match your filters.') }}
@if(($bulkPagination['pages'] ?? 1) > 1)
{{ __('Showing page :page of :pages (:total employees)', [ 'page' => $bulkPagination['page'], 'pages' => $bulkPagination['pages'], 'total' => $bulkPagination['total'], ]) }}
@endif
{{ __(':selected of :total selected', ['selected' => $bulkStats['selected'], 'total' => $bulkStats['eligible']]) }}
@else
{{ __('Review Information') }}
@error('staffId') {{ $message }} @enderror
@if(!empty($currentSnapshot))
{{ __('Current Salary') }}
{{ __('Gross') }}: {{ number_format((float) ($currentSnapshot['gross_salary'] ?? 0), 2) }}
{{ __('Basic') }}: {{ number_format((float) ($currentSnapshot['basic_salary'] ?? 0), 2) }}
{{ __('Net') }}: {{ number_format((float) ($currentSnapshot['net_salary'] ?? 0), 2) }}
@endif
@error('reviewType') {{ $message }} @enderror
@error('incrementMode') {{ $message }} @enderror
@error('incrementValue') {{ $message }} @enderror
@error('effectiveDate') {{ $message }} @enderror
{{ __('Salary Preview') }}
@php $rows = [ ['key' => 'basic_salary', 'label' => 'Basic Salary'], ['key' => 'house_rent', 'label' => 'House Rent'], ['key' => 'medical', 'label' => 'Medical'], ['key' => 'food', 'label' => 'Food'], ['key' => 'conveyance', 'label' => 'Conveyance'], ['key' => 'utility', 'label' => 'Utility'], ['key' => 'provident_fund', 'label' => 'Provident Fund'], ['key' => 'Others', 'label' => 'Others'], ['key' => 'gross_salary', 'label' => 'Gross Salary'], ['key' => 'net_salary', 'label' => 'Net Salary'], ]; @endphp @forelse($rows as $r) @php $k = $r['key']; $cur = (float) ($currentSnapshot[$k] ?? 0); $new = (float) ($newSnapshot[$k] ?? 0); $d = (float) ($diff[$k] ?? 0); @endphp @empty @endforelse
{{ __('Component') }} {{ __('Current') }} {{ __('New') }} {{ __('Difference') }}
{{ $r['label'] }} {{ number_format($cur, 2) }} {{ number_format($new, 2) }} @if(abs($d) < 0.005) +0.00 @else +{{ number_format($d, 2) }} @endif
{{ __('Select staff and enter increment to preview') }}
@endif
@section('script') @endsection