@extends('admin.layouts.app') @section('title', '1:1 문의 상세') @section('page_title', '1:1 문의 상세') @section('page_desc', '업무 배정/처리/보류/완료 및 답변 발송') @push('head') @endpush @section('content') @php $st = (string)$row->state; $stLabel = $stateLabels[$st][0] ?? $st; $stCls = $stateLabels[$st][1] ?? 'pill--muted'; @endphp
접수분류 / 처리상태
{{ $row->enquiry_code ?? '-' }} ● {{ $stLabel }} #{{ (int)$row->seq }} / year {{ (int)$year }}
← 목록 @if($actions['can_assign'])
@csrf
@endif @if($actions['can_start'])
@csrf
@endif @if($actions['can_return'])
@csrf
@endif @if($actions['can_complete'])
@csrf
@endif
제목
{{ $row->enquiry_title }}
회원정보
@if($member)
회원번호 : {{ (int)$member->mem_no }}
이메일 : {{ $member->email }}
성명 : {{ $member->name }}
전화번호 : {{ $member->cell_phone }}
@else
회원 정보를 찾을 수 없습니다.
@endif
내용
{{ $row->enquiry_content }}
관리자 답변
@if($actions['can_answer'])
@csrf @error('answer_content')
{{ $message }}
@enderror
SMS답변 (업무완료 시 SMS요청 회원에게 발송됩니다)
@error('answer_sms')
{{ $message }}
@enderror
@else
{{ $row->answer_content ?: '등록된 답변이 없습니다.' }}
SMS: {{ $row->answer_sms ?: '-' }}
@endif
@if($actions['can_postpone'])
업무 보류
@csrf
@error('defer_comment')
{{ $message }}
@enderror
@endif
최근 구매기록(10건)
@if($orders)
@foreach($orders as $o) @endforeach
주문 상품 금액 결제일시 상태
{{ $o->order_no ?? ($o->seq ?? '-') }} {{ $o->product_name ?? '-' }} {{ $o->price ?? '-' }} {{ $o->regdate ?? '-' }} {{ $o->stat_pay ?? '-' }}
@else
구매기록을 불러올 수 없습니다(테이블/컬럼 확인 필요).
@endif
변경이력
@if($stateLog)
@foreach($stateLog as $lg) @php $aid = (int)($lg['admin_num'] ?? 0); $a = $admins[$aid] ?? null; $before = (string)($lg['state_before'] ?? ''); $after = (string)($lg['state_after'] ?? ''); @endphp @endforeach
처리자 내용 일자
{{ $a ? ($a['name'].' ('.$a['email'].')') : ('admin#'.$aid) }} {{ $stateLabels[$before][0] ?? $before }} {{ $stateLabels[$after][0] ?? $after }} {{ $lg['why'] ?? '' }} {{ $lg['when'] ?? '' }}
@else
변경이력이 없습니다.
@endif
내부 메모
@csrf @php $canMemo = (bool)($actions['canMemo'] ?? false); @endphp
@if($memoLog)
@foreach($memoLog as $m) @php $aid = (int)($m['admin_num'] ?? 0); $a = $admins[$aid] ?? null; @endphp
{{ $a ? ($a['name'].' ('.$a['email'].')') : ('admin#'.$aid) }} · {{ $m['when'] ?? '' }}
{{ $m['memo'] ?? '' }}
@endforeach
@endif
@endsection