exportStatisticsCSV($export_type, $date_from, $date_to);
if ($csv_data) {
$filename = "order_statistics_{$export_type}_" . date('Y-m-d') . ".csv";
header('Content-Type: text/csv; charset=utf-8');
header('Content-Disposition: attachment; filename="' . $filename . '"');
header('Cache-Control: no-cache, must-revalidate');
// UTF-8 BOM 추가 (엑셀에서 한글 깨짐 방지)
echo "\xEF\xBB\xBF";
echo $csv_data;
exit;
} else {
alert('CSV 내보내기에 실패했습니다.');
}
}
// 통계 데이터 조회
$estimate_stats = $estimate_manager->getEstimateStatistics($date_from, $date_to);
$dealer_performance = $estimate_manager->getDealerPerformance($date_from, $date_to);
$revenue_stats = $estimate_manager->getRevenueStatistics($date_from, $date_to);
$expert_visit_stats = $estimate_manager->getExpertVisitStatistics($date_from, $date_to);
include_once(G5_ADMIN_PATH . '/admin.head.php');
?>
견적 요청 현황, 대리점 성과, 매출 분석, 전문가 방문 통계 등 종합적인 비즈니스 인사이트를 제공합니다.
데이터를 CSV 파일로 내보내어 상세 분석이 가능합니다.
견적 현황
총 견적 요청
완료: 건 |
선택: 건 |
전환율: %
매출 현황
원
총 매출
주문: 건 |
평균: 원
대리점 현황
활성 대리점
0 ? round(($selected_bids / $total_bids) * 100, 2) : 0;
?>
총 입찰: 건 |
평균 성공률: %
전문가 방문
방문 요청
완료: 건 |
매출: 원
월별 견적 요청 트렌드
상태별 견적 분포
| 상태 |
건수 |
비율 |
0 ? round(($status['count'] / $total_estimates) * 100, 2) : 0;
?>
|
건 |
% |
월별 견적 전환율
대리점별 성과 분석
| 대리점 |
레벨 |
총 입찰 |
선택된 입찰 |
성공률 |
평균 입찰금액 |
총 매출 |
| 대리점 성과 데이터가 없습니다. |
|
레벨 |
건 |
건 |
%
|
원 |
원 |
결제 완료율
0
? round((($revenue_stats['total_revenue']['paid_orders'] ?? 0) / $revenue_stats['total_revenue']['total_orders']) * 100, 2)
: 0;
?>
%
결제 단계별 현황
| 결제 단계 |
건수 |
매출 |
|
건 |
원 |
월별 매출 트렌드
전문가별 방문 성과
| 전문가 |
배정된 방문 |
완료된 방문 |
완료율 |
| 전문가 방문 데이터가 없습니다. |
|
건 |
건 |
%
|