@extends('layouts.admin', [ 'title' => 'Providers | Admin | LottoData', 'heading' => 'Providers', ]) @section('content')

Import providers

Manage live data providers, credentials, and default selection.

Providers stay vendor-specific at the adapter layer, while the app resolves the active provider from admin-managed records. LotteryData.io is supported now, and additional adapters can be added later without rewriting the import command.

Add provider
@if (session('status'))
{{ session('status') }}
@endif
@forelse ($providers as $provider) @empty @endforelse
Provider Type Games Status Last import Actions
{{ $provider->name }}
@if ($provider->is_default) Default @endif @if ($provider->is_active) Active @else Inactive @endif
{{ $provider->type }} {{ $provider->supported_games ? collect($provider->supported_games)->map(fn ($key) => str($key)->replace('_', ' ')->title())->implode(', ') : 'All supported games' }}
{{ $provider->last_status ? str($provider->last_status)->headline() : 'Not run yet' }}
{{ $provider->last_status_message ?: 'No import metadata yet.' }}
{{ $provider->last_imported_at?->format('M j, Y g:i A') ?? 'Never' }}
Edit
@csrf @method('DELETE')
No providers are configured yet. Add a LotteryData.io provider to enable live imports.
@endsection