@extends('layouts.admin') @section('title', __('Email Validation')) @section('page-title', __('Email Validation')) @section('content')

{{ __('Email validation is configured per customer group. Customers run validations from their dashboard.') }}

@admincan('admin.customer_groups.access') {{ __('Manage Customer Groups') }} @endadmincan
{{ __('Filter Tools') }}
@admincan('admin.email_validation.create')
{{ __('Add Tool') }}
@endadmincan
{{ __('Tools') }}
@forelse($tools as $tool) @empty @endforelse
{{ __('Name') }} {{ __('Provider') }} {{ __('Customer') }} {{ __('Active') }} {{ __('Created') }} {{ __('Actions') }}
{{ $tool->name }} {{ $tool->provider }}
{{ $tool->customer?->full_name ?? __('Global') }}
@if($tool->customer_id !== null) {{ $tool->customer?->email ?? '—' }} @else @php $allowedGroupIds = (array) data_get($tool->meta ?? [], 'allowed_customer_group_ids', []); $allowedGroupIds = array_values(array_unique(array_filter(array_map('intval', $allowedGroupIds), fn ($id) => $id > 0))); $allowedGroupNames = array_values(array_filter(array_map(fn ($id) => $customerGroupNamesById[(int) $id] ?? null, $allowedGroupIds))); @endphp @if(empty($allowedGroupIds)) {{ __('All customer groups') }} @elseif(!empty($allowedGroupNames)) {{ implode(', ', $allowedGroupNames) }} @else — @endif @endif
{{ $tool->active ? __('Yes') : __('No') }} {{ optional($tool->created_at)->format('M d, Y') }} @if($tool->customer_id === null)
@admincan('admin.email_validation.edit') {{ __('Edit') }} @endadmincan @admincan('admin.email_validation.delete')
@csrf @method('DELETE') {{ __('Delete') }}
@endadmincan
@else @endif
{{ __('No tools found.') }}
@if($tools->hasPages())
{{ $tools->links() }}
@endif
{{ __('Filter Runs') }}
{{ __('Runs') }}
@forelse($runs as $run) @empty @endforelse
{{ __('Run') }} {{ __('Customer') }} {{ __('List') }} {{ __('Tool') }} {{ __('Status') }} {{ __('Progress') }} {{ __('Created') }}
#{{ $run->id }}
{{ $run->customer?->full_name ?? '—' }}
{{ $run->customer?->email ?? '—' }}
{{ $run->list?->name ?? '—' }}
{{ $run->tool?->name ?? '—' }}
{{ $run->tool?->provider ?? '—' }}
@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200', 'running' => 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200', 'completed' => 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200', 'failed' => 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200', ]; @endphp {{ __(ucfirst($run->status)) }} {{ number_format((int) $run->processed_count) }} / {{ number_format((int) $run->total_emails) }} {{ optional($run->created_at)->format('M d, Y') }}
{{ __('No runs found.') }}
@if($runs->hasPages())
{{ $runs->links() }}
@endif
@endsection