@extends('layouts.admin') @section('title', '통합 발송 내역') @section('content')

@yield('title')

새로고침 메시지 발송
@slot('filters') @endslot
@forelse ($batches as $batch) @php $batchId =$batch->batch_id; $subLogs = $batch->sub_logs ?? collect([$batch]); $collapseId = 'collapse_batch_' .$batchId; @endphp @empty @endforelse
배치 ID / 발송일시 발송 구분 및 업무 수신자 정보 최종 결과 상세리스트
{{ $batchId }}
{{ optional($batch->created_at)->format('Y-m-d H:i:s') }}
{{ $batch->dispatch_type === 'AUTO' ? '시스템자동' : '수동발송' }} {{ $batch->business_title }}
{{ $batch->source_display_text }}
총 {{ $batch->total_recipients ?? $subLogs->count() }}건
성공 {{ $batch->success_count ?? 0 }}건 @if(($batch->failed_count ?? 0) > 0) 실패 {{ $batch->failed_count }}건 @endif
상세 발송 리스트 ({{ $subLogs->count() }}건)
Batch: {{ $batchId }}
@foreach ($subLogs as $item) @php $memberName =$item->receiver?->name; @endphp @endforeach
채널 수신처 / 회원정보 메시지 타이틀 (제목) 상태 단건 상세
{{ strtoupper($item->channel) }}
{{ $item->receiver_contact ?: '-' }}
@if($item->receiver_id &&$memberName) {{ $memberName }} (회원 #{{ $item->receiver_id }}) @else {{ $item->receiver_type === 'SHOP_OWNER' ? '뷰티샵 원장' : ($item->receiver_type === 'ADMIN' ? '본사 관리자' : '비회원/기타') }} @endif
{{ $item->title ?: '(제목 없음 / 본문 직접 전송)' }}
@if ($item->status === 'SUCCESS') 성공 @elseif ($item->status === 'FAIL') 실패 @else 대기 @endif
발송된 알림 관제 데이터가 없습니다.
@if (isset($batches) && method_exists($batches, 'hasPages') &&$batches->hasPages())
{{ $batches->appends(request()->query())->links('vendor.pagination.admin') }}
@endif
@forelse ($batches as $batch) @php $mBatchId =$batch->batch_id; $mSubLogs = $batch->sub_logs ?? collect([$batch]); $mCollapseId = 'm_collapse_batch_' .$mBatchId; @endphp
{{ $mBatchId }} {{ optional($batch->created_at)->format('m-d H:i') }}
{{ $batch->business_title }}
{{ $batch->source_display_text }}
총 {{ $mSubLogs->count() }}건 성공 {{ $batch->success_count ?? 0 }} @if(($batch->failed_count ?? 0) > 0) 실패 {{ $batch->failed_count }} @endif
@foreach ($mSubLogs as $mItem) @php $mMemberName =$mItem->receiver?->name; @endphp
{{ strtoupper($mItem->channel) }} @if($mItem->receiver_id &&$mMemberName) {{ $mMemberName }} @else {{ $mItem->receiver_contact ?: ('#' . ($mItem->receiver_id ?? '-')) }} @endif
{{ $mItem->title ?: '(제목 없음)' }}
@endforeach
@empty
발송 내역이 없습니다.
@endforelse
@if (isset($batches) && method_exists($batches, 'hasPages') &&$batches->hasPages())
{{ $batches->appends(request()->query())->links('vendor.pagination.admin') }}
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush