<?php
/**
 * get_cashier.php - جلب بيانات كاشير للتعديل
 */

include 'config.php';
checkAdminAuth();

$id = (int)$_GET['id'];
$result = mysqli_query($conn, "SELECT id, name, phone FROM employees WHERE id = $id");
$data = mysqli_fetch_assoc($result);

header('Content-Type: application/json');
echo json_encode($data);
?>