@extends('admin.layouts.app') @section('title', '마케팅 회원 추출') @section('page_title', '마케팅 회원 추출') @section('page_desc', '조건에 맞는 회원을 빠르게 조회하고, 전체를 ZIP(암호)로 내려받습니다. (화면은 상위 10건만 표시)') @push('head') @endpush @section('content') @php $f = $filters ?? []; $stat3 = (string)($f['stat_3'] ?? ''); $regFrom = (string)($f['reg_from'] ?? ''); $regTo = (string)($f['reg_to'] ?? ''); // ✅ 로그인 필터: mode + days (둘 중 하나만) $loginMode = (string)($f['login_mode'] ?? 'none'); // none|inactive|recent $loginDays = (string)($f['login_days'] ?? ''); // 구매/최근구매 $hasPur = (string)($f['has_purchase'] ?? 'all'); // all|1|0 $recent = (string)($f['recent_purchase'] ?? 'all'); // all|30|90 $minCnt = (string)($f['min_purchase_count'] ?? ''); $minAmt = (string)($f['min_purchase_amount'] ?? ''); // 수신동의/정보유무 $optSms = (string)($f['optin_sms'] ?? 'all'); // all|1|0 $optEmail = (string)($f['optin_email'] ?? 'all'); // all|1|0 $hasPhone = (string)($f['has_phone'] ?? 'all'); // all|1|0 $hasEmail = (string)($f['has_email'] ?? 'all'); // all|1|0 @endphp
조건 매칭 건수
{{ number_format((int)($total ?? 0)) }} 건
화면 표시
상위 10건만 미리보기
통계 기준일
{{ $as_of_date ?? '-' }}
{{-- 검색/필터 --}}
검색/필터
{{-- stat_3 --}}
@foreach(($stat3Map ?? []) as $k=>$label) @endforeach
{{-- 가입일 --}}
{{-- 로그인 필터 (둘 중 하나만) --}}
- 미접속일수(이상): 최근 로그인으로부터 N일 이상 지난 회원
- 최근 로그인(이내): 최근 로그인으로부터 N일 이내인 회원 (예: 30 → 최근 30일 내 로그인)
{{-- 구매 조건 --}}
구매 상세 조건(선택)
{{-- 추가 옵션 --}}
추가 옵션 (수신동의/정보유무)
초기화
안내: 화면은 상위 10건만 표시합니다. 다운로드는 조건에 매칭되는 전체 데이터가 포함됩니다.
{{-- 다운로드 --}}
전체 다운로드 (ZIP 암호화)
- 다운로드 파일에는 성명/전화번호/이메일이 포함됩니다.
- ZIP 비밀번호는 서버에 저장하지 않습니다. 분실 주의
@csrf {{-- filters hidden --}} @foreach(($filters ?? []) as $k=>$v) @if(is_scalar($v) && $k !== 'phone_enc') @endif @endforeach
@error('zip_password')
{{ $message }}
@enderror
{{-- 미리보기 --}}
미리보기 (상위 10건)
총 {{ number_format((int)($total ?? 0)) }}건 중 상위 10건
@forelse(($rows ?? []) as $r) @php $no = (int)($r['mem_no'] ?? 0); $inactiveDays = $r['days_since_login']; $inactiveDays = ($inactiveDays === null ? '-' : (string)$inactiveDays); @endphp @empty @endforelse
회원번호 성명 전화번호 이메일 회원상태 가입일시 최근로그인 미접속일수 누적구매횟수 누적구매금액 최근구매일 SMS수신 이메일수신
#{{ $no }} {{ $r['name'] ?? '-' }} {{ $r['phone_display'] ?? '-' }} {{ $r['email'] ?? '' }} {{ $r['stat_3_label'] ?? ($r['stat_3'] ?? '') }} {{ $r['reg_at'] ?? '-' }} {{ $r['last_login_at'] ?? '-' }} {{ $inactiveDays }} {{ number_format((int)($r['purchase_count_total'] ?? 0)) }} {{ number_format((int)($r['purchase_amount_total'] ?? 0)) }} {{ $r['last_purchase_at'] ?? '-' }} {{ ((int)($r['optin_sms'] ?? 0)===1) ? '수신동의' : '수신미동의' }} {{ ((int)($r['optin_email'] ?? 0)===1) ? '수신동의' : '수신미동의' }}
조건에 해당하는 데이터가 없습니다.
@push('scripts') @endpush @endsection