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

sikompro_require_role('pelaksana');

$id = (int) $_POST['id'];
$ket = komplain_escape($conn, $_POST['keterangan']);

mysqli_query($conn,"UPDATE komplain SET hasil_teknisi='$ket', keterangan='$ket', tanggal_update=NOW() WHERE id='$id'");

header("Location: dashboard.php");
