@php use App\Services\PayrollRegisterExportSettingsService as Pres; $sheetPreset = old("sheets.$index.preset", $sheet['preset'] ?? 'standard'); $sheetFilter = old("sheets.$index.column_filter", $sheet['column_filter'] ?? ''); if ($sheetFilter === null || $sheetFilter === '') { $sheetFilter = 'none'; } $sheetColumns = old("sheets.$index.columns", $sheet['columns'] ?? []); $totalsMode = old("sheets.$index.totals_mode", $sheet['totals_mode'] ?? Pres::defaultTotalsModeForPreset($sheetPreset)); $includeWords = (bool) old("sheets.$index.include_gross_in_words", $sheet['include_gross_in_words'] ?? true); $includeSignature = (bool) old("sheets.$index.include_signature_remarks", $sheet['include_signature_remarks'] ?? true); $sheetTitle = old("sheets.$index.title", $sheet['title'] ?? 'Payroll Register'); @endphp
{{ __('Sheet') }} {{ is_numeric($index) ? ((int) $index + 1) : 1 }}
@foreach(['minimal' => __('Minimal'), 'standard' => __('Standard'), 'full' => __('Full'), 'custom' => __('Custom')] as $val => $label) @endforeach
{{ __('“Selected columns only” makes Total, Gross & Net add up the columns shown on this sheet.') }}
{{ __('Custom columns') }}
@foreach($groups as $groupKey => $groupLabel)
{{ $groupLabel }}
@foreach($registry as $key => $meta) @if(($meta['group'] ?? '') !== $groupKey) @continue @endif @php $gateOk = Pres::featureAllowsColumn($key); $checked = (bool) ($sheetColumns[$key] ?? Pres::columnInPreset($key, $sheetPreset)); $required = (bool) ($meta['required'] ?? false); @endphp
@endforeach
@endforeach