{{-- Task #33876 — LTV (SCR-01) — read-only analytics, System Admin / 売上データ. EP-01: GET /admin/revenue/ltv/data (overall | by_channel). RESOLVED: LTV = ARPU × 継続月数 (BR-01); 金額 円 + phân cách nghìn, âm → − (BR-G6); 継続月数 1 chữ số thập phân, 解約率=0 → "0.0"; no-data →「-」 (BR-G4). by_channel REDESIGN QD-09b (TD v2, kế thừa #33882): cột kênh ĐỘNG theo path intro (path_intro_name). ⏳ Pending (KHÔNG codify — L4): 前月比 format (QA-spec-006) → null →「-」; nguồn path intro (QD-07b) → channels rỗng (empty-state ⏳ P-4); ARPU thành phần 売上合計 (QA-spec-021, job TA-default). UI compose lme-ui (date-picker/button/icon). Bảng analytics grouped-header tự dựng (lme-table không hỗ trợ header nhóm đa cấp LTV/ARPU/継続月数 × 金額/前月比). --}} @extends('layout.admin_v2.main') @section('title') LTV @endsection @push('css') @endpush @section('content')
{{-- Tiêu đề màn --}}

LTV

{{-- Card nội dung: toolbar + bảng (tiêu đề màn nằm NGOÀI card) --}}
{{-- Thanh công cụ: ◀ [date-picker năm] ▶ (trái) | nút toggle view (phải) --}}
{{-- Năm tài chính 4月始まり (BR-G5) — ô viền + icon lịch (lme-date-picker year) --}}
{{-- Toggle view — nhãn theo view hiện tại (FN-3) --}} @{{ toggleLabel }}
{{-- Vùng nội dung bảng --}}
{{-- Loading --}}
{{-- Error (5xx/network) + 再試行 --}}

@{{ error }}

再試行
{{-- View 全体数値 (overall) — 12 tháng năm tài chính --}}
{{-- 前月比 tách 2 CỘT (diff | ratio) theo design → header 前月比 colspan=2 --}} {{-- 前月比 LTV (RESOLVED QA-spec-006/BR-05, TD v4): diff (금액) | ratio (%), 2 cột --}} {{-- 継続月数 前月比: diff format theo tháng (1 thập phân) --}}
月 LTV ARPU 継続月数
金額前月比 金額前月比 月数前月比
@{{ row.month }} @{{ formatCurrency(row.ltv) }}@{{ formatSignedAmount(row.ltv_diff) }} @{{ formatPercent(row.ltv_ratio) }} @{{ formatCurrency(row.arpu) }} @{{ formatSignedAmount(row.arpu_diff) }} @{{ formatPercent(row.arpu_ratio) }} @{{ formatMonths(row.continuation_months) }}@{{ formatSignedMonths(row.continuation_diff) }} @{{ formatPercent(row.continuation_ratio) }}
{{-- View 経路別 (by_channel) — TD v5 (RESOLVED QA-spec-047/048/049/050): cột CỐ ĐỊNH 全体LTV (BR-08) + kênh ĐỘNG theo path intro (channelColumns). Mỗi cột = 金額 + 前月比. ⏳ QD-07b/QA-spec-021: 金額 per-path (amount) chưa có nguồn → render「-」; 全体LTV có dữ liệu thật. --}}
{{-- Cột 全体LTV cố định đứng đầu (BR-08 — reuse LTV view 全体数値) --}} {{-- Cột kênh động (登録経路) — tên dài cắt「…」, hover xem đầy đủ qua tooltip --}} {{-- 前月比 tách 2 CỘT (diff | ratio) theo design → header 前月比 colspan=2 --}} {{-- 全体LTV (BR-08): 金額 = LTV view 全体数値 cùng tháng + 前月比 (dữ liệu thật) --}} {{-- Kênh động (BR-07 — 金額 per-path): amount + 前月比 ⏳ QD-07b → 「-」 --}}
月全体LTV @{{ col.path_intro_name }}
金額前月比
@{{ row.month }}@{{ formatCurrency(overallLtv(row, 'amount')) }} @{{ formatSignedAmount(overallLtv(row, 'prev_month_diff')) }} @{{ formatPercent(overallLtv(row, 'prev_month_ratio')) }}
{{-- Chưa có 登録経路 nào đăng ký → chỉ hiển thị cột 全体LTV (cột kênh trống). ⏳ P-4 (chưa có mockup). --}}

登録経路がありません(全体LTVのみ表示)。

@endsection @push('script') @endpush