@extends('admin.layouts.app')
@section('title', '메일 발송 이력')
@section('page_title', '메일 발송 이력')
@section('page_desc', '배치 단위로 조회합니다.')
@push('head')
@endpush
@section('content')
@php
$statusLabel = $labels ?? [];
$modeLabel = $modeLabels ?? [];
@endphp
총 {{ $batches->total() }}건
| Batch |
생성일시 |
작성자 |
모드 |
예약 |
진행률 |
상태 |
제목 |
@forelse($batches as $b)
@php
$st = (string)$b->status;
$pillClass = match ($st) {
'sent' => 'pill--ok',
'partial','sending','queued','scheduled' => 'pill--warn',
'failed','canceled' => 'pill--bad',
default => 'pill--muted',
};
$stK = $statusLabel[$st] ?? $st;
$modeK = $modeLabel[(string)$b->send_mode] ?? $b->send_mode;
$sent = (int)($b->sent_count ?? 0);
$total = (int)($b->valid_count ?? $b->total_count ?? 0);
@endphp
|
#{{ $b->id }}
|
{{ $b->created_at }} |
{{ $b->admin_name ?? ('#'.$b->admin_user_id) }} |
{{ $modeK }} |
{{ $b->scheduled_at ?? '-' }} |
{{ $sent }}/{{ $total }} |
● {{ $stK }} |
{{ $b->subject_raw ?? '-' }} |
@empty
| 데이터가 없습니다. |
@endforelse
{{ $batches->onEachSide(1)->links('vendor.pagination.admin') }}
@push('scripts')
@endpush
@endsection