@extends('layouts.admin') @section('title', 'Edit Gaji Karyawan') @section('breadcrumb') Gaji Karyawan Edit Gaji @endsection @section('header')

Edit Gaji Karyawan

Perbarui pengaturan gaji karyawan.

Kembali
@endsection @section('content')
@csrf @method('PUT')
{{-- Basic Info --}}

Informasi Dasar

{{-- Employee --}}
@error('employee_id')

{{ $message }}

@enderror
{{-- Basic Salary --}}
Rp
@error('basic_salary')

{{ $message }}

@enderror
{{-- Effective Date --}}
@error('effective_date')

{{ $message }}

@enderror
{{-- Notes --}}
@error('notes')

{{ $message }}

@enderror
{{-- Payment Method --}}

Metode Pembayaran

{{-- Bank Name --}}
@error('bank_name')

{{ $message }}

@enderror
{{-- Account Number --}}
@error('bank_account_number')

{{ $message }}

@enderror
{{-- Account Name --}}
@error('bank_account_name')

{{ $message }}

@enderror
{{-- Salary Components --}} @php $currentComponents = $employeeSalary->components->keyBy('salary_component_id'); @endphp

Komponen Gaji

{{-- Earnings --}}

Pendapatan / Tunjangan

Belum ada komponen pendapatan.
{{-- Add Earning --}}
{{-- Deductions --}}

Potongan

Belum ada komponen potongan.
{{-- Add Deduction --}}
{{-- Sidebar --}}
{{-- Status --}}

Status

is_active) ? 'checked' : '' }}>

Tandai sebagai gaji aktif karyawan.

{{-- Actions --}}
Batal
@endsection @php $componentsJson = $salaryComponents->map(function ($c) { return ['id' => $c->id, 'name' => $c->name, 'code' => $c->code, 'type' => $c->type, 'default_amount' => $c->default_amount ?? 0]; }); $existingJson = $employeeSalary->components->map(function ($c) { return ['id' => $c->salary_component_id, 'name' => $c->salaryComponent->name, 'code' => $c->salaryComponent->code, 'type' => $c->salaryComponent->type, 'amount' => (int) $c->amount]; }); @endphp @push('scripts') @endpush