<?php
use Mtc\Plugins\SeoSchema\Classes\ItemFAQ;
use Mtc\Shop\Events\ItemAdminTabnavEvent;
use Illuminate\Support\Facades\Event;

if (defined('SEO_ITEM_SCHEMA_ENABLED') && SEO_ITEM_SCHEMA_ENABLED === true) {
    Event::listen(
        'Mtc\Shop\Events\ItemAdminTabnavEvent',
        function (ItemAdminTabnavEvent $event) {
            return \Mtc\Plugins\SeoSchema\Classes\ItemSchema::addTabNav($event->getItem(), $event->getRequest());
        }
    );
}