<?php
namespace Claromentis\Holidays\UI;

$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"] ?: array()) + array("_416b2db31053930a546ef9b201ec" . "2abe" => base64_decode("aXNfbWFuY" . "Wdlcl92aX" . "NpYmxlLnZ" . "pc2libGU="), "_c71ca836fe3d379667de3d" . "af0f7e3b5d" => base64_decode("aXNfcmVwb3J0X3Zpc2libGUudml" . "zaWJsZQ=="), "templ" . "ate" => base64_decode("dGVtcGxh" . "dGU="));
use Claromentis\Core\Application;
use Claromentis\Core\Templater\Plugin\TemplaterComponentTmpl;






class MainNavigation extends TemplaterComponentTmpl
{
    public function Show($attributes, Application $app)
    {
        $args = [];
        $user_id = $app->security->GetUserId();
        $_24e0e36600d6af77406a44bb618a6253 = \HpToolKit::Instance()->GetHpUserById($user_id);
        $args[$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_416b2db31053930a546ef9b201ec2a" . "be"]] = $_24e0e36600d6af77406a44bb618a6253->IsManager();
        if ($_24e0e36600d6af77406a44bb618a6253->IsManager() || \HpToolKit::CheckUserReportPermission($user_id)) {
            $args[$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_c71ca836fe3d379667d" . "e3daf0f7e3b5d"]] = 1;
        } else {
            $args[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_c71ca836fe3d3796" . "67de3daf0f7e3b5d"]] = 0;
        }
        $template = $attributes[$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["templat" . "e"]];
        
        
        return $this->CallTemplater($template, $args);
    }
}