@extends('layouts.template.main') @section('content')
Danh sách cơ cấu lương
@php $statusLabels = [ 'intern' => 'Thực tập', 'probation' => 'Thử việc', 'official' => 'Chính thức', ]; @endphp @foreach($structures as $structure) @endforeach
Nhân viên Lương cơ bản Trợ cấp Phụ cấp Các khoản phụ cấp khác Trạng thái nhân sự Thử việc % Có hiệu lực từ Hiệu lực Thao tác
{{ $structure->employee->name ?? 'N/A' }} {{ number_format($structure->basic_salary, 0) ?? ''}} {{ number_format($structure->housing_allowance, 0) }} {{ number_format($structure->transport_allowance, 0) }} {{ number_format($structure->other_allowances, 0) }} {{ $statusLabels[$structure->employment_status] ?? ucfirst($structure->employment_status) }} @if ($structure->employment_status !== 'official' && !is_null($structure->probation_percent)) {{ rtrim(rtrim(number_format($structure->probation_percent, 2), '0'), '.') }}% @else - @endif {{ \Carbon\Carbon::parse($structure->effective_from)->format('d/m/Y') }} {{ $structure->is_active ? 'Active' : 'Inactive' }}
{{ $structures->links('pagination::bootstrap-5') }}
@endsection