<?php

namespace App\Providers;

use App\View\Composer\ContestCategoryComposer;
use App\View\Composer\LanguageComposer;
use App\View\Composer\PaymentMethodComposer;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;

class ViewComposerProvider extends ServiceProvider
{
    /**
     * Register services.
     */
    public function register(): void
    {
        //
    }

    /**
     * Bootstrap services.
     */
    public function boot(): void
    {

        View::composer([
            'admin.pages.contests.create',
            'admin.pages.contests.edit',
            'admin.pages.contests.questions.create',
            'admin.pages.contests.questions.edit',
            'admin.pages.contests.questions.create-ai',
            'admin.pages.contests.questions.edit-ai',
            'admin.pages.quiz.create',
            'admin.pages.quiz.edit',
            'admin.pages.quiz.questions.edit-ai',
            'admin.pages.quiz.questions.edit',
        ], LanguageComposer::class);

        View::composer([
            'admin.pages.contests.create',
            'admin.pages.contests.edit',
        ], ContestCategoryComposer::class);
    }
}
