@extends('admin.layouts.app') @section('title', 'SMS 발송 이력') @section('page_title', 'SMS 발송 이력') @section('page_desc', '배치 단위로 조회합니다.') @php $STATUS_LABELS = [ 'scheduled' => '예약대기', 'queued' => '대기', 'submitting' => '전송중', 'submitted' => '전송완료', 'partial' => '일부실패', 'failed' => '실패', 'canceled' => '취소', ]; $MODE_LABELS = [ 'one' => '단건', 'many' => '대량', 'template' => '템플릿', ]; @endphp @push('head') @endpush @section('content')
상태
모드
{{-- 기간: 달력 선택 (from/to) --}}
기간
~
검색
{{ $batches->total() }}
@if((string)request('date_from') !== '' || (string)request('date_to') !== '') 기간: {{ request('date_from') ?: '무제한' }} ~ {{ request('date_to') ?: '무제한' }} @endif @if((string)request('q') !== '')  / 검색어: {{ request('q') }} @endif
@forelse($batches as $b) @php $st = (string)$b->status; $pillClass = match ($st) { 'submitted' => 'pill--ok', 'partial','submitting','queued','scheduled' => 'pill--warn', 'failed','canceled' => 'pill--bad', default => 'pill--muted', }; $stLabel = $STATUS_LABELS[$st] ?? $st; @endphp @empty @endforelse
Batch 생성일시 작성자 모드 예약 건수 상태 문구
#{{ $b->id }} {{ $b->created_at }} {{ $b->admin_name ?? ('#'.$b->admin_user_id) }} {{ $MODE_LABELS[$b->send_mode] ?? $b->send_mode }} {{ $b->scheduled_at ?? '-' }} {{ $b->valid_count }}/{{ $b->total_count }} ● {{ $stLabel }}
{{ $b->message_raw }}
데이터가 없습니다.
{{ $batches->links() }}
@push('scripts') @endpush @endsection