<?php

namespace Plugins\Larablog\ThemeMarketplace;

use App\Domain\Plugin\Hook;
use Illuminate\Support\ServiceProvider;

class PluginServiceProvider extends ServiceProvider
{
    public function boot(): void
    {
        Hook::listen('theme.sidebar', function (string $html): string {
            $title = __('admin.plugins.larablog/theme-marketplace.title');
            $desc = __('admin.plugins.larablog/theme-marketplace.description');

            return $html.'<h3>'.e($title).'</h3><p class="note">'.e($desc).'</p>';
        });
    }
}
