<?php
include "../config/koneksi.php";
include "../middleware/auth.php";

sikompro_require_role('pelaksana');

$id = (int) ($_GET['id'] ?? 0);

if ($id <= 0) {
    header("Location: dashboard.php?pesan=invalid");
    exit;
}

mysqli_query($conn,"
UPDATE komplain 
SET status_pengiriman='dikirim_ke_teknisi'
WHERE id='$id'
");

header("Location: dashboard.php");
