@extends('layouts.finance') @section('title', 'Edit Salary Entry') @section('subtitle', 'Update employee payroll entry') @section('content') @php $detail = $expense->salaryDetail; $currentEmployeeId = old('employee_id', $detail?->employee_id); $currentCurrency = old('currency', $detail?->currency ?? $expense->currency); $currentBankId = old('bank_account_id', $expense->bank_account_id); $currentPeriod = old('pay_period_month', ($detail?->pay_period_month ?? $expense->expense_date)?->format('Y-m')); @endphp {{-- Breadcrumb --}}