@extends('layouts.app_hr') @section('title', __('hr.edit_policy')) @section('content')
@csrf @method('PUT')
{{ __('hr.policy_info') }}
{{ __('hr.attendance_policies') }}
@foreach (['late', 'absence', 'early_leave'] as $type) @php $tableTitle = __('hr.' . $type . '_penalties'); $tableId = $type . '_table'; $penalties = $policy->{$type . 'Penalties'} ?? []; @endphp
{{ $tableTitle }}
@foreach ($penalties as $penalty) @endforeach
{{ __('hr.minutes_from') }} {{ __('hr.minutes_to') }} {{ __('hr.penalty_type') }} {{ __('hr.penalty_value') }} {{ __('hr.suspension_days') }} {{ __('messages.actions') }}
'>{{ __('hr.add_row') }} @endforeach
{{ __('hr.overtime_rewards') }}
@foreach ($policy->overtimeRewards ?? [] as $reward) @endforeach
{{ __('hr.minutes_from') }} {{ __('hr.minutes_to') }} {{ __('hr.reward_value') }} {{ __('messages.actions') }}
{{ __('messages.cancel') }}
@endsection @section('javascript') @endsection