<?php

namespace App\Filament\Resources\InterstitialAds\Schemas;

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

class InterstitialAdInfolist
{
    public static function configure(Schema $schema): Schema
    {
        return $schema
            ->components([
                TextEntry::make('user.name')
                    ->label('User')
                    ->placeholder('-'),
                TextEntry::make('link.title')
                    ->label('Link'),
                TextEntry::make('ad_type'),
                TextEntry::make('title')
                    ->placeholder('-'),
                TextEntry::make('body_text')
                    ->placeholder('-')
                    ->columnSpanFull(),
                ImageEntry::make('image_path')
                    ->placeholder('-'),
                TextEntry::make('button_text')
                    ->placeholder('-'),
                TextEntry::make('button_url')
                    ->placeholder('-')
                    ->columnSpanFull(),
                TextEntry::make('iframe_url')
                    ->placeholder('-')
                    ->columnSpanFull(),
                TextEntry::make('ad_script')
                    ->placeholder('-')
                    ->columnSpanFull(),
                TextEntry::make('custom_html')
                    ->placeholder('-')
                    ->columnSpanFull(),
                TextEntry::make('duration_seconds')
                    ->numeric(),
                TextEntry::make('skippable_after')
                    ->numeric()
                    ->placeholder('-'),
                TextEntry::make('status'),
                TextEntry::make('created_at')
                    ->dateTime()
                    ->placeholder('-'),
                TextEntry::make('updated_at')
                    ->dateTime()
                    ->placeholder('-'),
            ]);
    }
}
