@extends('layouts.user') @section('title', __('salary.salary_history')) @section('page_title', __('salary.salary_history')) @section('breadcrumb', __('salary.hr_payroll')) @section('content')

{{ __('salary.salary_history') }}

{{ $employee->name }} ({{ $employee->employee_code }})

{{-- Summary --}}

{{ __('salary.employee_type') }}

{{ $employee->employee_type === 'monthly' ? __('salary.monthly_salary') : __('salary.daily_roz') }}

{{ __('salary.current_salary_rate') }}

@if($employee->currentSalaryStructure) @if($employee->employee_type === 'monthly') ৳ {{ number_format($employee->currentSalaryStructure->monthly_salary, 2) }}/{{ __('salary.month') }} @else ৳ {{ number_format($employee->currentSalaryStructure->per_roz_rate, 2) }}/{{ __('salary.roz') }} @endif @else {{ __('salary.not_set') }} @endif

{{ __('salary.current_effective_from') }}

{{ optional($employee->currentSalaryStructure?->effective_from)->format('d M Y') ?? '-' }}

{{-- Table --}}
@if($employee->employee_type === 'monthly') @else @endif @forelse($employee->salaryHistories as $history) @if($employee->employee_type === 'monthly') @else @endif @empty @endforelse
{{ __('salary.effective_from') }} {{ __('salary.effective_to') }} {{ __('salary.salary_type') }}{{ __('salary.monthly_salary') }} {{ __('salary.ot_rate') }}{{ __('salary.per_roz_rate') }}{{ __('salary.change_note') }}
{{ optional($history->effective_from)->format('d M Y') }} {{ optional($history->effective_to)->format('d M Y') ?? __('salary.current') }} {{ $history->salary_type === 'monthly' ? __('salary.monthly') : __('salary.daily_roz') }} ৳ {{ number_format($history->monthly_salary, 2) }} ৳ {{ number_format($history->overtime_rate, 2) }} ৳ {{ number_format($history->per_roz_rate, 2) }} {{ $history->change_note ?: '-' }}
{{ __('salary.no_salary_history_found') }}
@endsection