@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('Payroll Period Settings')) @section('content') @php $periodMode = old('period_mode', $settings['period_mode']); $salaryBasis = old('salary_basis', $settings['salary_basis']); $blockIncomplete = (bool) old('block_incomplete_calendar', $settings['block_incomplete_calendar']); $exampleMonthNum = (int) date('n'); $exampleYearNum = (int) date('Y'); $modeLabels = [ 'calendar_month' => __('Calendar month'), 'month_cutoff' => __('Month cutoff'), 'cross_month' => __('Cross-month cycle'), ]; $salaryLabels = [ 'full_month' => __('Full monthly gross'), 'period_prorata' => __('Pro-rated gross'), ]; $monthShortNames = array_map( fn ($m) => \Carbon\Carbon::create(null, $m, 1)->format('M'), range(1, 12) ); @endphp
{{ __('Control attendance windows, absent rules, and salary basis when generating payroll.') }}