@extends('layouts.app') @section('title', 'Location Tracking Configuration') @section('content')

Location Tracking Configuration

Konfigurasi metode tracking lokasi

@csrf @method('PUT')

Auto-Track Settings

@php $autoTrackSettings = $settingsByCategory['auto_track'] ?? []; @endphp
@php $autoTrackEnabled = $autoTrackSettings->firstWhere('key', 'auto_track_enabled'); @endphp @if($autoTrackEnabled) id}.value", $autoTrackEnabled->value) ? 'checked' : '' }} class="w-4 h-4 text-blue-600 bg-white/5 border-white/10 rounded focus:ring-blue-500"> @endif

Otomatis tracking lokasi saat menerima aduan

@php $prioritySetting = $autoTrackSettings->firstWhere('key', 'tracking_priority'); $priority = $prioritySetting ? (old("settings.{$prioritySetting->id}.value", $prioritySetting->value) ?? ['gps', 'cell_id', 'area_code']) : ['gps', 'cell_id', 'area_code']; if (is_string($priority)) { $priority = json_decode($priority, true) ?? ['gps', 'cell_id', 'area_code']; } @endphp @if($prioritySetting)
@foreach($priority as $index => $method)
{{ $method }}
@endforeach

Drag untuk mengubah urutan prioritas

@endif

Area Code Tracking

@php $areaCodeSettings = $settingsByCategory['area_code'] ?? []; $areaCodeEnabled = $areaCodeSettings->firstWhere('key', 'area_code_enabled'); @endphp
@if($areaCodeEnabled) id}.value", $areaCodeEnabled->value) ? 'checked' : '' }} class="w-4 h-4 text-blue-600 bg-white/5 border-white/10 rounded focus:ring-blue-500"> @endif

Tracking lokasi berdasarkan area code nomor telepon (Akurasi: ±5-10 km)

Cell-ID Tracking

@php $cellIdSettings = $settingsByCategory['cell_id'] ?? []; $cellIdEnabled = $cellIdSettings->firstWhere('key', 'cell_id_enabled'); $cellIdCacheTtl = $cellIdSettings->firstWhere('key', 'cell_id_cache_ttl'); @endphp
@if($cellIdEnabled) id}.value", $cellIdEnabled->value) ? 'checked' : '' }} class="w-4 h-4 text-blue-600 bg-white/5 border-white/10 rounded focus:ring-blue-500"> @endif

Tracking lokasi menggunakan Cell-ID dari tower BTS (Akurasi: ±100-500 meter)

@if($cellIdCacheTtl) id}.value", $cellIdCacheTtl->value ?? 3600) }}" min="60" max="86400" class="w-full bg-white/5 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-blue-500">

Lama waktu cache lokasi Cell-ID (default: 3600 = 1 jam)

@endif

Catatan: Cell-ID tracking memerlukan konfigurasi provider. Konfigurasi Provider

GPS Tracking

@php $gpsSettings = $settingsByCategory['gps'] ?? []; $gpsMinAccuracy = $gpsSettings->firstWhere('key', 'gps_min_accuracy'); @endphp
@if($gpsMinAccuracy) id}.value", $gpsMinAccuracy->value ?? 50) }}" min="1" max="1000" class="w-full bg-white/5 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-blue-500">

GPS dengan akurasi di bawah nilai ini akan ditolak (default: 50 meter)

@endif
Reset
@endsection