<?php
    /**
     * Main report view.
     *
     * Contains the view layout and ome code to present the data.
     *
     * @category View
     * @property_read Report_Page $page The page model.
     */

    namespace swdb;
?>
<!DOCTYPE html>
<html lang='en'>
    <head>
        <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
        <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
        <title><?=$page->title?></title>
        <link rel='shortcut icon' href='<?=$page->favicon?>'/>
        <!-- CSS files -->
        <link rel='stylesheet' type='text/css' href='<?=URL::CSS?>ui.css'/>
        <link rel='stylesheet' type='text/css' href='<?=URL::CSS?>report.css'/>
        <link rel='stylesheet' type='text/css' href='<?=URL::CSS?>filters.css'/>
        <!-- Meta tags -->
        <link rel='canonical' href='<?=$page->canonical?>'/>
        <link rel='author' href='<?=$page->author?>'/>
        <link rel='publisher' href='<?=$page->author?>'/>
        <meta name='description' content='<?=$page->description?>'/>
        <meta property='og:title' content='<?=$page->title?>'/>
        <meta property='og:url' content='<?=$page->canonical?>'/>
        <meta property='og:description' content='<?=$page->description?>'/>
        <meta property='og:image' content='<?=$page->icon?>'/>
        <meta property='og:site_name' content='<?=$page->name?>'/>
        <meta property='og:type' content='website'/>
        <meta property='og:locale' content='en'/>
        <meta name='twitter:card' content='summary'/>
        <meta name='twitter:title' content='<?=$page->title?>'/>
        <meta name='twitter:description' content='<?=$page->description?>'/>
        <meta name='twitter:image' content='<?=$page->icon?>'/>
        <meta name='twitter:url' content='<?=$page->canonical?>'/>
        <meta name='robots' content='index follow'/>
    </head>
    <body id='body_reports'>
<?php
        include __DIR__ . "/inc/header.php";
?>
        <section class='content report'>
            <h2>
                Pending skill-ups
            </h2>
            <article>
                <img alt=' ' src='<?=URL::IMG["UNIT"]?>00015105.png'> <!-- Devilmon image -->
                <p>
                    Shows a list of the monstes in need of skilling-up
                    It sorts monster not by the absolute ammount of remaining power-ups, but by a ponderated list tht takes into account to which skills the previous power ups have gone, placing more value in the more advanced skills. 
                </p>
<?php
                $filters = FILTER::SKILLUP;
                include __DIR__ . "/inc/filter_report_skillup.php";
?>
            </article>
        </section>
        <section class='content report'>
            <h2>
                Runes to replace
            </h2>
            <article class='report'>
                <img alt=' ' src='<?=URL::IMG["RUNE"]?>base.png'>
                <p>
                    Shows monsters with runes that can be upgraded.
                    It list the runes that can be replaced by other runes in your inventory that have either more stars or a higher base quality.
                </p>
<?php
                $filters = FILTER::RUNEUPGRADE;
                $custom_filters = $page->custom_filters_runeupgrade;
                include __DIR__ . "/inc/filter_report_runeupgrade.php";
?>
            </article>
        </section>
        <section class='content report'>
            <h2>
                Runes to upgrade
            </h2>
            <article class='report'>
                <img alt=' ' src='<?=URL::IMG["GRIND"]?>gem_inmemorial.png'> 
                <p>
                    Shows monsters with runes that can be crafted.
                    It list the grindstones and gems that are available for each rune.
                </p>
<?php
                $filters = FILTER::RUNECRAFT;
                include __DIR__ . "/inc/filter_report_runecraft.php";
?>
            </article>
        </section>
<?php
        include __DIR__ . "/inc/footer.php";
?>
    </body>
</html>

