feat: enhance admin control panel with KPI charts, inline inventory editing, lead CRM and settings

This commit is contained in:
Antigravity Bot
2026-08-30 14:13:11 +03:30
parent 27d35177b6
commit d27520ec0f
3 changed files with 670 additions and 218 deletions
+6
View File
@@ -60,6 +60,12 @@ switch ($action) {
echo json_encode(["status" => "success", "message" => "درخواست مشاوره شما با موفقیت ثبت شد. کارشناسان ما به زودی با شما تماس خواهند گرفت.", "data" => $res], JSON_UNESCAPED_UNICODE);
break;
case 'export_backup':
$data = TireStore::getData();
header('Content-Disposition: attachment; filename="gasemi_tier_backup_' . date('Y-m-d_H-i') . '.json"');
echo json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
exit;
default:
echo json_encode(["status" => "error", "message" => "Invalid action"], JSON_UNESCAPED_UNICODE);
break;