<?php

namespace Brainster\AcademyMap;

use Laravel\Nova\Nova;
use Laravel\Nova\Tool;

class AcademyMap extends Tool
{
    /**
     * Perform any tasks that need to happen when the tool is booted.
     *
     * @return void
     */
    public function boot()
    {
        Nova::script('academy-map', __DIR__.'/../dist/js/tool.js');
        Nova::style('academy-map', __DIR__.'/../dist/css/tool.css');
    }

    /**
     * Build the view that renders the navigation links for the tool.
     *
     * @return \Illuminate\View\View
     */
    public function renderNavigation()
    {
        return view('academy-map::navigation');
    }
}
