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

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

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

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

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

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

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

@if($employee->employee_type === 'monthly') ৳ {{ number_format($employee->currentSalaryStructure->monthly_salary, 2) }} @else ৳ {{ number_format($employee->currentSalaryStructure->per_roz_rate, 2) }} @endif

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

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

@csrf @method('PUT')
@if($employee->employee_type === 'monthly')
@else
@endif
{{ __('salary.cancel') }}

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

@if($employee->employee_type === 'monthly') @else @endif @forelse($employee->salaryHistories->take(8) as $history) @if($employee->employee_type === 'monthly') @else @endif @empty @endforelse
{{ __('salary.from') }} {{ __('salary.to') }}{{ __('salary.salary') }} {{ __('salary.ot') }}{{ __('salary.roz') }}
{{ optional($history->effective_from)->format('d M Y') }} {{ optional($history->effective_to)->format('d M Y') ?? __('salary.current') }}৳ {{ number_format($history->monthly_salary, 2) }} ৳ {{ number_format($history->overtime_rate, 2) }}৳ {{ number_format($history->per_roz_rate, 2) }}
{{ __('salary.no_history_found') }}
@endsection