<?php

namespace App\Filament\Resources\FinancialOperations\Schemas;

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

class FinancialOperationInfolist
{
    public static function configure(Schema $schema): Schema
    {
        return $schema
            ->components([
                TextEntry::make('company_id')
                    ->numeric(),
                TextEntry::make('user_id')
                    ->numeric(),
                TextEntry::make('operation_type'),
                TextEntry::make('source_credit_id')
                    ->numeric()
                    ->placeholder('-'),
                TextEntry::make('target_credit_id')
                    ->numeric()
                    ->placeholder('-'),
                TextEntry::make('credit_amount')
                    ->numeric(),
                TextEntry::make('compensated_amount')
                    ->numeric(),
                TextEntry::make('cash_out')
                    ->numeric(),
                TextEntry::make('cash_in')
                    ->numeric(),
                TextEntry::make('expense_id')
                    ->numeric()
                    ->placeholder('-'),
                TextEntry::make('income_id')
                    ->numeric()
                    ->placeholder('-'),
                TextEntry::make('notes')
                    ->placeholder('-')
                    ->columnSpanFull(),
                TextEntry::make('created_at')
                    ->dateTime()
                    ->placeholder('-'),
                TextEntry::make('updated_at')
                    ->dateTime()
                    ->placeholder('-'),
            ]);
    }
}
