@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')

Setting Absensi

Pengaturan waktu, aturan, dan radius lokasi absensi
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
Lokasi dan Radius
Titik ini dipakai sebagai pusat validasi absensi perangkat.
@error('office_latitude')
{{ $message }}
@enderror
@error('office_longitude')
{{ $message }}
@enderror
@error('attendance_radius_meters')
{{ $message }}
@enderror
Klik peta untuk memindahkan titik pusat. Marker juga bisa digeser.
Radius Aktif
{{ (int) $radius }} m
Titik Pusat
{{ number_format((float) $lat, 5) }}, {{ number_format((float) $lng, 5) }}
Waktu Absensi
Atur jam check-in, check-out, dan kebijakan keterlambatan.
@error('checkin_start')
{{ $message }}
@enderror
@error('checkin_end')
{{ $message }}
@enderror
@error('checkout_start')
{{ $message }}
@enderror
@error('late_grace_minutes')
{{ $message }}
@enderror
@foreach ($dayLabels as $dayNumber => $dayLabel)
@endforeach
allow_checkin_after_end) ? 'checked' : '' }}>
require_checkout) ? 'checked' : '' }}>
Peta Radius Absensi
Lingkaran menunjukkan area yang diizinkan untuk melakukan absensi.
@endsection @push('scripts') @endpush