<?php

namespace App\Filament\Resources\Fixtures\Schemas;

use Filament\Infolists\Components\TextEntry;
use Filament\Schemas\Schema;

class FixtureInfolist
{
    public static function configure(Schema $schema): Schema
    {
        return $schema
            ->components([
                TextEntry::make('homeTeam.name')
                    ->label('Home team'),
                TextEntry::make('awayTeam.name')
                    ->label('Away team'),
                TextEntry::make('stage')
                    ->placeholder('-'),
                TextEntry::make('venue')
                    ->placeholder('-'),
                TextEntry::make('starts_at')
                    ->dateTime(),
                TextEntry::make('picks_lock_at')
                    ->dateTime()
                    ->placeholder('-'),
                TextEntry::make('status')
                    ->badge(),
                TextEntry::make('home_score')
                    ->numeric()
                    ->placeholder('-'),
                TextEntry::make('away_score')
                    ->numeric()
                    ->placeholder('-'),
                TextEntry::make('result')
                    ->badge()
                    ->placeholder('-'),
                TextEntry::make('result_declared_at')
                    ->dateTime()
                    ->placeholder('-'),
                TextEntry::make('created_at')
                    ->dateTime()
                    ->placeholder('-'),
                TextEntry::make('updated_at')
                    ->dateTime()
                    ->placeholder('-'),
            ]);
    }
}
