@extends('admin.layouts.app')
@section('title', '회원 상세')
@section('page_title', '회원 상세')
@section('page_desc', '회원상태/전화번호 변경/메모/변경이력을 관리합니다.')
@push('head')
@endpush
@section('content')
@php
$no = (int)($member->mem_no ?? 0);
$s3 = (string)($member->stat_3 ?? '1');
$s3Label = $stat3Map[$s3] ?? ('stat_3='.$s3);
$sPill = 'pill--muted';
if ($s3==='1') $sPill='pill--ok';
elseif($s3==='2') $sPill='pill--warn';
elseif($s3==='3') $sPill='pill--bad';
$g = (string)($member->gender ?? 'n');
$n = (string)($member->native ?? 'n');
$gender = $genderMap[$g] ?? '-';
$native = $nativeMap[$n] ?? '-';
$birth = (string)($member->birth ?? '');
$birth = ($birth && $birth !== '0000-00-00') ? $birth : '-';
$dtReg = $member->dt_reg ?? '-';
$dtMod = $member->dt_mod ?? '-';
$dtLogin = $member->dt_login ?? '-';
$failCnt = (int)($member->login_fail_cnt ?? 0);
$rcvE = (string)($member->rcv_email ?? 'n');
$rcvS = (string)($member->rcv_sms ?? 'n');
// stat_3 select: 4~6은 disabled
$editableOptions = ['1','2','3'];
@endphp
회원 상세
#{{ $no }} / {{ $member->name ?? '-' }}
@if(!empty($member->email))
· {{ $member->email }}
@endif
← 목록
{{-- KV --}}
성명/기본정보
{{ $member->name ?? '-' }}
성별: {{ $gender }} · 생년월일: {{ $birth }} · {{ $native }}
휴대폰(통신사)
{{ $corpLabel ?? '-' }}
{{ $phoneDisplay ?? '-' }}
수신동의
Email : {{ $rcvE }}
SMS : {{ $rcvS }}
계좌정보
@if(($bank['has'] ?? false))
{{ $bank['bank_name'] ?? '-' }}
{{ $bank['account'] ?? '-' }}
예금주: {{ $bank['holder'] ?? '-' }}
@else
등록안됨
@endif
{{-- 수정 폼: stat_3(1~3), 통신사, 전화번호만 --}}
{{-- 인증/주소 --}}
인증/주소
| type |
state |
date |
@forelse($authRows as $r)
@php $st = (string)($r['auth_state'] ?? 'N'); @endphp
| {{ $r['auth_type'] ?? '-' }} |
● {{ $st }}
|
{{ $r['auth_date'] ?? '-' }} |
@empty
| 인증 내역이 없습니다. |
@endforelse
주소
@forelse($addresses as $a)
#{{ $a['seq'] ?? '-' }}
gubun={{ $a['gubun'] ?? '-' }}
shipping={{ $a['shipping'] ?? '-' }}
{{ $a['date'] ?? '-' }}
({{ $a['zipNo'] ?? '' }})
{{ $a['roadAddrPart1'] ?? '' }}
{{ $a['jibunAddr'] ?? '' }}
{{ $a['addrDetail'] ?? '' }}
@empty
주소가 없습니다.
@endforelse
{{-- 관리자 메모 --}}
@forelse($adminMemo as $it)
{{ $it['ts'] ?? '-' }}
@php
$aid = (int)($it['actor_admin_id'] ?? 0);
$am = $aid > 0 ? ($adminMap[$aid] ?? null) : null;
$aEmail = is_array($am) ? trim((string)($am['email'] ?? '')) : '';
$aName = is_array($am) ? trim((string)($am['name'] ?? '')) : '';
// 출력: email / 이름
$aDisp = trim(($aEmail !== '' ? $aEmail : '-')." / ".($aName !== '' ? $aName : '-'));
@endphp
admin : {{ $aDisp }}
@if(!empty($it['ip'])) {{ $it['ip'] }} @endif
{{ $it['memo'] ?? '' }}
@empty
메모가 없습니다.
@endforelse
{{-- 관리자 변경이력(modify_log) --}}
관리자 변경이력
너무 길면 아래 영역이 스크롤됩니다.
@forelse($modifyLog as $it)
@php
$aid = (int)($it['actor_admin_id'] ?? 0);
$am = $aid > 0 ? ($adminMap[$aid] ?? null) : null;
$aLabel = '-';
if (is_array($am)) {
$name = trim((string)($am['name'] ?? ''));
$email = trim((string)($am['email'] ?? ''));
$aLabel = $email." / ".$name;
}
@endphp
{{ $it['ts'] ?? '-' }}
admin : {!! ' '.$aLabel !!}
@if(!empty($it['action'])) {{ $it['action'] }} @endif
@if(!empty($it['ip'])) {{ $it['ip'] }} @endif
@if(!empty($it['changes']) && is_array($it['changes']))
@foreach($it['changes'] as $k=>$chg)
@php
$b = $chg['before'] ?? null;
$a = $chg['after'] ?? null;
$before = is_scalar($b) ? (string)$b : '[...]';
$after = is_scalar($a) ? (string)$a : '[...]';
@endphp
{{ $k }}
{{ $before }}
→
{{ $after }}
@endforeach
@else
변경 상세 없음
@endif
@empty
변경이력이 없습니다.
@endforelse
{{-- 하단 액션바 --}}
@endsection