@extends('admin.layouts.app')
@section('title', 'SMS 발송 이력')
@section('page_title', 'SMS 발송 이력')
@section('page_desc', '배치 단위로 조회합니다.')
@php
$STATUS_LABELS = $labels ?? [];
$MODE_LABELS = $modeLabels ?? [];
@endphp
@push('head')
@endpush
@section('content')
총 {{ $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
| Batch |
생성일시 |
작성자 |
모드 |
예약 |
건수 |
상태 |
문구 |
@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
|
#{{ $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 }} |
@empty
| 데이터가 없습니다. |
@endforelse
{{ $batches->onEachSide(1)->links('vendor.pagination.admin') }}
@push('scripts')
@endpush
@endsection