@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('Salary Structure Rules')) @section('content') @php $rules = old('rules', $row->rules ?? []); if (! is_array($rules) || count($rules) === 0) { $rules = [\App\Services\SalaryStructureService::normalizeRule([ 'id' => 'new_1', 'label' => '', 'type' => \App\Services\SalaryStructureService::TYPE_PERCENT_OF_BASIC, 'apply_at' => \App\Services\SalaryStructureService::APPLY_SETUP, 'percent' => 0, 'target' => 'house_rent', 'enabled' => true, 'sort' => 10, ])]; } $targetLabels = [ 'basic_salary' => __('Basic Salary'), 'house_rent' => __('House Rent'), 'medical' => __('Medical'), 'food' => __('Food / Lunch'), 'conveyance' => __('Conveyance / Travel'), 'utility' => __('Utility / Mobile'), 'Others' => __('Others'), 'provident_fund' => __('Provident Fund'), ]; @endphp
{{ __('One configuration for the whole company. Enter basic on salary setup; rules fill allowances. Lunch and optional bill overrides apply when creating payroll.') }}