@php $pageTitle = '1:1문의내역'; $pageDesc = '내가 남긴 질문과 답변을 모아 보고, 처리 상태를 확인하세요.'; $breadcrumbs = [ ['label' => '홈', 'url' => url('/')], ['label' => '마이페이지', 'url' => url('/mypage/info')], ['label' => '1:1문의내역', 'url' => url()->current()], ]; $mypageActive = 'qna'; $stateMap = config('qna_state.state_map', []); @endphp @extends('web.layouts.subpage') @section('title', '1:1문의내역 | PIN FOR YOU') @section('meta_description', 'PIN FOR YOU 마이페이지 1:1문의내역 입니다. 문의 및 답변 내역을 확인하세요.') @section('canonical', url('/mypage/qna')) @push('styles') @endpush @section('subcontent')
@include('web.partials.content-head', [ 'title' => '1:1문의내역', 'desc' => '문의 처리 상태를 확인할 수 있습니다.' ])
문의작성하기
{{-- 상세 영역(선택된 글이 있을 때만) --}} @if($detail) @php $st = (string)($detail->state ?? 'a'); [$stLabel, $stBadge] = $stateMap[$st] ?? ['접수', 'bg-primary']; @endphp
문의내용
문의분류
처리상태
등록일
{{ $detail->enquiry_code_name ?? $detail->enquiry_code ?? '-' }}
{{ $stLabel }}
{{ $detail->regdate ? substr($detail->regdate, 0, 16) : '-' }}
제목 : {{ $detail->enquiry_title ?? '-' }}
{!! nl2br(e($detail->enquiry_content ?? '')) !!}
관리자 답변
@if(trim((string)($detail->answer_content ?? '')) !== '') {!! nl2br(e($detail->answer_content)) !!} @else 아직 답변이 등록되지 않았습니다. @endif
@endif {{-- 리스트 --}}
{{-- 데스크톱 테이블 --}}
@forelse($items as $row) @php $st = (string)($row->state ?? 'a'); [$stLabel, $stBadge] = $stateMap[$st] ?? ['접수', 'bg-primary']; $no = ($items->total() - ($items->firstItem() + $loop->index) + 1); @endphp @empty @endforelse
NO. 상태 접수분류 제목 접수시간
{{ $no }} {{ $stLabel }} {{ $row->enquiry_code_name ?? $row->enquiry_code ?? '-' }} {{ $row->enquiry_title ?? '-' }} {{ $row->regdate ? substr($row->regdate, 0, 16) : '-' }}
등록된 문의가 없습니다.
{{-- 모바일 카드 리스트 --}}
@forelse($items as $row) @php $st = (string)($row->state ?? 'a'); [$stLabel, $stBadge] = $stateMap[$st] ?? ['접수', 'bg-primary']; $no = ($items->total() - ($items->firstItem() + $loop->index) + 1); @endphp
NO. {{ $no }} {{ $stLabel }}
{{ $row->enquiry_title ?? '-' }}
접수분류 {{ $row->enquiry_code_name ?? $row->enquiry_code ?? '-' }}
접수시간 {{ $row->regdate ? substr($row->regdate, 0, 16) : '-' }}
@empty
등록된 문의가 없습니다.
@endforelse
@if($items->hasPages())
{{ $items->links('web.partials.pagination') }}
@endif
@include('web.partials.mypage-quick-actions')
@endsection