@extends('layouts.admin') @section('title', '알림 템플릿 관리') @section('content')

@yield('title')

등록
@php $currentTarget = request('target', ''); @endphp
전체 보기 @foreach(\App\Models\NotificationTemplate::TARGETS as $tKey => $tLabel) {{ $tLabel }} @endforeach
@if(request('target')) @endif @php $notificationCategories = config('notification_categories.categories', []); $selectedCategory = request('category'); $selectedSubcategory = request('subcategory'); $selectedType = request('type'); // 현재 선택된 대분류에 속한 소분류 목록 추출 $currentSubcategories = ($selectedCategory && isset($notificationCategories[$selectedCategory]['subcategories'])) ? $notificationCategories[$selectedCategory]['subcategories'] : []; @endphp
총 {{ isset($notifications) && method_exists($notifications, 'total') ? $notifications->total() : count($notifications) }}개의 알림 템플릿
@forelse($notifications as $item) @php // 채널별 배경 테마 클래스 및 아이콘 분기 처리 $screenClass = 'screen-sms'; $channelIcon = 'fa-solid fa-comment-sms'; if ($item->type === 'ALIMTALK') { $screenClass = 'screen-alimtalk'; $channelIcon = 'fa-solid fa-comment'; } elseif ($item->type === 'EMAIL') { $screenClass = 'screen-email'; $channelIcon = 'fa-solid fa-envelope-open-text'; } @endphp
{{ now()->format('H:i') }}
{{ $item->category_name }} {{ $item->subcategory_name }}
{{ $item->type }}
{{ $item->code }}
수신: @if($item->target === 'user') 일반회원 @elseif($item->target === 'shop') 뷰티샵 대표/직원 @else 시스템 최고관리자 @endif
@if($item->type === 'EMAIL')
발송자: GLOBEAU 고객센터
@endif @if($item->title)
{{ $item->type === 'EMAIL' ? '제목: ' . $item->title : '[' . $item->title . ']' }}
@endif
{{ $item->content }}
@if($item->description)
{{ $item->description }}
@endif
@empty
등록되었거나 검색 조건에 일치하는 알림 템플릿이 없습니다.
@endforelse
@if(isset($notifications) && method_exists($notifications, 'hasPages') && $notifications->hasPages())
{{ $notifications->appends(request()->query())->links('vendor.pagination.admin') }}
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush