@extends("common.layout") @php $page_title = $promotion->name; @endphp @section('page-title', $page_title) @section("content")

{{ $page_title }}

총 인원
* {{ $promotion->started_at }} 이전 마케팅 미 수신동의자 + 신규가입
{{ number_format($static['pending'] + (isset($static['applied']) ? $static['applied'] : 0) + $static['expired']) }}
대상자
* 마케팅 수신 미 동의자 + 구매이력 0건 + 신규가입
{{ number_format($static['pending']) }}
참여자
* 대상자 중 마케팅 수신동의자
{{ number_format((isset($static['applied']) ? $static['applied'] : 0) ) }}
미대상자
* 마케팅 수신 미 동의자 + 구매이력 1건 이상
{{ number_format($static['expired']) }}
{{ $list->total() }}
@foreach ( $list as $item ) @php $user = $item->user; $userDetailRoute = route('user.detail') . "/{$user?->id}"; $metadata = $item->status == 'APPLIED' ? json_decode($item->metadata, 1) : []; $issuedCoupon = []; if ( ! empty($metadata )) { $issuedCoupon = $user->issuedCoupons()->where("coupon_id", $metadata['coupon_id'])->first(); } @endphp $user->activated == 0])> @endforeach
ID 회원명 이메일 연락처 마케팅 수신동의 가입일시/마지막로그인 참여여부 참여경로 쿠폰정보 주문정보 상품정보 실결제액
{{ $item->id }} @if (!empty($user->photo)) @endif {{ $user->name }} {{ $user->getPlain('email') }} {{ $user->edm_id ? "(".$user->edm_id.")" : ""}} @if ($user->phone_code and $user->phone_code!='82') +{{ $user->phone_code }} @endif {{ \BaseHelper::formatPhoneNumber($user->getPlain('phone')) }} @if($user->is_accepted_email) @endif @if($user->is_accepted_phone) @endif {{ date('Y-m-d H:i', strtotime($user->created_at)) }}
{{ $user->last_signed_at ? date('Y-m-d H:i', strtotime($user->last_signed_at)) : "-" }}
$item->status == 'PENDING' , "badge-success" => $item->status == 'APPLIED', "badge-warning" => $item->status == 'EXPIRED', ])>{{ $status[$item->status] }} @if ( $item->status == 'APPLIED' )
({{ date('Y-m-d H:i', strtotime($item->used_at)) }})
@endif
@if ( ! empty($metadata) ) {{ isset($metadata['root']) ? $metadata['root'] : '-' }} @endif @if ( ! empty($issuedCoupon) ) {{ $issuedCoupon->coupon->name }} @endif @if ( ! empty($issuedCoupon) && $issuedCoupon->payment_id > 0 ) {{ $issuedCoupon->payment->payment_no }} @endif @if ( ! empty($issuedCoupon) && $issuedCoupon->payment_id > 0 ) @php $payment = $issuedCoupon->payment; @endphp @foreach ( $payment->enrollments as $enrollment )
{{ $enrollment->getEnrollmentName() }}
@endforeach @endif
@if ( ! empty($issuedCoupon) && $issuedCoupon->payment_id > 0 ) @php $canceledPrice = $issuedCoupon->payment->getCanceledPrice(); @endphp {{ number_format($issuedCoupon->payment->total_price) }}원 @if ( $canceledPrice > 0 )
(부분취소액: {{ number_format($canceledPrice * -1) }} 원)
@endif @endif
@endsection