<?php

namespace Plugins\Larablog\PluginMarketplace;

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/plugin-marketplace.title');
            $desc = __('admin.plugins.larablog/plugin-marketplace.description');

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