{{-- resources/views/admin/qna/index.blade.php --}} @extends('admin.layouts.app') @section('title', '1:1 문의') @section('page_title', '1:1 문의') @section('page_desc', '접수/분배/처리/보류/완료 상태를 관리합니다.') @section('content_class', 'a-content--full') @push('head') @endpush @section('content') @php $filters = $filters ?? []; $curYear = (int)date('Y'); $selectedYear = (int)($filters['year'] ?? $year ?? $curYear); if ($selectedYear < 2018 || $selectedYear > $curYear) $selectedYear = $curYear; $qType = (string)($filters['q_type'] ?? 'title'); $q = (string)($filters['q'] ?? ''); $enquiryCode = (string)($filters['enquiry_code'] ?? ''); $state = (string)($filters['state'] ?? ''); $dateFrom = (string)($filters['date_from'] ?? ''); $dateTo = (string)($filters['date_to'] ?? ''); $myWork = !empty($filters['my_work']); $meAdminId = (int) auth('admin')->id(); $total = (is_object($rows ?? null) && method_exists($rows, 'total')) ? (int)$rows->total() : (int)($rows?->count() ?? 0); $perPage = (int)($rows?->perPage() ?? 20); $curPage = (int)($rows?->currentPage() ?? 1); $no = $total > 0 ? ($total - (($curPage - 1) * $perPage)) : 0; @endphp
| NO | SEQ | 상태 | 분류 | 제목 | 회신 | 회원 | 등록일시 | 배정자 | 관리 |
|---|---|---|---|---|---|---|---|---|---|
| {{ $no > 0 ? $no : '-' }} | #{{ (int)$r->seq }} | ● {{ $stLabel }} | {{ $catLabel }} |
{{ $r->enquiry_title ?? '-' }}
|
{{ $rtLabel }} | {{ (int)($r->member_num ?? 0) }} | {{ $r->regdate ?? '-' }} | @if($assignedAdmin > 0) {{ $assignedAdmin }} @if($isMine) ME @endif @else - @endif | 보기 |
| 데이터가 없습니다. | |||||||||