{{-- Task #33882 — チャーンレート (Churn rate) — SCR-02 (read-only analytics, System Admin / 売上データ). Giao diện lấy từ branch 33882 (layout/CSS/HTML), wire AJAX thật tới EP-02: GET route('churnRateData') (?view=overall|by_channel ...). Backend (Controller → Service → Repository) giữ nguyên của branch hiện tại. --}} @extends('layout.admin_v2.main') @section('title', 'チャーンレート') @push('css') @endpush @section('content')
@{{ error }}
| 月 | 解約率 | 前月末の有料アカウント数 | 当月末の解約数 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 合計 | @{{ label }} | @{{ label }} | |||||||||
| 合計数 | @{{ formatRate(totalRow.rate) }} | @{{ formatNum(val) }} | @{{ formatNum(val) }} | ||||||||
| @{{ row.month }} | @{{ formatRate(row.rate) }} | @{{ formatNum(val) }} | @{{ formatNum(val) }} | ||||||||
| 登録経路 | {{-- Mỗi nhóm 経路 rộng 240px (2 sub-col × 120px); tên dài → cắt 20 ký tự + '…', full text ở tooltip --}}@{{ truncateLabel(rt.name) }} | |
|---|---|---|
| 解約数 | 継続月数 | |
| 合計数 | @{{ formatNum(visibleTotalRow[i].cancel) }} | @{{ formatMonths(visibleTotalRow[i].months) }} |
| @{{ row.label }} | @{{ formatNum(cell.cancel) }} | @{{ formatMonths(cell.months) }} |