@extends('admin.layouts.app') @section('title', 'Setting Absen') @push('styles') @endpush @php $effectiveWorkdays = old('effective_workdays', $setting->effective_workdays ?? [1, 2, 3, 4, 5]); $effectiveWorkdays = collect($effectiveWorkdays)->map(fn($d) => (int) $d)->all(); $dayLabels = [ 1 => 'Senin', 2 => 'Selasa', 3 => 'Rabu', 4 => 'Kamis', 5 => 'Jumat', 6 => 'Sabtu', 7 => 'Minggu', ]; $toTimeValue = static function ($value, $fallback = '') { if (empty($value)) { return $fallback; } return \Illuminate\Support\Str::of((string) $value)->substr(0, 5)->value(); }; $lat = old('office_latitude', $setting->office_latitude ?? -7.5992153); $lng = old('office_longitude', $setting->office_longitude ?? 112.1035051); $radius = old('attendance_radius_meters', $setting->attendance_radius_meters ?? 90); @endphp @section('content')