<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;

/* @UVDeskCoreFramework/ticket.html.twig */
class __TwigTemplate_ac515676e67ef000e1efaf24f4fd9cc0 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'title' => [$this, 'block_title'],
            'templateCSS' => [$this, 'block_templateCSS'],
            'pageContent' => [$this, 'block_pageContent'],
            'footer' => [$this, 'block_footer'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "@UVDeskCoreFramework//Templates//layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 367
        $context["isTicketViewPage"] = ("helpdesk_member_ticket" == CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 367), "attributes", [], "any", false, false, false, 367), "get", ["_route"], "method", false, false, false, 367));
        // line 1
        $this->parent = $this->loadTemplate("@UVDeskCoreFramework//Templates//layout.html.twig", "@UVDeskCoreFramework/ticket.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((("#" . CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 3)) . " ") . CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "subject", [], "any", false, false, false, 3)), "html", null, true);
        yield from [];
    }

    // line 5
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_templateCSS(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 6
        yield "<link href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css\" rel=\"stylesheet\">
  <script src=\"https://popees.dranzo.com/vendor/uvdesk/core-framework/Resources/views/mxClient.min.js\"></script>
       <script src=\"https://popees.dranzo.com/vendor/uvdesk/core-framework/Resources/views/mxClient.js\"></script>

    <style>
        .uv-aside-ticket-labels.label-list-block .uv-btn-label {
            cursor: pointer;
        }
        .uv-main-info-update-block .uv-element-block {
            margin: 10px 0px !important;
        }
        .uv-tab-ellipsis {
            position: relative;
        }
        .uv-inner-section .uv-view .uv-ticket-section .uv-ticket-accordion .uv-ticket-wrapper {
            display: block;
        }
        .uv-element-block.cc-bcc .uv-dropdown-container {
            padding: 10px 20px 10px 20px;
        }
        .uv-action-buttons .uv-dropdown-list ul li {
            padding: 5px 0px !important;
        }
        .uv-action-buttons{
            margin-bottom: 40px !important;
        }
        .uv-ticket-reply .uv-element-block-textarea, .thread-edit-container .uv-element-block-textarea {
            width: 100% !important;
            max-width: 100% !important;
        }
        .thread-edit-container .uv-field-message {
            color: #FF5656 !important;
        }
        .uv-element-block .mce-tinymce {
            margin-top: 10px;
        }
        .uv-ticket-reply .uv-element-block-textarea .uv-field-message, .thread-edit-container .uv-element-block-textarea .uv-field-message {
            margin-top: 15px;
        }
        .thread-edit-container {
            margin-top: 10px;
        }
        .uv-ticket-viewer-bar{
            transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            height: 0px;
        }
        .uv-ticket-viewer-bar.active{
            height: 50px;
            margin-bottom: 10px;
            border-bottom: 1px dotted #f97278;
        }
        .uv-ticket-viewer-single {
            display: inline-block;
            margin-right: 5px;
        }
        .uv-ticket-viewer-single img {
            width: 40px;
            border-radius: 3px;
            display: inline-block;
            vertical-align: middle;
        }
        .uv-ticket-viewer-single.uv-first {
            width: 40px;
            height: 40px;
            background-image: linear-gradient(to right, #f97278 0%, #f181bf 100%);
            text-align: center;
            vertical-align: top;
            line-height: 30px;
            border-radius: 20px;
        }
        .uv-ticket-viewer-close {
            position: absolute;
            top: 0px;
            width: 40px;
            height: 40px;
            background: #f1f1f1;
            text-align: center;
            line-height: 35px;
            border-radius: 2px;
            opacity: .6;
            text-indent: 6px;
        }
        .uv-ticket-viewer-list {
            display: inline;
        }
        span.viewer-firstletter.img-thumbnail {
            width: 40px;
            height: 40px;
            display: block;
            text-align: center;
            font-size: 20px;
            font-style: italic;
            border: 1px dotted;
            border-radius: 4px;
            line-height: 35px;
        }
        .uv-ticket-viewer-close {
            display:none;
        }
        .uv-ticket-viewer-single:hover .uv-ticket-viewer-close {
            display: block;
        }
        .uv-hide{
            display: none;
        }
        .uv-info{
            background: #7C70F4;
        }
        .uv-ticket-viewer-list .uv-icon-eye-light{
            animation: jelly 0.8s infinite alternate ease-in-out;
        }
        .uv-aside-brick .uv-loader {
            position: absolute;
            transform: scale(0.5);
            top: 22px;
            right: 45px;
        }
        .uv-app-glyph-customfields {
            width: 20px;
            height: 20px;
            background-position: center center;
            background-repeat: no-repeat;
            cursor: pointer;
            display: inline-block;
            vertical-align: middle;
            margin: 5px 0px 5px 10px;
            background-image: url(\"";
        // line 134
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdeskcoreframework/images/app-glyph-custom.svg"), "html", null, true);
        yield "\");
        }
        .uv-no-threads {
            padding: 80px 20px;
            text-align: center;
        }
        .uv-ticket-strip-label {
            position: relative;
        }
        input.input-copy-thread-link {
            position: absolute;
            bottom: 10px;
            width: 400px;
        }
        .uv-ticket-action-bar-fixed{
            position: fixed;
            width: 100%;
            background: #fff;
            z-index: 999;
        }
        .uv-ticket-action-bar-fixed .uv-ticket-action-bar-rt{
            position: fixed;
            right: 0px;
            margin-top: 10px;
        }
        .uv-ticket-action-bar-fixed + .uv-ticket-viewer-bar{
            margin-top: 70px;
        }
        .uv-ticket-main {
            word-wrap: break-word;
        }
        @media only screen and (max-width: 900px) {
            .uv-ticket-action-bar-fixed{
                position: relative;
            }
            .uv-ticket-action-bar-fixed + .uv-ticket-viewer-bar{
                margin-top: 0px;
            }
            .uv-ticket-action-bar-fixed .uv-ticket-action-bar-rt{
                position: relative;
            }
        }
        .uv-icon-pin {
            width: 18px;
            height: 18px;
            display: inline-block;
            vertical-align: middle;
            background-image: url(\"";
        // line 181
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdeskcoreframework/images/uvdesk-sprite.svg"), "html", null, true);
        yield "\");
            background-position: 0px -396px;
            transition: transform .15s;
            transform: scale(1);
        }
        .uv-icon-pinned {
            background-position: -19px -396px;
        }
        .uv-header-fix{
            display: inline-block;
            margin: 0px 10px 0px 5px;
        }
        .uv-header-fix + .uv-tabs{
            display: inline-block;
        }
        .uv-ticket-section span.uv-mail-status {
            width: 16px;
            height: 16px;
            background: url('../../../../../bundles/webkuldefault/images/mail-status.png');
            cursor: help;
        }
        .uv-ticket-section .uv-mail-status.uv-mail-processed {
            background-position: 0 0;
        }
        .uv-ticket-section .uv-mail-status.uv-mail-open,.uv-ticket-section .uv-mail-status.uv-mail-delivered,.uv-ticket-section .uv-mail-status.uv-mail-click {
            background-position: -38px 0;
        }
        .uv-ticket-section .uv-mail-status.uv-mail-spam,.uv-ticket-section .uv-mail-status.uv-mail-deferred,.uv-ticket-section .uv-mail-spamreport {
            background-position: -55px 0;
        }
        .uv-ticket-section .uv-mail-status.uv-mail-bounce,.uv-ticket-section .uv-mail-status.uv-mail-dropped {
            background-position: -73px 0;
        }
        @media only screen and (max-width: 1480px) {
            .uv-inner-section .uv-view .uv-ticket-action-bar-fixed.uv-ticket-action-bar .uv-ticket-action-bar-rt{
                width: auto;
            }
        }
        @media only screen and (max-width: 1300px) {
            .uv-header-fix{
                margin: 0px 10px 0px 10px;
            }
        }

        @media only screen and (max-width: 900px) {
            .uv-ticket-action-bar-fixed{
                position: relative;
            }
            .uv-ticket-action-bar-fixed + .uv-ticket-viewer-bar{
                margin-top: 0px;
            }
            .uv-ticket-action-bar-fixed .uv-ticket-action-bar-rt{
                position: relative;
            }
            .uv-inner-section .uv-view .uv-ticket-action-bar.uv-ticket-action-bar-fixed .uv-ticket-action-bar-lt{
                width: 70%;
            }
            .uv-inner-section .uv-view .uv-ticket-action-bar.uv-ticket-action-bar-fixed .uv-ticket-action-bar-rt {
                width: 21%;
                padding-right: 33px;
            }
            .uv-header-fix{
                display: none;
            }
        }

        .uv-inner-section .uv-view .uv-ticket-scroll-region {
            margin-bottom: 0px;
        }

        .uv-inner-section .uv-view .uv-ticket-action-bar.uv-ticket-action-bar-fixed .uv-ticket-action-bar-rt {
            width: 21%;
            padding-right: 33px;
        }
        @media print {
            .uv-navbar,.uv-ticket-action-bar, .uv-sidebar, .uv-aside>.uv-aside-brick, .uv-aside-back, .uv-ticket-fixed-region, .uv-ticket-main.uv-ticket-reply, .uv-upload-actions, .uv-filter-view, .uv-dropdown-list>.uv-dropdown-container,.uv-notifications-wrapper,.uv-pop-up-overlay,.uv-loader-view, .uv-loader, .uv-navbar,.uv-ticket-count-wrapper {
                display: none !important;
            }
            .uv-ticket-scroll-region {
                overflow: visible;
                margin-bottom: 0 !important;
            }
            .uv-paper {
                padding-left: 0px !important; /* uv-view */
            }
            .uv-wrapper {
                left: 0 !important;
                margin: 0 !important;
            }
            .uv-inner-section .uv-view .uv-ticket-scroll-region  .uv-ticket-main-rt {
                width: 80%;
            }
            .uv-paper,.uv-view ,.uv-ticket-scroll-region, .uv-wrapper  {
                position: initial !important;
            }
        }

        .uv-ticket-action-bar-rt .app-glyph {
            display: inline-block;
            vertical-align: middle;
            margin-right: 10px;
            cursor: pointer;
            height: 20px;
            width: 20px;
        }

        .uv-ticket-action-bar-rt .app-glyph:last-child {
            margin-right: 0px;
        }

        blockquote {
            background: #f9f9f9;
            border-left: 4px solid #ccc;
            margin: 1.5em 10px;
            padding: 0.5em 10px;
            quotes: \"\\201C\"\"\\201D\"\"\\2018\"\"\\2019\";
        }

        blockquote:before {
            color: #ccc;
            content: open-quote;
            font-size: 3em;
            line-height: 0.1em;
            margin-right: 0.05em;
            vertical-align: -0.4em;
        }

        blockquote p {
            display: inline;
        }

        .uv-dropdown-list ul li {
            padding : 8px 0px !important;
        }

        ::-webkit-scrollbar {
            width: 6px;
        }
        ::-webkit-scrollbar-track {
            -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
        }
        ::-webkit-scrollbar-thumb {
            -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
        }

        .uv-aside-select.search .uv-dropdown-list.uv-bottom-left, .uv-aside-select .uv-dropdown-list.uv-bottom-right {
            top: 25px;
            width: 100%;
        }

        .uv-aside-select.search .uv-dropdown-list ul{
            padding: 0px 10px;
        }

        .uv-aside-select.search .uv-dropdown-container {
            padding: 8px 10px 4px;
            overflow-y: auto;
            max-height: 280px;
            border-bottom: solid 1px #D3D3D3;
        }

        .uv-aside-select.search .uv-dropdown-list ul.uv-agents-list li {
            border-bottom: solid 1px #D3D3D3;
            border-top:0px;
        }

        .uv-search-inline{
            width: 100%;
        }

        .uv-dropdown-list ul.uv-search-list li:first-child {
            border-top: none;
        }

        .uv-search-sm input.uv-search-field { 
           border: solid 1px #B1B1AE;
           border-radius: 3px;
           color: #333333;
           font-size: 15px;
           box-sizing: border-box;
           padding: 7px 10px 9px 33px;
           width: 100%;
        }
        
    </style>
";
        yield from [];
    }

    // line 368
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_pageContent(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 369
        yield "    <div class=\"uv-inner-section\">
        ";
        // line 371
        yield "        <div class=\"uv-aside\" ";
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 371), "cookies", [], "any", false, false, false, 371) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 371), "cookies", [], "any", false, false, false, 371), "get", ["uv-asideView"], "method", false, false, false, 371))) {
            yield "style=\"display: none;\"";
        }
        yield " >
            <div class=\"uv-main-info-block\">
                <div class=\"uv-aside-head\">
                    <div class=\"uv-aside-title\">
                        <h6>";
        // line 375
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ticket"), "html", null, true);
        yield " #";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 375), "html", null, true);
        yield " ";
        if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["workflowData"] ?? null)) > 0)) {
            // line 376
            yield "                            <i class=\"fa fa-eye\" aria-hidden=\"true\"
                               style=\"margin-left: 10px; cursor: pointer;\"
                               onclick=\"showPopup()\"></i>
                            ";
        }
        // line 380
        yield "                        </h6>
                        ";
        // line 382
        yield "                    </div>
                    <div class=\"uv-aside-back\">
                        <span onclick=\"history.length > 1 ? history.go(-1) : window.location = '";
        // line 384
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket_collection");
        yield "';\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back"), "html", null, true);
        yield "</span>
                    </div>
                </div>

                ";
        // line 389
        yield "                <div class=\"uv-aside-brick\">
                    ";
        // line 391
        yield "                    <div class=\"uv-aside-customer-block\">
                        <h3>";
        // line 392
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Customer Information"), "html", null, true);
        yield "</h3>
                        <div class=\"uv-aside-avatar\">
                            ";
        // line 394
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "thumbnail", [], "any", false, false, false, 394)) {
            // line 395
            yield "                                <img src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 395), "scheme", [], "any", false, false, false, 395) . "://") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 395), "httpHost", [], "any", false, false, false, 395)) . $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("")), "html", null, true);
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "thumbnail", [], "any", false, false, false, 395), "html", null, true);
            yield "\">
                            ";
        } else {
            // line 397
            yield "                                <img src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["default_customer_image_path"] ?? null)), "html", null, true);
            yield "\">
                            ";
        }
        // line 399
        yield "                        </div>

                        <div class=\"uv-aside-customer-info\">
                            <span>";
        // line 402
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "name", [], "any", false, false, false, 402), "html", null, true);
        yield "</span>
                            <span>";
        // line 403
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "email", [], "any", false, false, false, 403), "html", null, true);
        yield "</span>
                            ";
        // line 404
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "contactNumber", [], "any", false, false, false, 404)) {
            // line 405
            yield "                                <span>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "contactNumber", [], "any", false, false, false, 405), "html", null, true);
            yield "</span>
                            ";
        }
        // line 407
        yield "
                            ";
        // line 408
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_MANAGE_CUSTOMER"], "method", false, false, false, 408)) {
            // line 409
            yield "                                <span class=\"uv-customize\" data-toggle=\"tooltip\" title=\"Edit Customer Information\"></span>
                            ";
        }
        // line 411
        yield "                        </div>
                    </div>

                    ";
        // line 415
        yield "                    <div class=\"uv-aside-ticket-block\">
                        <div class=\"uv-aside-ticket-brick\">
                            <h3>";
        // line 417
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Total Replies"), "html", null, true);
        yield "</h3>
                            <span class=\"uv-icon-replies\"></span> <span>";
        // line 418
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["totalReplies"] ?? null), "html", null, true);
        yield "</span>
                        </div>

                        <div class=\"uv-aside-ticket-brick\">
                            <h3>";
        // line 422
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("TimeStamp"), "html", null, true);
        yield "</h3>
                            <span class=\"uv-icon-timestamp\"></span> <span>";
        // line 423
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket_service"] ?? null), "timeZoneConverter", [CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "createdAt", [], "any", false, false, false, 423)], "method", false, false, false, 423), "html", null, true);
        yield "</span>
                        </div>

                        <div class=\"uv-aside-ticket-brick\">
                            <h3>";
        // line 427
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Channel"), "html", null, true);
        yield "</h3>
                            ";
        // line 428
        if ((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "source", [], "any", false, false, false, 428) == "email")) {
            // line 429
            yield "                                <span class=\"uv-icon-channel uv-channel-email\"></span> <span>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email"), "html", null, true);
            yield "</span>
                            ";
        } elseif ((CoreExtension::getAttribute($this->env, $this->source,         // line 430
($context["ticket"] ?? null), "source", [], "any", false, false, false, 430) == "formbuilder")) {
            // line 431
            yield "                                <span class=\"uv-icon-channel uv-channel-form\"></span> <span>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Formbuilder"), "html", null, true);
            yield "</span>
                            ";
        } else {
            // line 433
            yield "                            <span class=\"uv-icon-channel uv-channel-web\"></span> <span>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Website"), "html", null, true);
            yield "</span>
                            ";
        }
        // line 435
        yield "                        </div>
                    </div>
                </div>
            </div>

            ";
        // line 441
        yield "            ";
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_MANAGE_CUSTOMER"], "method", false, false, false, 441)) {
            // line 442
            yield "                <div class=\"uv-main-info-update-block uv-no-error-success-icon\" style=\"display: none\">
                    <div class=\"uv-aside-head\">
                        <div class=\"uv-aside-title\"><h6>";
            // line 444
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit Customer"), "html", null, true);
            yield "</h6></div>
                        <div class=\"uv-aside-back\"><span>";
            // line 445
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back"), "html", null, true);
            yield "</span></div>
                    </div>

                    <div class=\"uv-aside-brick\">
                        <form method=\"post\">
                            <input class=\"uv-field\" name=\"id\" type=\"hidden\" value=\"";
            // line 450
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "id", [], "any", false, false, false, 450), "html", null, true);
            yield "\">

                            <div class=\"uv-element-block\">
                                <label class=\"uv-field-label\">";
            // line 453
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Name"), "html", null, true);
            yield "</label>
                                <div class=\"uv-field-block\">
                                    <input class=\"uv-field\" name=\"name\" type=\"text\" value=\"";
            // line 455
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "name", [], "any", false, false, false, 455), "html", null, true);
            yield "\">
                                </div>
                            </div>

                            <div class=\"uv-element-block\">
                                <label class=\"uv-field-label\">";
            // line 460
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email"), "html", null, true);
            yield "</label>
                                <div class=\"uv-field-block\">
                                    <input class=\"uv-field\" name=\"email\" type=\"text\" value=\"";
            // line 462
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "email", [], "any", false, false, false, 462), "html", null, true);
            yield "\">
                                </div>
                            </div>

                            <div class=\"uv-element-block\">
                                <label class=\"uv-field-label\">";
            // line 467
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Contact Number"), "html", null, true);
            yield "</label>
                                <div class=\"uv-field-block\">
                                    <input class=\"uv-field\" name=\"contactNumber\" type=\"text\" value=\"";
            // line 469
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "contactNumber", [], "any", false, false, false, 469), "html", null, true);
            yield "\">
                                </div>
                            </div>

                            <div class=\"uv-action-buttons\">
                                <a class=\"uv-btn update-btn\" href=\"#\">";
            // line 474
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Update"), "html", null, true);
            yield "</a>
                                <a class=\"uv-btn cancel-btn\" href=\"#\">";
            // line 475
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cancel"), "html", null, true);
            yield "</a>
                            </div>

                            <input type=\"hidden\" name=\"_token\" value=\"";
            // line 478
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["csrf_token_generator"] ?? null), "refreshToken", [""], "method", false, false, false, 478), "html", null, true);
            yield "\"/>
                        </form>
                    </div>
                </div>
            ";
        }
        // line 483
        yield "
            ";
        // line 485
        yield "            <div class=\"uv-aside-brick\">
                <div class=\"uv-aside-ticket-actions\">
                    ";
        // line 488
        yield "                    <div class=\"uv-aside-select search\">
                        <label class=\"uv-aside-select-label\">";
        // line 489
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Agent"), "html", null, true);
        yield "</label>
                        <div>
                            ";
        // line 491
        $context["agentName"] = ((($context["ticketAgent"] ?? null)) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["ticketAgent"] ?? null), "name", [], "any", false, false, false, 491)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned")));
        // line 492
        yield "                            ";
        if (((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "isTrashed", [], "any", false, false, false, 492) == false) && CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_ASSIGN_TICKET"], "method", false, false, false, 492))) {
            // line 493
            yield "                                <span class=\"uv-aside-select-value uv-dropdown-other uv-aside-drop-icon\" data-id=\"";
            ((($context["ticketAgent"] ?? null)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticketAgent"] ?? null), "id", [], "any", false, false, false, 493), "html", null, true)) : (yield ""));
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["agentName"] ?? null), "html", null, true);
            yield "</span>
                                <div class=\"uv-dropdown-list uv-bottom-left\">
                                    <div class=\"uv-dropdown-container\">
                                        <label>";
            // line 496
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Agent"), "html", null, true);
            yield "</label>
                                        <div class=\"uv-search-sm\">
                                            <input type=\"text\" class=\"uv-search-field uv-search-inline\" placeholder=\"";
            // line 498
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Search"), "html", null, true);
            yield "\">
                                        </div>
                                    </div>

                                    <ul class=\"uv-agents-list agent\" data-action=\"agent\">
                                        ";
            // line 503
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "getAgentPartialDataCollection", [], "method", false, false, false, 503));
            foreach ($context['_seq'] as $context["_key"] => $context["agent"]) {
                // line 504
                yield "                                            <li data-index=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "id", [], "any", false, false, false, 504), "html", null, true);
                yield "\">
                                                <img src=\"";
                // line 505
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "smallThumbnail", [], "any", false, false, false, 505) != null)) ? (((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 505), "scheme", [], "any", false, false, false, 505) . "://") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 505), "httpHost", [], "any", false, false, false, 505)) . $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("")) . CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "smallThumbnail", [], "any", false, false, false, 505))) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["default_agent_image_path"] ?? null)))), "html", null, true);
                yield "\"/> ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "name", [], "any", false, false, false, 505), "html", null, true);
                yield "
                                            </li>
                                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['agent'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 508
            yield "                                    </ul>
                                </div>
                            ";
        } else {
            // line 511
            yield "                                <span class=\"uv-aside-select-value\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["agentName"] ?? null), "html", null, true);
            yield "</span>
                            ";
        }
        // line 513
        yield "                        </div>
                    </div>

                    ";
        // line 517
        yield "                    <div class=\"uv-aside-select\">
                        <label class=\"uv-aside-select-label\">";
        // line 518
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Priority"), "html", null, true);
        yield "</label>
                        <div>
                            <span class=\"uv-list-ticket-priority\" style=\"background: ";
        // line 520
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "priority", [], "any", false, false, false, 520), "colorCode", [], "any", false, false, false, 520), "html", null, true);
        yield "\"></span>
                            ";
        // line 521
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_UPDATE_TICKET_PRIORITY"], "method", false, false, false, 521)) {
            // line 522
            yield "                                <span class=\"uv-aside-select-value uv-dropdown-other uv-aside-drop-icon\" data-id=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "priority", [], "any", false, false, false, 522), "id", [], "any", false, false, false, 522), "html", null, true);
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "priority", [], "any", false, false, false, 522), "description", [], "any", false, false, false, 522)), "html", null, true);
            yield "</span>
                                <div class=\"uv-dropdown-list uv-bottom-left\">
                                    <div class=\"uv-dropdown-container\">
                                        <label>";
            // line 525
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Priority"), "html", null, true);
            yield "</label>
                                        <ul class=\"priority\" data-action=\"priority\">
                                            ";
            // line 527
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["ticketPriorityCollection"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["priority"]) {
                // line 528
                yield "                                                <li data-index=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["priority"], "id", [], "any", false, false, false, 528), "html", null, true);
                yield "\" data-color=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["priority"], "colorCode", [], "any", false, false, false, 528), "html", null, true);
                yield "\"><a href=\"#\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["priority"], "description", [], "any", false, false, false, 528)), "html", null, true);
                yield "</a></li>
                                            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['priority'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 530
            yield "                                        </ul>
                                    </div>
                                </div>
                            ";
        } else {
            // line 534
            yield "                                <span class=\"uv-aside-select-value\">
                                    ";
            // line 535
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "priority", [], "any", false, false, false, 535), "description", [], "any", false, false, false, 535)), "html", null, true);
            yield "
                                </span>
                            ";
        }
        // line 538
        yield "                        </div>
                    </div>

                    ";
        // line 542
        yield "                    <div class=\"uv-aside-select\">
                        <label class=\"uv-aside-select-label\">";
        // line 543
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Status"), "html", null, true);
        yield "</label>
                        <div>
                            ";
        // line 545
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_UPDATE_TICKET_STATUS"], "method", false, false, false, 545)) {
            // line 546
            yield "                                <span class=\"uv-aside-select-value uv-dropdown-other uv-aside-drop-icon\" data-id=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "status", [], "any", false, false, false, 546), "id", [], "any", false, false, false, 546), "html", null, true);
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "status", [], "any", false, false, false, 546), "description", [], "any", false, false, false, 546)), "html", null, true);
            yield "</span>
                                <div class=\"uv-dropdown-list uv-bottom-left\">
                                    <div class=\"uv-dropdown-container\">
                                        <label>";
            // line 549
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Status"), "html", null, true);
            yield "</label>
                                        <ul class=\"status\" data-action=\"status\">
                                            ";
            // line 551
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["ticketStatusCollection"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["status"]) {
                // line 552
                yield "                                                <li data-index=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["status"], "id", [], "any", false, false, false, 552), "html", null, true);
                yield "\"><a href=\"#\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["status"], "description", [], "any", false, false, false, 552)), "html", null, true);
                yield "</a></li>
                                            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['status'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 554
            yield "                                        </ul>
                                    </div>
                                </div>
                            ";
        } else {
            // line 558
            yield "                                <span class=\"uv-aside-select-value\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "status", [], "any", false, false, false, 558), "description", [], "any", false, false, false, 558)), "html", null, true);
            yield "</span>
                            ";
        }
        // line 560
        yield "                        </div>
                    </div>
                    <input type=\"hidden\"  id=\"typeval\"  value=";
        // line 562
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 562), "id", [], "any", false, false, false, 562), "html", null, true);
        yield "/> 
                    ";
        // line 564
        yield "                    <div class=\"uv-aside-select search\">
                        <label class=\"uv-aside-select-label\">";
        // line 565
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Type"), "html", null, true);
        yield "</label>
                        <div>
                            ";
        // line 567
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_UPDATE_TICKET_TYPE"], "method", false, false, false, 567)) {
            // line 568
            yield "                                <span class=\"uv-aside-select-value uv-dropdown-other uv-aside-drop-icon\" data-id=\"";
            ((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 568)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 568), "id", [], "any", false, false, false, 568), "html", null, true)) : (yield "-- --"));
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 568)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 568), "code", [], "any", false, false, false, 568)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
            yield "</span>
                            <div class=\"uv-dropdown-list uv-bottom-left\">
                                    <div class=\"uv-dropdown-container\">
                                        <label>";
            // line 571
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Type"), "html", null, true);
            yield "</label>
                                        <div class=\"uv-search-sm\">
                                            <input type=\"text\" class=\"uv-search-field uv-search-inline\" placeholder=\"";
            // line 573
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Search"), "html", null, true);
            yield "\">
                                        </div>
                                    </div>

                                    <ul class=\"uv-search-list type\" data-action=\"type\">
                                        ";
            // line 578
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket_service"] ?? null), "getTypes", [], "method", false, false, false, 578));
            foreach ($context['_seq'] as $context["_key"] => $context["type"]) {
                // line 579
                yield "                                            <li data-index=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["type"], "id", [], "any", false, false, false, 579), "html", null, true);
                yield "\"><a href=\"#\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["type"], "name", [], "any", false, false, false, 579), "html", null, true);
                yield "</a></li>
                                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['type'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 581
            yield "                                    </ul>
                                </div>
                            ";
        } else {
            // line 584
            yield "                                <span class=\"uv-aside-select-value\">
                                    ";
            // line 585
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 585)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 585), "code", [], "any", false, false, false, 585)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
            yield "
                                </span>
                            ";
        }
        // line 588
        yield "                        </div>
                    </div>

                    ";
        // line 592
        yield "                    <div class=\"uv-aside-select search\">
                        <label class=\"uv-aside-select-label\">";
        // line 593
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Group"), "html", null, true);
        yield "</label>
                        <div>
                            ";
        // line 595
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_ASSIGN_TICKET_GROUP"], "method", false, false, false, 595)) {
            // line 596
            yield "                                <span class=\"uv-aside-select-value uv-dropdown-other uv-aside-drop-icon\" data-id=\"";
            ((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportGroup", [], "any", false, false, false, 596)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportGroup", [], "any", false, false, false, 596), "id", [], "any", false, false, false, 596), "html", null, true)) : (yield "-- --"));
            yield "\">
                                    ";
            // line 597
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportGroup", [], "any", false, false, false, 597)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportGroup", [], "any", false, false, false, 597), "name", [], "any", false, false, false, 597)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
            yield "
                                </span>
                                <div class=\"uv-dropdown-list uv-bottom-left\">
                                    <div class=\"uv-dropdown-container\">
                                        <label>";
            // line 601
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Group"), "html", null, true);
            yield "</label>
                                        <div class=\"uv-search-sm\">
                                            <input type=\"text\" class=\"uv-search-field uv-search-inline\" placeholder=\"";
            // line 603
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Search"), "html", null, true);
            yield "\">
                                        </div>
                                    </div>
                                    <ul class=\"uv-search-list group\" data-action=\"group\">
                                        <li data-index=\"\"><a href=\"#\">";
            // line 607
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"), "html", null, true);
            yield "</a></li>

                                        ";
            // line 609
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["supportGroupCollection"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["group"]) {
                // line 610
                yield "                                            <li data-index=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["group"], "id", [], "any", false, false, false, 610), "html", null, true);
                yield "\"><a href=\"#\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["group"], "name", [], "any", false, false, false, 610), "html", null, true);
                yield "</a></li>
                                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['group'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 612
            yield "                                    </ul>
                                </div>
                            ";
        } else {
            // line 615
            yield "                                <span class=\"uv-aside-select-value\">
                                    ";
            // line 616
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportGroup", [], "any", false, false, false, 616)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportGroup", [], "any", false, false, false, 616), "name", [], "any", false, false, false, 616)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
            yield "
                                </span>
                            ";
        }
        // line 619
        yield "                        </div>
                    </div>

                    ";
        // line 623
        yield "                    <div class=\"uv-aside-select search\">
                        <label class=\"uv-aside-select-label\">";
        // line 624
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Team"), "html", null, true);
        yield "</label>
                        <div>
                            ";
        // line 626
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_ASSIGN_TICKET_GROUP"], "method", false, false, false, 626)) {
            // line 627
            yield "                                <span class=\"uv-aside-select-value uv-dropdown-other uv-aside-drop-icon\" data-id=\"";
            ((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportTeam", [], "any", false, false, false, 627)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportTeam", [], "any", false, false, false, 627), "id", [], "any", false, false, false, 627), "html", null, true)) : (yield "-- --"));
            yield "\">
                                    ";
            // line 628
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportTeam", [], "any", false, false, false, 628)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportTeam", [], "any", false, false, false, 628), "name", [], "any", false, false, false, 628)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
            yield "
                                </span>
                                <div class=\"uv-dropdown-list uv-bottom-left\">
                                    <div class=\"uv-dropdown-container\">
                                        <label>";
            // line 632
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Team"), "html", null, true);
            yield "</label>
                                        <div class=\"uv-search-sm\">
                                            <input type=\"text\" class=\"uv-search-field uv-search-inline\" placeholder=\"";
            // line 634
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Search"), "html", null, true);
            yield "\">
                                        </div>
                                    </div>
                                    <ul class=\"uv-search-list team\" data-action=\"team\">
                                        <li data-index=\"\"><a href=\"#\">";
            // line 638
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"), "html", null, true);
            yield "</a></li>
                                        ";
            // line 639
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["supportTeamCollection"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["team"]) {
                // line 640
                yield "                                            <li data-index=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["team"], "id", [], "any", false, false, false, 640), "html", null, true);
                yield "\"><a href=\"#\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["team"], "name", [], "any", false, false, false, 640), "html", null, true);
                yield "</a></li>
                                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['team'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 642
            yield "                                    </ul>
                                </div>
                            ";
        } else {
            // line 645
            yield "                                <span class=\"uv-aside-select-value\">
                                    ";
            // line 646
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportTeam", [], "any", false, false, false, 646)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportTeam", [], "any", false, false, false, 646), "name", [], "any", false, false, false, 646)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
            yield "
                                </span>
                            ";
        }
        // line 649
        yield "                        </div>
                    </div>
                </div>
            </div>

            ";
        // line 655
        yield "            <div class=\"uv-aside-brick\">
                <div class=\"uv-aside-ticket-labels label-list-block\">
                    <div class=\"uv-element-block\">
                        <label class=\"uv-field-label\">";
        // line 658
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Labels"), "html", null, true);
        yield "</label>

                        <div class=\"uv-field-block\">
                            <input class=\"uv-field uv-dropdown-other\" type=\"text\" data-type=\"label\">
                            <div class=\"uv-dropdown-list uv-top-left\">
                                <div class=\"uv-dropdown-container\">
                                    <label>";
        // line 664
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Filter With"), "html", null, true);
        yield "</label>
                                    <ul class=\"\">
                                        <span class=\"uv-filter-info\">";
        // line 666
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Type atleast 2 letters"), "html", null, true);
        yield "</span>
                                        <span class=\"uv-no-results\" style=\"display: none;\">";
        // line 667
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No result found"), "html", null, true);
        yield "</span>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class=\"label-list\"></div>
                </div>
            </div>

            ";
        // line 679
        yield "            <div class=\"uv-aside-brick collaborator-list-block\">
                <div class=\"uv-aside-ticket-labels\">
                    <div class=\"uv-element-block\">
                        <label class=\"uv-field-label\">";
        // line 682
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Collaborators"), "html", null, true);
        yield "</label>

                        ";
        // line 684
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_ADD_COLLABORATOR_TO_TICKET"], "method", false, false, false, 684)) {
            // line 685
            yield "                            <div class=\"uv-field-block\">
                                <input class=\"uv-field\" type=\"text\" name=\"email\" type=\"text\" value=\"\" placeholder=\"";
            // line 686
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Type email to add"), "html", null, true);
            yield "\">
                            </div>
                        ";
        }
        // line 689
        yield "                    </div>
                    <div class=\"collaborator-list\" style=\"margin-top: 10px\"></div>
                </div>
            </div>

            ";
        // line 695
        yield "            <div class=\"uv-aside-brick tag-list-block\">
                <div class=\"uv-aside-ticket-labels\">
                    <div class=\"uv-element-block\">
                        <label class=\"uv-field-label\">";
        // line 698
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tags"), "html", null, true);
        yield "</label>

                        ";
        // line 700
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_ADD_TAG"], "method", false, false, false, 700)) {
            // line 701
            yield "                            <div class=\"uv-field-block\">
                                <input class=\"uv-field uv-dropdown-other\" name=\"tag-name\" type=\"text\" data-type=\"tag\" value=\"\">
                                <div class=\"uv-dropdown-list uv-bottom-left\">
                                    <div class=\"uv-dropdown-container\">
                                        <label>";
            // line 705
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Filter With"), "html", null, true);
            yield "</label>
                                        <ul class=\"\">
                                            <span class=\"uv-filter-info\">";
            // line 707
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Type atleast 2 letters"), "html", null, true);
            yield "</span>
                                            <span class=\"uv-no-results\" style=\"display: none;\">";
            // line 708
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No result found"), "html", null, true);
            yield "</span>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        ";
        }
        // line 714
        yield "                    </div>

                    <div class=\"tag-list\" style=\"margin-top: 10px\"></div>
                </div>
            </div>
        
        ";
        // line 721
        yield "        <div class=\"uv-aside-brick due-date-block\">
        <div class=\"uv-aside-ticket-labels\">
            <div class=\"uv-element-block\">
                <label class=\"uv-field-label\">";
        // line 724
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Due Date"), "html", null, true);
        yield "</label>

                    <div class=\"uv-field-block\">
                        <input class=\"uv-field form-control create-ticket uv-date-picker calendar uv-header-date\"
                               type=\"text\"
                               name=\"due-date\"
                               id=\"forDueDate\"
                               placeholder=\"";
        // line 731
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Select a date"), "html", null, true);
        yield "\"
                               value=\"";
        // line 732
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "dueDate", [], "any", false, false, false, 732), "Y-m-d"), "html", null, true);
        yield "\"
                               data-id=\"";
        // line 733
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "dueDate", [], "any", false, false, false, 733), "U"), "html", null, true);
        yield "\">
                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                    </div>

            </div>
        
            <div class=\"due-date-list\" style=\"margin-top: 10px\"></div>
        </div>
        <div class=\"uv-element-block\">
    <label class=\"uv-field-label\">";
        // line 742
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Effort Spent"), "html", null, true);
        yield "</label>
    <div class=\"uv-field-block\">
        <input type=\"text\" class=\"uv-field\" name=\"effort_spent\" id=\"effort-spent\" 
               value=\"";
        // line 745
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("timeSpent", $context)) ? (Twig\Extension\CoreExtension::default(($context["timeSpent"] ?? null), "")) : ("")), "html", null, true);
        yield "\">
    </div>
</div>
        </div>
        </div>

        <div class=\"uv-view ";
        // line 751
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 751), "cookies", [], "any", false, false, false, 751) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 751), "cookies", [], "any", false, false, false, 751), "get", ["uv-asideView"], "method", false, false, false, 751))) {
            yield "uv-aside-view";
        }
        yield "\" >
            <div class=\"uv-ticket-scroll-region ";
        // line 752
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 752), "cookies", [], "any", false, false, false, 752) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 752), "cookies", [], "any", false, false, false, 752), "get", ["uv-asideView"], "method", false, false, false, 752))) {
            yield "uv-aside-view-tv";
        }
        yield "\" >
                ";
        // line 754
        yield "                <div class=\"uv-ticket-action-bar\">
                    <div class=\"uv-ticket-action-bar-lt\">
                        <div class=\"uv-header-fix\"><a href=\"#\" class=\"uv-icon-pin\"></a></div>

                        ";
        // line 759
        yield "                        <div class=\"uv-tabs\">
                            <ul>
                                ";
        // line 762
        yield "                                <li for=\"default\" data-type=\"all\" class=\"uv-tab-active\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All Threads"), "html", null, true);
        yield "</li>
                                <li for=\"default\" data-type=\"reply\">";
        // line 763
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Replies"), "html", null, true);
        yield "</li>
                                <li for=\"default\" data-type=\"forward\">";
        // line 764
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forwards"), "html", null, true);
        yield "</li>
                                <li for=\"default\" data-type=\"note\">";
        // line 765
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Notes"), "html", null, true);
        yield "</li>
                                <li for=\"default\" data-type=\"pinned\">";
        // line 766
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pinned"), "html", null, true);
        yield "</li>

                                ";
        // line 769
        yield "                                ";
        if ((CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_EDIT_TICKET"], "method", false, false, false, 769) || CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_DELETE_TICKET"], "method", false, false, false, 769))) {
            // line 770
            yield "                                    <li class=\"uv-tab-ellipsis uv-ticket-action\">
                                        <span class=\"uv-icon-ellipsis uv-dropdown-other\"></span>

                                        <div class=\"uv-dropdown-list uv-bottom-right\">
                                            <div class=\"uv-dropdown-container\">
                                                <ul class=\"priority\" data-action=\"priority\">
                                                    ";
            // line 776
            if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_EDIT_TICKET"], "method", false, false, false, 776)) {
                // line 777
                yield "                                                        <li data-action=\"edit\" class=\"uv-open-popup\" data-target=\"edit-ticket-modal\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit Ticket"), "html", null, true);
                yield "</li>
                                                    ";
            }
            // line 779
            yield "
                                                    <li data-action=\"print\">";
            // line 780
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Print Ticket"), "html", null, true);
            yield "</li>

                                                    ";
            // line 782
            if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_UPDATE_TICKET_STATUS"], "method", false, false, false, 782)) {
                // line 783
                yield "                                                        <li data-action=\"spam\" data-index=\"6\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mark as Spam"), "html", null, true);
                yield "</li>
                                                        <li data-action=\"closed\" data-index=\"5\">";
                // line 784
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mark as Closed"), "html", null, true);
                yield "</li>
                                                    ";
            }
            // line 786
            yield "
                                                    ";
            // line 787
            if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_DELETE_TICKET"], "method", false, false, false, 787)) {
                // line 788
                yield "                                                        <li data-action=\"delete\" class=\"uv-text-danger\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Delete Ticket"), "html", null, true);
                yield "</li>
                                                    ";
            }
            // line 790
            yield "                                                </ul>
                                            </div>
                                        </div>
                                    </li>
                                ";
        }
        // line 795
        yield "                            </ul>
                        </div>
                    </div>

                    <div class=\"uv-ticket-action-bar-rt\">
                        ";
        // line 800
        yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["uvdesk_extensibles"] ?? null), "getRegisteredComponent", ["Webkul\\UVDesk\\CoreFrameworkBundle\\Tickets\\WidgetCollection"], "method", false, false, false, 800), "embedSideFilterIcons", [], "method", false, false, false, 800);
        yield "
                    </div>
                </div>

                ";
        // line 805
        yield "                <div class=\"uv-ticket-viewer-bar\">
                    <div class=\"uv-ticket-viewer-list\">
                        <div class=\"uv-ticket-viewer-single uv-first\" title=\"Currently active agents on ticket...\">
                            <span class=\"uv-icon-eye-light\"></span>
                        </div>
                    </div>
                </div>

                ";
        // line 814
        yield "                <div class=\"uv-ticket-head\">
                    <div class=\"uv-ticket-head-lt\">
                        <span class=\"uv-star-large ";
        // line 816
        yield ((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "isStarred", [], "any", false, false, false, 816)) ? ("uv-star-active") : (""));
        yield " uv-star uv-margin-right-5\"></span>
                    </div>

                    <div class=\"uv-ticket-head-rt\">
                        <h1>";
        // line 820
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "subject", [], "any", false, false, false, 820), "html", null, true);
        yield "</h1>
                    </div>
                </div>

                <div class=\"uv-ticket-strip\">
                    <span>
                        <span class=\"uv-ticket-strip-label\">";
        // line 826
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Created"), "html", null, true);
        yield " - </span>
                        <span class=\"timeago uv-margin-0\" data-timestamp=\"";
        // line 827
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "createdAt", [], "any", false, false, false, 827), "getTimestamp", [], "method", false, false, false, 827), "html", null, true);
        yield "\" title=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "createdAt", [], "any", false, false, false, 827), "format", ["d-m-Y h:ia"], "method", false, false, false, 827), "html", null, true);
        yield "\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket_service"] ?? null), "timeZoneConverter", [CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "createdAt", [], "any", false, false, false, 827)], "method", false, false, false, 827), "html", null, true);
        yield "</span>
                    </span>

                    <span>
                        <span class=\"uv-ticket-strip-label\">";
        // line 831
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("By"), "html", null, true);
        yield " - </span> ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "user", [], "any", false, false, false, 831), "name", [], "any", false, false, false, 831), "html", null, true);
        yield "
                        ";
        // line 832
        if (($context["totalCustomerTickets"] ?? null)) {
            // line 833
            yield "                            (<a id=\"more-tickets-btn\" href=\"";
            yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket_collection");
            yield "#customer/";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "id", [], "any", false, false, false, 833), "html", null, true);
            yield "\" target=\"_blank\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("count more tickets", ["count" => ($context["totalCustomerTickets"] ?? null)]), "html", null, true);
            yield "</a>)
                        ";
        }
        // line 835
        yield "                    </span>

                    <span class=\"agent-info\" style=\"";
        // line 837
        yield ((($context["ticketAgent"] ?? null)) ? ("") : ("display: none"));
        yield "\">
                        <span class=\"uv-ticket-strip-label\">";
        // line 838
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Agent"), "html", null, true);
        yield " - </span>
                        <span class=\"name\">";
        // line 839
        ((($context["ticketAgent"] ?? null)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticketAgent"] ?? null), "name", [], "any", false, false, false, 839), "html", null, true)) : (yield ""));
        yield "</span>
                    </span>
                </div>

                ";
        // line 844
        yield "                <div class=\"uv-tab-view uv-tab-view-active\" id=\"default\">
                    <div class=\"uv-ticket-section\">
                        <div class=\"uv-ticket-main create\">
                            <div class=\"uv-ticket-strip\">
                                <span>
                                    <span class=\"timeago uv-margin-0\" data-timestamp=\"";
        // line 849
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "createdAt", [], "any", false, false, false, 849), "getTimestamp", [], "method", false, false, false, 849), "html", null, true);
        yield "\" title=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "createdAt", [], "any", false, false, false, 849), "format", ["d-m-Y h:ia"], "method", false, false, false, 849), "html", null, true);
        yield "\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket_service"] ?? null), "timeZoneConverter", [CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "createdAt", [], "any", false, false, false, 849)], "method", false, false, false, 849), "html", null, true);
        yield "</span>
                                    - ";
        // line 850
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "user", [], "any", false, false, false, 850), "name", [], "any", false, false, false, 850), "html", null, true);
        yield " <span class=\"uv-ticket-strip-label\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("created Ticket"), "html", null, true);
        yield "</span>
                                </span>
                                ";
        // line 852
        if ((CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "cc", [], "any", false, false, false, 852) != "")) {
            // line 853
            yield "\t\t\t\t\t\t\t\t\t<div class=\"uv-ticket-strip\">
\t\t\t\t\t\t\t\t\t\t<span><span class=\"uv-ticket-strip-label\">";
            // line 854
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("CC"), "html", null, true);
            yield " -</span> ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "cc", [], "any", false, false, false, 854), "html", null, true);
            yield "</span>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
        }
        // line 856
        yield "      
                            </div>

                            <div class=\"uv-ticket-main-lt\">
                               <img src=\"";
        // line 860
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "user", [], "any", false, false, false, 860), "thumbnail", [], "any", false, false, false, 860)) ? (((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 860), "scheme", [], "any", false, false, false, 860) . "://") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 860), "httpHost", [], "any", false, false, false, 860)) . $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("")) . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "user", [], "any", false, false, false, 860), "thumbnail", [], "any", false, false, false, 860))) : ((((CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "createdBy", [], "any", false, false, false, 860) == "customer")) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["default_customer_image_path"] ?? null))) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["default_agent_image_path"] ?? null)))))), "html", null, true);
        yield "\">
                            </div>

                            <div class=\"uv-ticket-main-rt\">
                                ";
        // line 864
        if ((CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "createdBy", [], "any", false, false, false, 864) == "customer")) {
            // line 865
            yield "                                    <a href=\"";
            yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_manage_customer_account");
            yield "/";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "user", [], "any", false, false, false, 865), "id", [], "any", false, false, false, 865), "html", null, true);
            yield "\" class=\"uv-ticket-member-name\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "user", [], "any", false, false, false, 865), "name", [], "any", false, false, false, 865), "html", null, true);
            yield "</a>
                                ";
        } else {
            // line 867
            yield "                                    ";
            if (CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "user", [], "any", false, false, false, 867)) {
                // line 868
                yield "                                        <a href=\"";
                yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_account");
                yield "/";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "user", [], "any", false, false, false, 868), "id", [], "any", false, false, false, 868), "html", null, true);
                yield "\" class=\"uv-ticket-member-name\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "user", [], "any", false, false, false, 868), "name", [], "any", false, false, false, 868), "html", null, true);
                yield "</a>
                                    ";
            } else {
                // line 870
                yield "                                        <a class=\"uv-ticket-member-name\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "user", [], "any", false, false, false, 870), "name", [], "any", false, false, false, 870), "html", null, true);
                yield "</a>
                                    ";
            }
            // line 872
            yield "                                ";
        }
        // line 873
        yield "
                                ";
        // line 875
        yield "                                <div class=\"message\">
                                    <p>
                                        ";
        // line 877
        if ((Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "message", [], "any", false, false, false, 877)) == CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "message", [], "any", false, false, false, 877))) {
            // line 878
            yield "                                            ";
            yield Twig\Extension\CoreExtension::nl2br($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "message", [], "any", false, false, false, 878), "html", null, true));
            yield "
                                        ";
        } else {
            // line 880
            yield "                                            ";
            yield CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "message", [], "any", false, false, false, 880);
            yield "
                                        ";
        }
        // line 882
        yield "                                    </p>
                                </div>

                                ";
        // line 886
        yield "                                ";
        $context["removeMe"] = [];
        // line 887
        yield "                            ";
        if (($context["headerCustomFields"] ?? null)) {
            // line 888
            yield "                                <div class=\"custom-fields clearfix\" id=\"initialcustomfields\">
                                    ";
            // line 889
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["headerCustomFields"] ?? null));
            foreach ($context['_seq'] as $context["key"] => $context["customField"]) {
                // line 890
                yield "                                        <div class=\"uv-element-block input-group ";
                yield ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 890))) ? ("dependent") : (""));
                yield " ";
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 890));
                foreach ($context['_seq'] as $context["_key"] => $context["customFieldCustomFieldsDependency"]) {
                    yield " dependency";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldCustomFieldsDependency"], "id", [], "any", false, false, false, 890), "html", null, true);
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_key'], $context['customFieldCustomFieldsDependency'], $context['_parent']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                yield "\" style=\"position: relative; ";
                yield ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 890))) ? ("display: none;") : (""));
                yield "\">
                                            <div class=\"form-group\">
                                                <label class=\"uv-field-label\" for=\"for";
                // line 892
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 892) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 892)), "html", null, true);
                yield "\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 892), "html", null, true);
                yield "</label>
                                                ";
                // line 893
                if ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 893) == "text")) {
                    // line 894
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input type=\"";
                    // line 895
                    ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "validation", [], "array", false, true, false, 895), "fieldtype", [], "array", true, true, false, 895)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_0 = (($__internal_compile_1 = $context["customField"]) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["validation"] ?? null) : null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["fieldtype"] ?? null) : null), "html", null, true)) : (yield "text"));
                    yield "\" name=\"customFields[";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 895), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" value=\"\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 895)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 895) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 895)), "html", null, true);
                    yield "\" placeholder=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "placeholder", [], "any", false, false, false, 895), "html", null, true);
                    yield "\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 898
$context["customField"], "fieldType", [], "any", false, false, false, 898), ["date", "time", "datetime"])) {
                    // line 899
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input class=\"uv-field form-control create-ticket uv-date-picker ";
                    // line 900
                    if ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 900) == "time")) {
                        yield "time";
                    } else {
                        yield "calendar";
                    }
                    yield " uv-header-";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 900), "html", null, true);
                    yield "\" type=\"text\" name=\"customFields[";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 900), "html", null, true);
                    yield "]\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 900)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 900) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 900)), "html", null, true);
                    yield "\" value=\"\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif ((CoreExtension::getAttribute($this->env, $this->source,                 // line 903
$context["customField"], "fieldType", [], "any", false, false, false, 903) == "textarea")) {
                    // line 904
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <textarea name=\"customFields[";
                    // line 905
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 905), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 905)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 905) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 905)), "html", null, true);
                    yield "\"></textarea>
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 908
$context["customField"], "fieldType", [], "any", false, false, false, 908), ["file"])) {
                    // line 909
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input type=\"file\" name=\"customFields[";
                    // line 910
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 910), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 910)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 910) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 910)), "html", null, true);
                    yield "\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 913
$context["customField"], "fieldType", [], "any", false, false, false, 913), ["select"])) {
                    // line 914
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 914))) {
                        // line 915
                        yield "                                                        <div class=\"uv-field-block\">
                                                            <select name=\"customFields[";
                        // line 916
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 916), "html", null, true);
                        yield "]\" class=\"uv-select create-ticket\" id=\"for";
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 916) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 916)), "html", null, true);
                        yield "\" ";
                        yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 916)) ? ("required") : (""));
                        yield ">
                                                                <option value=\"\">";
                        // line 917
                        yield "Select option";
                        yield "</option>
                                                                ";
                        // line 918
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 918));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 919
                            yield "                                                                    <option value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 919), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 919), "html", null, true);
                            yield "</option>
                                                                ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 921
                        yield "                                                            </select>
                                                            <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                        </div>
                                                    ";
                    } else {
                        // line 925
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 926
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 926)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 926))]);
                        // line 927
                        yield "                                                    ";
                    }
                    // line 928
                    yield "                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 928), ["checkbox"])) {
                    // line 929
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 929))) {
                        // line 930
                        yield "                                                        ";
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 930));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 931
                            yield "                                                            <div class=\"uv-split-field\">
                                                                <label>
                                                                    <div class=\"uv-checkbox\">
                                                                        <input type=\"checkbox\" name=\"customFields[";
                            // line 934
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 934), "html", null, true);
                            yield "][]\" value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 934), "html", null, true);
                            yield "\" id=\"for";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 934) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 934)), "html", null, true);
                            yield "\" class=\"create-ticket\"/>
                                                                        <span class=\"uv-checkbox-view\"></span>
                                                                    </div>
                                                                    <span class=\"uv-radio-label\" for=\"for";
                            // line 937
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 937) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 937)), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 937), "html", null, true);
                            yield "</span>
                                                                </label>
                                                                <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                            </div>
                                                        ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 942
                        yield "                                                    ";
                    } else {
                        // line 943
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 944
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 944)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 944))]);
                        // line 945
                        yield "                                                    ";
                    }
                    // line 946
                    yield "                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 946), ["radio"])) {
                    // line 947
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 947))) {
                        // line 948
                        yield "                                                        ";
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 948));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 949
                            yield "                                                            <div class=\"uv-split-field\">
                                                                <label>
                                                                    <div class=\"uv-radio\">
                                                                        <input type=\"radio\" name=\"customFields[";
                            // line 952
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 952), "html", null, true);
                            yield "]\" value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 952), "html", null, true);
                            yield "\" id=\"for";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 952) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 952)), "html", null, true);
                            yield "\" class=\"create-ticket\"/>
                                                                        <span class=\"uv-radio-view\"></span>
                                                                    </div>
                                                                    <span class=\"uv-radio-label\" for=\"for";
                            // line 955
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 955) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 955)), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 955), "html", null, true);
                            yield "</span>
                                                                </label><span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                            </div>
                                                        ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 959
                        yield "                                                    ";
                    } else {
                        // line 960
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 961
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 961)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 961))]);
                        // line 962
                        yield "                                                    ";
                    }
                    // line 963
                    yield "                                                ";
                }
                // line 964
                yield "                                                ";
                if (CoreExtension::getAttribute($this->env, $this->source, ($context["formErrors"] ?? null), (("customFields[" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 964)) . "]"), [], "array", true, true, false, 964)) {
                    // line 965
                    yield "                                                    <div class=\"text-danger\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_2 = ($context["formErrors"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[(("customFields[" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 965)) . "]")] ?? null) : null), "html", null, true);
                    yield "</div>
                                                ";
                }
                // line 967
                yield "                                            </div>
                                        </div>
                                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['key'], $context['customField'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 970
            yield "                                </div>
                            ";
        }
        // line 972
        yield "                                ";
        // line 973
        yield "                                ";
        if (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "attachments", [], "any", false, false, false, 973))) {
            // line 974
            yield "                                    <div class=\"uv-ticket-uploads\">
                                        <h4>";
            // line 975
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Uploaded Files"), "html", null, true);
            yield "</h4>
                                        <div class=\"uv-ticket-uploads-strip\">
                                            ";
            // line 977
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "attachments", [], "any", false, false, false, 977));
            foreach ($context['_seq'] as $context["_key"] => $context["attachment"]) {
                // line 978
                yield "                                                <a href=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attachment"], "downloadURL", [], "any", false, false, false, 978), "html", null, true);
                yield "\" target = \"_blank\" class=\"uv-ticket-uploads-brick uv-no-pointer-events\" data-toggle=\"tooltip\" title=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attachment"], "name", [], "any", false, false, false, 978), "html", null, true);
                yield "\">
                                                    <img src=\"";
                // line 979
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attachment"], "iconURL", [], "any", false, false, false, 979), "html", null, true);
                yield "\"  class=\"uv-auto-pointer-events\"/>
                                                </a>
                                            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['attachment'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 982
            yield "                                        </div>

                                        ";
            // line 984
            if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "attachments", [], "any", false, false, false, 984)) > 1)) {
                // line 985
                yield "                                            <div class=\"uv-upload-actions\">
                                                <a href=\"#\" class=\"uv-open-in-files\" data-thread=\"";
                // line 986
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "id", [], "any", false, false, false, 986), "html", null, true);
                yield "\" style=\"display: none\"><span class=\"uv-icon-open-in-files\"></span>";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Open in Files"), "html", null, true);
                yield "</a>
                                                ";
                // line 987
                if (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "attachments", [], "any", false, false, false, 987))) {
                    // line 988
                    yield "                                                    <a href=\"";
                    yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket_download_attachment_zip");
                    yield "/";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "id", [], "any", false, false, false, 988), "html", null, true);
                    yield "\" target=\"_blank\"><span class=\"uv-icon-attachment\"></span> Download (as .zip)</a>
                                                ";
                }
                // line 990
                yield "                                            </div>
                                        ";
            }
            // line 992
            yield "                                    </div>
                                ";
        }
        // line 994
        yield "                            </div>
                        </div>

                        <div class=\"uv-ticket-accordion\">
                            <div class=\"uv-ticket-count-wrapper\">
                                <span class=\"uv-ticket-count-stat\">";
        // line 999
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["totalReplies"] ?? null), "html", null, true);
        yield "</span>
                            </div>

                            <div class=\"uv-ticket-wrapper thread-list\"></div>
                        </div>
                    </div>
                </div>

                ";
        // line 1008
        yield "                <div class=\"uv-ticket-main uv-ticket-reply uv-no-error-success-icon\">
                    <div class=\"uv-ticket-main-lt\">
                        <span class=\"uv-icon-ellipsis\"></span>
                        <img src=\"";
        // line 1011
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["currentUserDetails"] ?? null), "thumbnail", [], "any", false, false, false, 1011)) ? (((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1011), "scheme", [], "any", false, false, false, 1011) . "://") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1011), "httpHost", [], "any", false, false, false, 1011)) . $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("")) . CoreExtension::getAttribute($this->env, $this->source, ($context["currentUserDetails"] ?? null), "thumbnail", [], "any", false, false, false, 1011))) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["default_agent_image_path"] ?? null)))), "html", null, true);
        yield "\" />
                    </div>

                    <div class=\"uv-ticket-main-rt\">
                        <span class=\"uv-ticket-member-name\">";
        // line 1015
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["currentUserDetails"] ?? null), "name", [], "any", false, false, false, 1015), "html", null, true);
        yield "</span>
                        <div class=\"uv-tabs\">
                            <ul>
                                <li for=\"reply\" class=\"uv-tab-active\">";
        // line 1018
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Reply"), "html", null, true);
        yield "</li>
                                <li for=\"forward\">";
        // line 1019
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forward"), "html", null, true);
        yield "</li>
                                ";
        // line 1020
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_ADD_NOTE"], "method", false, false, false, 1020)) {
            // line 1021
            yield "                                    <li for='note'>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Note"), "html", null, true);
            yield "</li>
                                ";
        }
        // line 1023
        yield "                                <li style=\"margin-left: 6px; cursor: pointer;\" title=\"Type info\" onclick=\"handleInfoClick(this)\" data-typedesc=\"";
        yield ((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 1023)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 1023), "description", [], "any", false, false, false, 1023)) : (""));
        yield "\">
  <i class=\"fa fa-info-circle\"></i>
                            </ul>
                        </div>

                        ";
        // line 1029
        yield "                        <div class=\"uv-tab-view uv-tab-view-active\" id=\"reply\">
                            <form enctype=\"multipart/form-data\" method=\"post\" action=\"";
        // line 1030
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_add_ticket_thread", ["ticketId" => CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 1030)]), "html", null, true);
        yield "\">
                                <input name=\"threadType\" value=\"reply\" type=\"hidden\">
                                <input name=\"threadId\" value=\"\" type=\"hidden\">
                                <input type=\"hidden\" id=\"hiddenTypeVal\" name=\"typeValue\" value=\"\">
                                <input name=\"status\" value=\"\" type=\"hidden\" ";
        // line 1034
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_UPDATE_TICKET_STATUS"], "method", false, false, false, 1034)) {
            yield "class=\"reply-status\"";
        }
        yield ">
                                <div class=\"uv-element-block collaborators\" style=\"display: none\">
                                    <label class=\"uv-field-label\">";
        // line 1036
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Collaborators"), "html", null, true);
        yield "</label>
                                    <div class=\"uv-field-block\"></div>
                                </div>

                                <div class=\"uv-element-block cc-bcc\">
                                    <label>
                                        <div class=\"uv-checkbox\">
                                            <input type=\"checkbox\" class=\"cc-bcc-toggle\">
                                            <span class=\"uv-checkbox-view\"></span>
                                        </div>
                                        <span class=\"uv-checkbox-label\">CC/BCC</span>
                                    </label>

                                    <div class=\"uv-field-block\" style=\"display: none\">
                                        <div class=\"uv-group\">
                                            <input class=\"uv-group-field uv-dropdown-other preloaded uv-manual-enter\" type=\"text\">
                                            <div class=\"uv-dropdown-list uv-bottom-left\">
                                                <div class=\"uv-dropdown-container\">
                                                    <label>";
        // line 1054
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Agent"), "html", null, true);
        yield "</label>
                                                </div>

                                                <ul class=\"uv-agents-list\">
                                                    ";
        // line 1058
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "getAgentPartialDataCollection", [], "any", false, false, false, 1058));
        foreach ($context['_seq'] as $context["_key"] => $context["agent"]) {
            // line 1059
            yield "                                                        <li data-id=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "email", [], "any", false, false, false, 1059), "html", null, true);
            yield "\">
                                                            <img src=\"";
            // line 1060
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "smallThumbnail", [], "any", false, false, false, 1060)) ? (((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1060), "scheme", [], "any", false, false, false, 1060) . "://") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1060), "httpHost", [], "any", false, false, false, 1060)) . $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("")) . CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "smallThumbnail", [], "any", false, false, false, 1060))) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["default_agent_image_path"] ?? null)))), "html", null, true);
            yield "\"/> ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "name", [], "any", false, false, false, 1060), "html", null, true);
            yield "
                                                        </li>
                                                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['agent'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 1063
        yield "
                                                    <li class=\"uv-no-results\" style=\"display: none;\">";
        // line 1064
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No result found"), "html", null, true);
        yield "</li>
                                                </ul>
                                            </div>
                                            <select class=\"uv-group-select cc-bcc-select\">
                                                <option value=\"bcc\">";
        // line 1068
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("BCC"), "html", null, true);
        yield "</option>
                                                <option value=\"cc\">";
        // line 1069
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("CC"), "html", null, true);
        yield "</option>
                                            </select>
                                        </div>

                                        <div class=\"cc-bcc-list\"></div>
                                    </div>
                                </div>

                                <div class=\"uv-element-block uv-element-block-textarea\">
                                    <label class=\"uv-field-label\">";
        // line 1078
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Write a reply"), "html", null, true);
        yield "</label>
                                    <div class=\"uv-field-block\">
                                        <textarea class=\"uv-field\" name=\"reply\" id=\"reply-area\">";
        // line 1080
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket_service"] ?? null), "getAgentDraftReply", [], "method", false, false, false, 1080), "html", null, true);
        yield "</textarea>
                                    </div>
                                </div>

                                <div class=\"uv-element-block attachment-block\">
                                    <label>
                                        <span class=\"uv-file-label\">";
        // line 1086
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add Attachment"), "html", null, true);
        yield "</span>
                                    </label>
                                </div>

                                ";
        // line 1091
        yield "                            ";
        $context["removeMe"] = [];
        // line 1092
        yield "                            ";
        if (($context["headerCustomFields"] ?? null)) {
            // line 1093
            yield "                                <div class=\"custom-fields clearfix\">
                                    ";
            // line 1094
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["headerCustomFields"] ?? null));
            foreach ($context['_seq'] as $context["key"] => $context["customField"]) {
                // line 1095
                yield "                                        <div class=\"uv-element-block input-group ";
                yield ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 1095))) ? ("dependent") : (""));
                yield " ";
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 1095));
                foreach ($context['_seq'] as $context["_key"] => $context["customFieldCustomFieldsDependency"]) {
                    yield " dependency";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldCustomFieldsDependency"], "id", [], "any", false, false, false, 1095), "html", null, true);
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_key'], $context['customFieldCustomFieldsDependency'], $context['_parent']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                yield "\" style=\"position: relative; ";
                yield ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 1095))) ? ("display: none;") : (""));
                yield "\">
                                            <div class=\"form-group\">
                                                <label class=\"uv-field-label\" for=\"for";
                // line 1097
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1097) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1097)), "html", null, true);
                yield "\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1097), "html", null, true);
                yield "</label>
                                                ";
                // line 1098
                if ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1098) == "text")) {
                    // line 1099
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input type=\"";
                    // line 1100
                    ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "validation", [], "array", false, true, false, 1100), "fieldtype", [], "array", true, true, false, 1100)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_3 = (($__internal_compile_4 = $context["customField"]) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["validation"] ?? null) : null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["fieldtype"] ?? null) : null), "html", null, true)) : (yield "text"));
                    yield "\" name=\"customFields[";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1100), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" value=\"\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1100)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1100) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1100)), "html", null, true);
                    yield "\" placeholder=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "placeholder", [], "any", false, false, false, 1100), "html", null, true);
                    yield "\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 1103
$context["customField"], "fieldType", [], "any", false, false, false, 1103), ["date", "time", "datetime"])) {
                    // line 1104
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input class=\"uv-field form-control create-ticket uv-date-picker ";
                    // line 1105
                    if ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1105) == "time")) {
                        yield "time";
                    } else {
                        yield "calendar";
                    }
                    yield " uv-header-";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1105), "html", null, true);
                    yield "\" type=\"text\" name=\"customFields[";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1105), "html", null, true);
                    yield "]\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1105)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1105) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1105)), "html", null, true);
                    yield "\" value=\"\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif ((CoreExtension::getAttribute($this->env, $this->source,                 // line 1108
$context["customField"], "fieldType", [], "any", false, false, false, 1108) == "textarea")) {
                    // line 1109
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <textarea name=\"customFields[";
                    // line 1110
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1110), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1110)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1110) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1110)), "html", null, true);
                    yield "\"></textarea>
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 1113
$context["customField"], "fieldType", [], "any", false, false, false, 1113), ["file"])) {
                    // line 1114
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input type=\"file\" name=\"customFields[";
                    // line 1115
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1115), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1115)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1115) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1115)), "html", null, true);
                    yield "\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 1118
$context["customField"], "fieldType", [], "any", false, false, false, 1118), ["select"])) {
                    // line 1119
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1119))) {
                        // line 1120
                        yield "                                                        <div class=\"uv-field-block\">
                                                            <select name=\"customFields[";
                        // line 1121
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1121), "html", null, true);
                        yield "]\" class=\"uv-select create-ticket\" id=\"for";
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1121) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1121)), "html", null, true);
                        yield "\" ";
                        yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1121)) ? ("required") : (""));
                        yield ">
                                                                <option value=\"\">";
                        // line 1122
                        yield "Select option";
                        yield "</option>
                                                                ";
                        // line 1123
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1123));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 1124
                            yield "                                                                    <option value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1124), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1124), "html", null, true);
                            yield "</option>
                                                                ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 1126
                        yield "                                                            </select>
                                                            <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                        </div>
                                                    ";
                    } else {
                        // line 1130
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 1131
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1131)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1131))]);
                        // line 1132
                        yield "                                                    ";
                    }
                    // line 1133
                    yield "                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1133), ["checkbox"])) {
                    // line 1134
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1134))) {
                        // line 1135
                        yield "                                                        ";
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1135));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 1136
                            yield "                                                            <div class=\"uv-split-field\">
                                                                <label>
                                                                    <div class=\"uv-checkbox\">
                                                                        <input type=\"checkbox\" name=\"customFields[";
                            // line 1139
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1139), "html", null, true);
                            yield "][]\" value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1139), "html", null, true);
                            yield "\" id=\"for";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1139) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1139)), "html", null, true);
                            yield "\" class=\"create-ticket\"/>
                                                                        <span class=\"uv-checkbox-view\"></span>
                                                                    </div>
                                                                    <span class=\"uv-radio-label\" for=\"for";
                            // line 1142
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1142) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1142)), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1142), "html", null, true);
                            yield "</span>
                                                                </label>
                                                                <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                            </div>
                                                        ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 1147
                        yield "                                                    ";
                    } else {
                        // line 1148
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 1149
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1149)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1149))]);
                        // line 1150
                        yield "                                                    ";
                    }
                    // line 1151
                    yield "                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1151), ["radio"])) {
                    // line 1152
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1152))) {
                        // line 1153
                        yield "                                                        ";
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1153));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 1154
                            yield "                                                            <div class=\"uv-split-field\">
                                                                <label>
                                                                    <div class=\"uv-radio\">
                                                                        <input type=\"radio\" name=\"customFields[";
                            // line 1157
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1157), "html", null, true);
                            yield "]\" value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1157), "html", null, true);
                            yield "\" id=\"for";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1157) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1157)), "html", null, true);
                            yield "\" class=\"create-ticket\"/>
                                                                        <span class=\"uv-radio-view\"></span>
                                                                    </div>
                                                                    <span class=\"uv-radio-label\" for=\"for";
                            // line 1160
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1160) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1160)), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1160), "html", null, true);
                            yield "</span>
                                                                </label><span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                            </div>
                                                        ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 1164
                        yield "                                                    ";
                    } else {
                        // line 1165
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 1166
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1166)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1166))]);
                        // line 1167
                        yield "                                                    ";
                    }
                    // line 1168
                    yield "                                                ";
                }
                // line 1169
                yield "                                                ";
                if (CoreExtension::getAttribute($this->env, $this->source, ($context["formErrors"] ?? null), (("customFields[" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1169)) . "]"), [], "array", true, true, false, 1169)) {
                    // line 1170
                    yield "                                                    <div class=\"text-danger\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_5 = ($context["formErrors"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5[(("customFields[" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1170)) . "]")] ?? null) : null), "html", null, true);
                    yield "</div>
                                                ";
                }
                // line 1172
                yield "                                            </div>
                                        </div>
                                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['key'], $context['customField'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 1175
            yield "                                </div>
                            ";
        }
        // line 1177
        yield "                            
                            <div class=\"uv-element-block\">
    <label class=\"uv-field-label\">";
        // line 1179
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Time spent"), "html", null, true);
        yield "</label>
    <div class=\"uv-field-block\">
        <input type=\"text\" class=\"uv-field\" name=\"time_spent\" id=\"time-spent\" value=\"";
        // line 1181
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket_service"] ?? null), "getAgentDraftReply", [], "method", false, false, false, 1181), "html", null, true);
        yield "\" required>
    </div>
</div> 


                                <div class=\"uv-action-buttons\">
                                    <div class=\"uv-dropdown next-view\">
                                        <input type=\"hidden\" name=\"nextView\" value=\"stay\"/>
                                        <div class=\"uv-dropdown-btn\" style=\"padding: 9px 27px 9px 10px;\">";
        // line 1189
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Stay on ticket"), "html", null, true);
        yield "</div>
                                        <div class=\"uv-dropdown-list uv-top-left\" style=\"opacity: 1;\">
                                            <div class=\"uv-dropdown-container\">
                                                <label>";
        // line 1192
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("After Reply"), "html", null, true);
        yield "</label>
                                                <ul>
                                                    <li data-value=\"stay\">";
        // line 1194
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Stay on ticket"), "html", null, true);
        yield "</li>
                                                    <li data-value=\"redirect\">";
        // line 1195
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Redirect to list"), "html", null, true);
        yield "</li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>

                                    <div class=\"uv-dropdown reply\">
                                        <div class=\"uv-btn uv-dropdown-other\">";
        // line 1202
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Reply"), "html", null, true);
        yield " <span class=\"uv-icon-down-light\"></span></div>
                                        <div class=\"uv-dropdown-list uv-top-left\">
                                            <div class=\"uv-dropdown-container\">
                                                <label>";
        // line 1205
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Reply"), "html", null, true);
        yield "</label>
                                                <ul>
                                                    <li data-id=\"\">";
        // line 1207
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit"), "html", null, true);
        yield "</li>
                                                    ";
        // line 1208
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_UPDATE_TICKET_STATUS"], "method", false, false, false, 1208)) {
            // line 1209
            yield "                                                        <li data-id=\"open\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit And Open"), "html", null, true);
            yield "</li>
                                                        <li data-id=\"pending\">";
            // line 1210
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit And Pending"), "html", null, true);
            yield "</li>
                                                        <li data-id=\"answered\">";
            // line 1211
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit And Answered"), "html", null, true);
            yield "</li>
                                                        <li data-id=\"resolved\">";
            // line 1212
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit And Resolved"), "html", null, true);
            yield "</li>
                                                        <li data-id=\"closed\">";
            // line 1213
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit And Closed"), "html", null, true);
            yield "</li>
                                                    ";
        }
        // line 1215
        yield "                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>

                        ";
        // line 1224
        yield "                        <div class=\"uv-tab-view\" id=\"forward\">
                            <form enctype=\"multipart/form-data\" method=\"post\" action=\"";
        // line 1225
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_add_ticket_thread", ["ticketId" => CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 1225)]), "html", null, true);
        yield "\">
                                <input name=\"threadType\" value=\"forward\" type=\"hidden\">
                                <input name=\"status\" value=\"\" type=\"hidden\" ";
        // line 1227
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_UPDATE_TICKET_STATUS"], "method", false, false, false, 1227)) {
            yield "class=\"reply-status\"";
        }
        yield ">

                                <div class=\"uv-element-block\">
                                    <label class=\"uv-field-label\">";
        // line 1230
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Subject"), "html", null, true);
        yield "</label>
                                    <div class=\"uv-field-block\">
                                        <input class=\"uv-field\" type=\"text\" name=\"subject\">
                                    </div>
                                </div>

                                <div class=\"uv-element-block to\">
                                    <label class=\"uv-field-label\">";
        // line 1237
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("To"), "html", null, true);
        yield "</label>
                                    <div class=\"uv-field-block\">
                                        <input class=\"uv-field uv-dropdown-other preloaded uv-to-message uv-manual-enter\" type=\"text\">

                                        <div class=\"uv-dropdown-list uv-bottom-left\">
                                            <div class=\"uv-dropdown-container\">
                                                <label>";
        // line 1243
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Agent"), "html", null, true);
        yield "</label>
                                            </div>

                                            <ul class=\"uv-agents-list\">
                                                ";
        // line 1247
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "getAgentPartialDataCollection", [], "any", false, false, false, 1247));
        foreach ($context['_seq'] as $context["_key"] => $context["agent"]) {
            // line 1248
            yield "                                                    <li data-id=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "email", [], "any", false, false, false, 1248), "html", null, true);
            yield "\">
                                                        <img src=\"";
            // line 1249
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "smallThumbnail", [], "any", false, false, false, 1249)) ? (((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1249), "scheme", [], "any", false, false, false, 1249) . "://") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1249), "httpHost", [], "any", false, false, false, 1249)) . $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("")) . CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "smallThumbnail", [], "any", false, false, false, 1249))) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["default_agent_image_path"] ?? null)))), "html", null, true);
            yield "\"/> ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "name", [], "any", false, false, false, 1249), "html", null, true);
            yield "
                                                    </li>
                                                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['agent'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 1252
        yield "
                                                <li class=\"uv-no-results\" style=\"display: none;\">";
        // line 1253
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No result found"), "html", null, true);
        yield "</li>
                                            </ul>
                                        </div>

                                        <div class=\"to-list\"></div>
                                    </div>
                                </div>

                                <div class=\"uv-element-block cc-bcc\">
                                    <label>
                                        <div class=\"uv-checkbox\">
                                            <input type=\"checkbox\" class=\"cc-bcc-toggle\">
                                            <span class=\"uv-checkbox-view\"></span>
                                        </div>
                                        <span class=\"uv-checkbox-label\">CC/BCC</span>
                                    </label>
                                    <div class=\"uv-field-block\" style=\"display: none\">
                                        <div class=\"uv-group\">
                                            <input class=\"uv-group-field uv-dropdown-other preloaded uv-manual-enter\" type=\"text\">
                                            <div class=\"uv-dropdown-list uv-bottom-left\">
                                                <div class=\"uv-dropdown-container\"><label>";
        // line 1273
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Agent"), "html", null, true);
        yield "</label></div>

                                                <ul class=\"uv-agents-list\">
                                                    ";
        // line 1276
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "getAgentPartialDataCollection", [], "any", false, false, false, 1276));
        foreach ($context['_seq'] as $context["_key"] => $context["agent"]) {
            // line 1277
            yield "                                                        <li data-id=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "email", [], "any", false, false, false, 1277), "html", null, true);
            yield "\">
                                                            <img src=\"";
            // line 1278
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "smallThumbnail", [], "any", false, false, false, 1278)) ? (((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1278), "scheme", [], "any", false, false, false, 1278) . "://") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1278), "httpHost", [], "any", false, false, false, 1278)) . $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("")) . CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "smallThumbnail", [], "any", false, false, false, 1278))) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["default_agent_image_path"] ?? null)))), "html", null, true);
            yield "\"/> ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "name", [], "any", false, false, false, 1278), "html", null, true);
            yield "
                                                        </li>
                                                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['agent'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 1281
        yield "
                                                    <li class=\"uv-no-results\" style=\"display: none;\">";
        // line 1282
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No result found"), "html", null, true);
        yield "</li>
                                                </ul>
                                            </div>
                                            <select class=\"uv-group-select cc-bcc-select\">
                                                <option value=\"bcc\">";
        // line 1286
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("BCC"), "html", null, true);
        yield "</option>
                                                <option value=\"cc\">";
        // line 1287
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("CC"), "html", null, true);
        yield "</option>
                                            </select>
                                        </div>

                                        <div class=\"cc-bcc-list\"></div>
                                    </div>
                                </div>

                                <div class=\"uv-element-block uv-element-block-textarea\">
                                    <label class=\"uv-field-label\">";
        // line 1296
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Write a reply"), "html", null, true);
        yield "</label>
                                    <div class=\"uv-field-block\">
                                        <textarea class=\"uv-field\" name=\"reply\" id=\"forward-area\">";
        // line 1298
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket_service"] ?? null), "getAgentDraftReply", [], "method", false, false, false, 1298), "html", null, true);
        yield "</textarea>
                                    </div>
                                </div>

                                <div class=\"uv-element-block attachment-block\">
                                    <label><span class=\"uv-file-label\">";
        // line 1303
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add Attachment"), "html", null, true);
        yield "</span></label>
                                </div>

                                <div class=\"uv-action-buttons\">
                                    <div class=\"uv-dropdown next-view\">
                                        <input type=\"hidden\" name=\"nextView\" value=\"stay\"/>
                                        <div class=\"uv-dropdown-btn\" style=\"padding: 9px 27px 9px 10px;\">";
        // line 1309
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Stay on ticket"), "html", null, true);
        yield "</div>
                                        <div class=\"uv-dropdown-list uv-top-left\" style=\"opacity: 1;\">
                                            <div class=\"uv-dropdown-container\">
                                                <label>";
        // line 1312
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("After Reply"), "html", null, true);
        yield "</label>
                                                <ul>
                                                    <li data-value=\"stay\">";
        // line 1314
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Stay on ticket"), "html", null, true);
        yield "</li>
                                                    <li data-value=\"redirect\">";
        // line 1315
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Redirect to list"), "html", null, true);
        yield "</li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>

                                    <div class=\"uv-btn forward\">";
        // line 1321
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forward"), "html", null, true);
        yield "</div>
                                </div>
                            </form>
                        </div>

                        ";
        // line 1327
        yield "                        ";
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_ADD_NOTE"], "method", false, false, false, 1327)) {
            // line 1328
            yield "                            <div class=\"uv-tab-view\" id=\"note\">
                                <form enctype=\"multipart/form-data\" method=\"post\" action=\"";
            // line 1329
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_add_ticket_thread", ["ticketId" => CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 1329)]), "html", null, true);
            yield "\">
                                    <input name=\"threadType\" value=\"note\" type=\"hidden\">
                                    <input name=\"status\" value=\"\" type=\"hidden\" ";
            // line 1331
            if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_UPDATE_TICKET_STATUS"], "method", false, false, false, 1331)) {
                yield "class=\"reply-status\"";
            }
            yield ">

                                    <div class=\"uv-element-block uv-element-block-textarea\">
                                        <label class=\"uv-field-label\">";
            // line 1334
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Write a reply"), "html", null, true);
            yield "</label>
                                        <div class=\"uv-field-block\">
                                            <textarea class=\"uv-field\" name=\"reply\" id=\"note-area\">";
            // line 1336
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket_service"] ?? null), "getAgentDraftReply", [], "method", false, false, false, 1336), "html", null, true);
            yield "</textarea>
                                        </div>
                                    </div>

                                    <div class=\"uv-element-block attachment-block\">
                                        <label><span class=\"uv-file-label\">";
            // line 1341
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add Attachment"), "html", null, true);
            yield "</span></label>
                                    </div>

                                    <div class=\"uv-action-buttons\">
                                        <div class=\"uv-dropdown next-view\">
                                            <input type=\"hidden\" name=\"nextView\" value=\"stay\"/>
                                            <div class=\"uv-dropdown-btn\" style=\"padding: 9px 27px 9px 10px;\">";
            // line 1347
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Stay on ticket"), "html", null, true);
            yield "</div>
                                            <div class=\"uv-dropdown-list uv-top-left\" style=\"opacity: 1;\">
                                                <div class=\"uv-dropdown-container\">
                                                    <label>";
            // line 1350
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("After Reply"), "html", null, true);
            yield "</label>
                                                    <ul>
                                                        <li data-value=\"stay\">";
            // line 1352
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Stay on ticket"), "html", null, true);
            yield "</li>
                                                        <li data-value=\"redirect\">";
            // line 1353
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Redirect to list"), "html", null, true);
            yield "</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>

                                        <div class=\"uv-dropdown reply\">
                                            <div class=\"uv-btn uv-dropdown-other\">";
            // line 1360
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Reply"), "html", null, true);
            yield "<span class=\"uv-icon-down-light\"></span></div>

                                            <div class=\"uv-dropdown-list uv-top-left\">
                                                <div class=\"uv-dropdown-container\">
                                                    <label>";
            // line 1364
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add Note"), "html", null, true);
            yield "</label>
                                                    <ul>
                                                        <li data-id=\"\">";
            // line 1366
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit"), "html", null, true);
            yield "</li>
                                                        ";
            // line 1367
            if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_UPDATE_TICKET_STATUS"], "method", false, false, false, 1367)) {
                // line 1368
                yield "                                                            <li data-id=\"open\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit And Open"), "html", null, true);
                yield "</li>
                                                            <li data-id=\"pending\">";
                // line 1369
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit And Pending"), "html", null, true);
                yield "</li>
                                                            <li data-id=\"answered\">";
                // line 1370
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit And Answered"), "html", null, true);
                yield "</li>
                                                            <li data-id=\"resolved\">";
                // line 1371
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit And Resolved"), "html", null, true);
                yield "</li>
                                                            <li data-id=\"closed\">";
                // line 1372
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Submit And Closed"), "html", null, true);
                yield "</li>
                                                        ";
            }
            // line 1374
            yield "                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        ";
        }
        // line 1382
        yield "                    </div>
                </div>
            </div>

            <!-- Bottom Action Block -->
            <div class=\"uv-ticket-fixed-region\">
                <div class=\"uv-ticket-fixed-region-lt\">
                    ";
        // line 1389
        yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["uvdesk_extensibles"] ?? null), "getRegisteredComponent", ["Webkul\\UVDesk\\CoreFrameworkBundle\\Tickets\\QuickActionButtonCollection"], "method", false, false, false, 1389), "injectTemplates", [], "method", false, false, false, 1389);
        yield "

                    ";
        // line 1411
        yield "
                    ";
        // line 1435
        yield "                </div>

                <div class=\"uv-ticket-fixed-region-rt\"></div>
            </div>
            <!-- //Bottom Action Block -->
        </div>
    </div>

   <!-- Eye Icon -->
    <i class=\"fa fa-eye\" aria-hidden=\"true\" style=\"margin-left: 10px; cursor: pointer;\" onclick=\"showPopup()\"></i>

    <!-- Overlay -->
    <div id=\"overlay\" onclick=\"hidePopup()\"></div>

    <!-- Popup -->
    <div id=\"popup\">
        <button class=\"close-btn\" onclick=\"hidePopup()\">Close</button>
        <div id=\"graph-container\"></div>
    </div>
<style>
    /* Popup styles */
    #popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto%;
        height: auto%;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
        z-index: 1000;
        border-radius: 10px;
        padding: 10px;
        overflow: auto;
    }

    /* Overlay styles */
    #overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /* Close button */
    .close-btn {
        display: inline-block;
        background-color: red;
        color: white;
        padding: 5px 10px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        float: right;
    }

    /* Graph container */
    #graph-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    /* Ensure diagram is visible and does not overflow */
    .graph-align {
        position: relative;
        overflow: auto;
        max-width: 100%;
        max-height: 100%;
    }
</style>

<script>
    // Ticket priority from your Twig / Symfony app
      var priorityDescription = \"";
        // line 1516
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 1516)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 1516), "code", [], "any", false, false, false, 1516)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
        yield "\";

      // Build workflowSteps from workflowData:
      var workflowSteps = [];
      ";
        // line 1520
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["workflowData"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
            // line 1521
            yield "        workflowSteps.push({
          left_side:     \"";
            // line 1522
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "left_side", [], "any", false, false, false, 1522), "js"), "html", null, true);
            yield "\",
          center:        \"";
            // line 1523
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "center", [], "any", false, false, false, 1523), "js"), "html", null, true);
            yield "\",
          right_side:    \"";
            // line 1524
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "right_side", [], "any", false, false, false, 1524), "js"), "html", null, true);
            yield "\",
          status_update: \"";
            // line 1525
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "status_update", [], "any", false, false, false, 1525), "js"), "html", null, true);
            yield "\"   // Include status_update
        });
      ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['row'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 1528
        yield "    
    function showPopup() {
  const container = document.getElementById('graph-container');
  document.getElementById('popup').style.display = 'block';
  document.getElementById('overlay').style.display = 'block';
  container.innerHTML = '';

  if (!mxClient.isBrowserSupported()) {
      alert('Browser not supported!');
      return;
  }

  const graph = new mxGraph(container);
  const parent = graph.getDefaultParent();

  graph.getModel().beginUpdate();
  try {
      // We'll place 3 blocks per row
      const stepsPerRow = 3;

      // Positioning constants
      const startX = 20;
      const startY = 20;
      const xSpacing = 220;
      const ySpacing = 90;
      const width = 200;
      const height = 40;

      const vertices = [];

      // A variable to track whether we found our match
      let hasMatched = false;

      for (let i = 0; i < workflowSteps.length; i++) {
          // Extract the data for this step
          let stepObj = workflowSteps[i];
          let stepLabel = stepObj.left_side;         // or combine with right_side if you want
          let statusUpdate = stepObj.status_update;  // \"pending\" or something else

          // Base style
          let currentStyle = 'rounded=1;strokeColor=black;';

          // 1) If status_update is \"pending\", highlight in yellow
          if (statusUpdate && statusUpdate.toLowerCase() === 'pending') {
              currentStyle += 'fillColor=yellow;';
          }
          // 2) Otherwise, check if we have matched the priority yet
          else if (!hasMatched) {
              // Compare leftSide with priorityDescription
              if (stepLabel.trim().toLowerCase() === priorityDescription.trim().toLowerCase()) {
                  // Matching step => green
                  currentStyle += 'fillColor=#90EE90;';
                  hasMatched = true;
              } else {
                  // Not matched => skyblue
                  currentStyle += 'fillColor=skyblue;';
              }
          } else {
              // We already matched => color is cream
              currentStyle += 'fillColor=#F5F5F5;';
          }

          // Compute row & col for layout
          const col = i % stepsPerRow;
          const row = Math.floor(i / stepsPerRow);
          const xPos = startX + (col * xSpacing);
          const yPos = startY + (row * ySpacing);

          // Insert the vertex
          const currentVertex = graph.insertVertex(
              parent,
              null,
              stepLabel,
              xPos,
              yPos,
              width,
              height,
              currentStyle
          );

          // Connect edges linearly
          if (i > 0) {
              graph.insertEdge(parent, null, '', vertices[i - 1], currentVertex);
          }
          vertices.push(currentVertex);
      }
  } finally {
      graph.getModel().endUpdate();
  }

  // Fit the diagram to the container
  graph.fit();
}

    function hidePopup() {
        document.getElementById('popup').style.display = 'none';
        document.getElementById('overlay').style.display = 'none';
    }
</script>


    ";
        // line 1630
        yield "    ";
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_EDIT_TICKET"], "method", false, false, false, 1630)) {
            // line 1631
            yield "        <div class=\"uv-pop-up-overlay uv-no-error-success-icon\" id=\"edit-ticket-modal\">
            <div class=\"uv-pop-up-box uv-pop-up-wide\">
                <span class=\"uv-pop-up-close\"></span>
                <h2>";
            // line 1634
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit Ticket"), "html", null, true);
            yield "</h2>

                ";
            // line 1637
            yield "                <form method=\"post\" action=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_update_ticket_details_xhr", ["ticketId" => CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 1637)]), "html", null, true);
            yield "\" id=\"edit-ticket-form\">
                    <div class=\"uv-element-block\">
                        <label class=\"uv-field-label\">";
            // line 1639
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Subject"), "html", null, true);
            yield "</label>
                        <div class=\"uv-field-block\">
                            <input type=\"text\" name=\"subject\" class=\"uv-field\" value=\"";
            // line 1641
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "subject", [], "any", false, false, false, 1641), "html", null, true);
            yield "\" />
                        </div>
                    </div>
                    
                    <div class=\"uv-element-block\">
                        <label class=\"uv-field-label\">";
            // line 1646
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Reply"), "html", null, true);
            yield "</label>
                        <div class=\"uv-field-block\">
                            ";
            // line 1648
            if ((Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "message", [], "any", false, false, false, 1648)) == CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "message", [], "any", false, false, false, 1648))) {
                // line 1649
                yield "                                <textarea name=\"reply\" id=\"uv-edit-create-thread\" class=\"uv-field\">";
                yield Twig\Extension\CoreExtension::nl2br($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "message", [], "any", false, false, false, 1649), "html", null, true));
                yield "</textarea>
                            %} ";
            } else {
                // line 1651
                yield "                                <textarea name=\"reply\" id=\"uv-edit-create-thread\" class=\"uv-field\">";
                yield CoreExtension::getAttribute($this->env, $this->source, ($context["initialThread"] ?? null), "message", [], "any", false, false, false, 1651);
                yield "</textarea>
                            ";
            }
            // line 1653
            yield "                        </div>
                    </div>

                    <div class=\"uv-pop-up-actions\">
                        <input class=\"uv-btn update\" href=\"#\" value=\"Update\" type=\"submit\">
                        <input class=\"uv-btn cancel\" href=\"#\" value=\"Discard\" type=\"button\">
                    </div>
                </form>
            </div>
        </div>
    ";
        }
        // line 1664
        yield "
    ";
        // line 1665
        yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["uvdesk_extensibles"] ?? null), "getRegisteredComponent", ["Webkul\\UVDesk\\CoreFrameworkBundle\\Tickets\\WidgetCollection"], "method", false, false, false, 1665), "embedSideFilterContent", [], "method", false, false, false, 1665);
        yield "
";
        yield from [];
    }

    // line 1668
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_footer(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1669
        yield "    ";
        yield from $this->yieldParentBlock("footer", $context, $blocks);
        yield "

    ";
        // line 1671
        yield Twig\Extension\CoreExtension::include($this->env, $context, "@UVDeskCoreFramework\\Templates\\attachment.html.twig");
        yield "
    ";
        // line 1672
        yield Twig\Extension\CoreExtension::include($this->env, $context, "@UVDeskCoreFramework/Templates/tinyMCE.html.twig");
        yield "

    <script id=\"thread_list_empty_tmp\" type=\"text/template\">
        <div class=\"uv-no-threads\">";
        // line 1675
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nothing interesting here..."), "html", null, true);
        yield "</div>
    </script>
    <script>
    \$(document).ready(function () {
        \$(\".custom-date-picker\").each(function () {
            if (!\$(this).hasClass('datepicker-attached')) {
                \$(this).addClass('datepicker-attached');
                \$(this).datepicker({
                    dateFormat: 'yy-mm-dd'
                });
            }
        });
    });
    </script>
    <script> 
        //function updateCustomFields(e) {
        //    const dependentFields = e.currentTarget.value;
        //    this.\$('.dependent').hide();
        //    this.\$('.dependency' + dependentFields).show();
        //}
        \$(document).ready(function () {
            //alert(ticket.type.id);
            const dependentFields = \$(\"#typeval\").val().replace(\"/\", \"\").trim();
             \$('.dependent').hide();
             \$('.dependency' + dependentFields).show();
            \$(\"#filterSavedreplies\").on(\"keyup\", function() {
                if (this.value.length && this.value.length != '') {
                    var that = this;
                    \$(\"#listSavedReplies li\").hide().filter(function() {
                        return \$(this).html().toLowerCase().indexOf(that.value.toLowerCase()) !== -1;
                    }).show();
                } else {
                    \$(\"#listSavedReplies li\").show()
                }
            });

            \$(\".uv-dropdown-btn\").click(function(event) {
                setTimeout(function() {
                    \$(\".uv-search-inline\").focus();
                }, 100);
            });
        });
    </script>

    <script id=\"thread_list_item_tmp\" type=\"text/template\">
        <div class=\"uv-ticket-strip\">
            <span>
                <% if(typeof(mailStatus) != 'undefined' && mailStatus) { %>
                    <a href=\"https://support.uvdesk.com/en/blog/uvdesk-ticket-delivery-status\" target=\"_blank\">
                        <span class=\"uv-mail-status uv-mail-<%- mailStatus.split(',')[0] %>\" <% if(mailStatus !== 'pending') { %>data-toggle=\"tooltip\" data-placement=\"right\" title=\"";
        // line 1724
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mail status:"), "html", null, true);
        yield " <%- mailStatus.split(',')[0] %> <% if(mailStatus.split(',').length > 1) { print('Reason:' + mailStatus.split(',')[1] ); } %> \"<% } %> ></span>
            </a>
            <% } %>
            <span class=\"timeago uv-margin-0\" data-timestamp=\"<%- timestamp %>\" title=\"<%- formatedCreatedAt %>\">
                    <%- formatedCreatedAt %>
                </span>
            - <%- fullname %>
            <span class=\"uv-ticket-strip-label\">
                <% if(threadType == 'reply') { %>
                    ";
        // line 1733
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("replied"), "html", null, true);
        yield "
                <% } else if(threadType == 'note') { %>
                    ";
        // line 1735
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("added note"), "html", null, true);
        yield "
                <% } else if(threadType == 'forward') { %>
                    ";
        // line 1737
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("forwarded"), "html", null, true);
        yield "
                <% } %>
                - <a href=\"#thread/<%- id %>\" id=\"thread<%- id %>\" class=\"copy-thread-link\">#<%- id %></a>
                <span class=\"uv-thread-typeid\">Type: <%- typeCode %>
                &nbsp;
                <i class=\"fa fa-info-circle\" style=\"cursor:pointer;\" title=\"Show Type Description\" onclick=\"showTypePopup('<%- typeDescription %>')\"></i>
                </span>
            </span>

            <% if((replyTo && threadType ==  'forward') || cc || bcc) { %>
                <div class=\"uv-ticket-strip\">
                    <% if(replyTo && threadType ==  'forward') { %>
                    <span><span class=\"uv-ticket-strip-label\">";
        // line 1749
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("TO"), "html", null, true);
        yield " -</span> <%- replyTo %></span>
                    <% } if(cc) { %>
                    <span><span class=\"uv-ticket-strip-label\">";
        // line 1751
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("CC"), "html", null, true);
        yield " -</span> <%- cc %></span>
                    <% } if(bcc) { %>
                    <span><span class=\"uv-ticket-strip-label\">";
        // line 1753
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("BCC"), "html", null, true);
        yield " -</span> <%- bcc %></span>
                    <% } %>
                </div>
            <% } %>
        </div>

        <div class=\"uv-ticket-strip uv-margin-top-5\" <% if(!bookmark && !isLocked) { %>style=\"display: none\"<% } %> >
            <span <% if(!bookmark) { %>style=\"display: none\"<% } %> >
                    <span class=\"uv-icon-pinned\"></span>
                    ";
        // line 1762
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pinned"), "html", null, true);
        yield "
                    </span>
            <span <% if(!isLocked) { %>style=\"display: none\"<% } %> >
                <span class=\"uv-icon-locked\"></span>
                ";
        // line 1766
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Locked"), "html", null, true);
        yield "
            </span>
        </div>
        <div class=\"uv-ticket-main-lt\">
            <span class=\"uv-thread-action\">
                <span class=\"uv-icon-ellipsis uv-dropdown-other\"></span>
                <div class=\"uv-dropdown-list uv-bottom-left\">
                    <div class=\"uv-dropdown-container\">
                        <ul>
                            ";
        // line 1775
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_EDIT_THREAD_NOTE"], "method", false, false, false, 1775)) {
            // line 1776
            yield "                                <% if (userType != 'system' && userType != 'System') { %>
                                    <li data-action=\"edit\">";
            // line 1777
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit Thread"), "html", null, true);
            yield "</li>
                                <% } %>
                            ";
        }
        // line 1780
        yield "                            ";
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_DELETE_THREAD_NOTE"], "method", false, false, false, 1780)) {
            // line 1781
            yield "                                <li data-action=\"delete\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Delete Thread"), "html", null, true);
            yield "</li>
                            ";
        }
        // line 1783
        yield "                            <li data-action=\"forward\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forward"), "html", null, true);
        yield "</li>
                            <% if(bookmark) { %>
                                <li data-action=\"pin\" data-id=\"1\">";
        // line 1785
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Unpin Thread"), "html", null, true);
        yield "</li>
                            <% } else { %>
                                <li data-action=\"pin\" data-id=\"0\">";
        // line 1787
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pin Thread"), "html", null, true);
        yield "</li>
                            <% } %>
                            <% if(threadType != 'note') { %>
                                ";
        // line 1790
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_MANAGE_LOCK_AND_UNLOCK_THREAD"], "method", false, false, false, 1790)) {
            // line 1791
            yield "                                    <% if(isLocked) { %>
                                        <li data-action=\"lock\" data-id=\"1\">";
            // line 1792
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Unlock Thread"), "html", null, true);
            yield "</li>
                                    <% } else { %>
                                        <li data-action=\"lock\" data-id=\"0\">";
            // line 1794
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Lock Thread"), "html", null, true);
            yield "</li>
                                    <% } %>
                                ";
        }
        // line 1797
        yield "                            <% } %>
                            <li style=\"display: none;\" data-action=\"translate\">";
        // line 1798
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Translate Thread"), "html", null, true);
        yield "</li>
                        </ul>
                    </div>
                </div>
            </span>
            <span class=\"p-relative\">
                
            </span>
            <% if (userType != 'system' && userType != 'System') { %>
                <% if(user && user.smallThumbnail != null) { %>
                    <img src=\"";
        // line 1808
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1808), "scheme", [], "any", false, false, false, 1808) . "://") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1808), "httpHost", [], "any", false, false, false, 1808)) . $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("")), "html", null, true);
        yield "<%- user.smallThumbnail %>\" />
                <% } else { %>
                    <img src=\"<% if(userType == 'agent') { %> ";
        // line 1810
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["default_agent_image_path"] ?? null)), "html", null, true);
        yield " <% } else { %> ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["default_customer_image_path"] ?? null)), "html", null, true);
        yield " <% } %>\" />
                <% } %>
            <% } else { %>
                <img src=\"";
        // line 1813
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["default_helpdesk_image_path"] ?? null)), "html", null, true);
        yield "\" />
            <% } %>
        </div>
        <div class=\"uv-ticket-main-rt\">
            <% if(userType == 'customer') { %>
                <a <% if(user) { %>href=\"";
        // line 1818
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_manage_customer_account");
        yield "/<%- user.id %>\"<% } %> class=\"uv-ticket-member-name\">
                <%- fullname %>
                </a>
            <% } else if(userType == 'agent') { %>
                <a <% if(user) { %>href=\"";
        // line 1822
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_account");
        yield "/<%- user.id %>\"<% } %> class=\"uv-ticket-member-name\">
                <%- fullname %>
                </a>
            <% } else { %>
                <span class=\"uv-ticket-member-name\">
                    <%- fullname %>
                </span>
            <% } %>

            <!-- Message Block -->
            <div class=\"message\">
                <%= reply %>
            </div>
            <div class=\"message\">
                <strong>Effort Spent:</strong> <%= timeSpent %>
            </div>
            ";
        // line 1839
        yield "                            ";
        $context["removeMe"] = [];
        // line 1840
        yield "                            ";
        if (($context["headerCustomFields"] ?? null)) {
            // line 1841
            yield "                                <div class=\"custom-fields clearfix\">
                                    ";
            // line 1842
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["headerCustomFields"] ?? null));
            foreach ($context['_seq'] as $context["key"] => $context["customField"]) {
                // line 1843
                yield "                                        <div class=\"uv-element-block input-group ";
                yield ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 1843))) ? ("dependent") : (""));
                yield " ";
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 1843));
                foreach ($context['_seq'] as $context["_key"] => $context["customFieldCustomFieldsDependency"]) {
                    yield " dependency";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldCustomFieldsDependency"], "id", [], "any", false, false, false, 1843), "html", null, true);
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_key'], $context['customFieldCustomFieldsDependency'], $context['_parent']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                yield "\" style=\"position: relative; ";
                yield ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 1843))) ? ("display: none;") : (""));
                yield "\">
                                            <div class=\"form-group\">
                                                <label class=\"uv-field-label\" for=\"for";
                // line 1845
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1845) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1845)), "html", null, true);
                yield "\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1845), "html", null, true);
                yield "</label>
                                                ";
                // line 1846
                if ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1846) == "text")) {
                    // line 1847
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input type=\"";
                    // line 1848
                    ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "validation", [], "array", false, true, false, 1848), "fieldtype", [], "array", true, true, false, 1848)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_6 = (($__internal_compile_7 = $context["customField"]) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7["validation"] ?? null) : null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6["fieldtype"] ?? null) : null), "html", null, true)) : (yield "text"));
                    yield "\" name=\"<%- id %>customFields[";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1848), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" value=\"\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1848)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1848) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1848)), "html", null, true);
                    yield "\" placeholder=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "placeholder", [], "any", false, false, false, 1848), "html", null, true);
                    yield "\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 1851
$context["customField"], "fieldType", [], "any", false, false, false, 1851), ["date", "time", "datetime"])) {
                    // line 1852
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input class=\"uv-field form-control create-ticket uv-date-picker ";
                    // line 1853
                    if ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1853) == "time")) {
                        yield "time";
                    } else {
                        yield "calendar";
                    }
                    yield " uv-header-";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1853), "html", null, true);
                    yield "\" type=\"text\" name=\"<%- id %>customFields[";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1853), "html", null, true);
                    yield "]\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1853)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1853) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1853)), "html", null, true);
                    yield "\" value=\"\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif ((CoreExtension::getAttribute($this->env, $this->source,                 // line 1856
$context["customField"], "fieldType", [], "any", false, false, false, 1856) == "textarea")) {
                    // line 1857
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <textarea name=\"<%- id %>customFields[";
                    // line 1858
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1858), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1858)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1858) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1858)), "html", null, true);
                    yield "\"></textarea>
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 1861
$context["customField"], "fieldType", [], "any", false, false, false, 1861), ["file"])) {
                    // line 1862
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input type=\"file\" name=\"<%- id %>customFields[";
                    // line 1863
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1863), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1863)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1863) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1863)), "html", null, true);
                    yield "\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 1866
$context["customField"], "fieldType", [], "any", false, false, false, 1866), ["select"])) {
                    // line 1867
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1867))) {
                        // line 1868
                        yield "                                                        <div class=\"uv-field-block\">
                                                            <select name=\"<%- id %>customFields[";
                        // line 1869
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1869), "html", null, true);
                        yield "]\" class=\"uv-select create-ticket\" id=\"for";
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1869) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1869)), "html", null, true);
                        yield "\" ";
                        yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1869)) ? ("required") : (""));
                        yield ">
                                                                <option value=\"\">";
                        // line 1870
                        yield "Select option";
                        yield "</option>
                                                                ";
                        // line 1871
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1871));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 1872
                            yield "                                                                    <option value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1872), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1872), "html", null, true);
                            yield "</option>
                                                                ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 1874
                        yield "                                                            </select>
                                                            <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                        </div>
                                                    ";
                    } else {
                        // line 1878
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 1879
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1879)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1879))]);
                        // line 1880
                        yield "                                                    ";
                    }
                    // line 1881
                    yield "                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1881), ["checkbox"])) {
                    // line 1882
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1882))) {
                        // line 1883
                        yield "                                                        ";
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1883));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 1884
                            yield "                                                            <div class=\"uv-split-field\">
                                                                <label>
                                                                    <div class=\"uv-checkbox\">
                                                                        <input type=\"checkbox\" name=\"<%- id %>customFields[";
                            // line 1887
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1887), "html", null, true);
                            yield "][]\" value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1887), "html", null, true);
                            yield "\" id=\"for";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1887) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1887)), "html", null, true);
                            yield "\" class=\"create-ticket\"/>
                                                                        <span class=\"uv-checkbox-view\"></span>
                                                                    </div>
                                                                    <span class=\"uv-radio-label\" for=\"for";
                            // line 1890
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1890) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1890)), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1890), "html", null, true);
                            yield "</span>
                                                                </label>
                                                                <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                            </div>
                                                        ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 1895
                        yield "                                                    ";
                    } else {
                        // line 1896
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 1897
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1897)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1897))]);
                        // line 1898
                        yield "                                                    ";
                    }
                    // line 1899
                    yield "                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1899), ["radio"])) {
                    // line 1900
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1900))) {
                        // line 1901
                        yield "                                                        ";
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1901));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 1902
                            yield "                                                            <div class=\"uv-split-field\">
                                                                <label>
                                                                    <div class=\"uv-radio\">
                                                                        <input type=\"radio\" name=\"<%- id %>customFields[";
                            // line 1905
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1905), "html", null, true);
                            yield "]\" value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1905), "html", null, true);
                            yield "\" id=\"for";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1905) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1905)), "html", null, true);
                            yield "\" class=\"create-ticket\"/>
                                                                        <span class=\"uv-radio-view\"></span>
                                                                    </div>
                                                                    <span class=\"uv-radio-label\" for=\"for";
                            // line 1908
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1908) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1908)), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1908), "html", null, true);
                            yield "</span>
                                                                </label><span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                            </div>
                                                        ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 1912
                        yield "                                                    ";
                    } else {
                        // line 1913
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 1914
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1914)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1914))]);
                        // line 1915
                        yield "                                                    ";
                    }
                    // line 1916
                    yield "                                                ";
                }
                // line 1917
                yield "                                                ";
                if (CoreExtension::getAttribute($this->env, $this->source, ($context["formErrors"] ?? null), (("customFields[" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1917)) . "]"), [], "array", true, true, false, 1917)) {
                    // line 1918
                    yield "                                                    <div class=\"text-danger\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_8 = ($context["formErrors"] ?? null)) && is_array($__internal_compile_8) || $__internal_compile_8 instanceof ArrayAccess ? ($__internal_compile_8[(("customFields[" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1918)) . "]")] ?? null) : null), "html", null, true);
                    yield "</div>
                                                ";
                }
                // line 1920
                yield "                                            </div>
                                        </div>
                                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['key'], $context['customField'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 1923
            yield "                                </div>
                            ";
        }
        // line 1925
        yield "
            <!-- Attachment Block -->
            <% if(attachments.length) { %>
            <div class=\"uv-ticket-uploads\">
                <h4>";
        // line 1929
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Uploaded Files"), "html", null, true);
        yield "</h4>
                <div class=\"uv-ticket-uploads-strip\">
                    <% _.each(attachments, function(file) { %>
                    <a href=\"<%-file.downloadURL %>\" target =\"_blank\" class=\"uv-ticket-uploads-brick uv-no-pointer-events\" data-toggle=\"tooltip\" title=\"<%- file.name %>\">
                        <img src=\"<%-file.iconURL %>\" class=\"uv-auto-pointer-events\">
                    </a>
                    <% }) %>
                </div>

                <% if (attachments.length > 1) { %>
                <div class=\"thread-attachments-zip pull-left\">
                    <div class=\"uv-upload-actions\">
                        <a href=\"#\" class=\"uv-open-in-files\" data-thread=\"<%- id %>\" style=\"display: none\"><span class=\"uv-icon-open-in-files\"></span>";
        // line 1941
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Open in Files"), "html", null, true);
        yield "</a>
                        <% if(attachments.length > 0) { %>
                        <a href=\"";
        // line 1943
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket_download_attachment_zip");
        yield "/<%- id %>\" target=\"_blank\"><span class=\"uv-icon-attachment\"></span> ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download (as .zip)"), "html", null, true);
        yield "</a>
                        <% } %>
                    </div>
                </div>
                <% } %>

            </div>
            <% } %>
        </div>
    </script>

    <script id=\"edit_thread_tmp\" type=\"text/template\">
        <div class=\"thread-edit-container\">
            <div class=\"uv-element-block uv-element-block-textarea\">
                <div class=\"uv-field-block\">
                    <textarea id=\"uv-edit-thread\">
                    </textarea>
                      ";
        // line 1961
        yield "                            ";
        $context["removeMe"] = [];
        // line 1962
        yield "                            ";
        if (($context["headerCustomFields"] ?? null)) {
            // line 1963
            yield "                                <div class=\"custom-fields clearfix\">
                                    ";
            // line 1964
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["headerCustomFields"] ?? null));
            foreach ($context['_seq'] as $context["key"] => $context["customField"]) {
                // line 1965
                yield "                                        <div class=\"uv-element-block input-group ";
                yield ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 1965))) ? ("dependent") : (""));
                yield " ";
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 1965));
                foreach ($context['_seq'] as $context["_key"] => $context["customFieldCustomFieldsDependency"]) {
                    yield " dependency";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldCustomFieldsDependency"], "id", [], "any", false, false, false, 1965), "html", null, true);
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_key'], $context['customFieldCustomFieldsDependency'], $context['_parent']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                yield "\" style=\"position: relative; ";
                yield ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldsDependency", [], "any", false, false, false, 1965))) ? ("display: none;") : (""));
                yield "\">
                                            <div class=\"form-group\">
                                                <label class=\"uv-field-label\" for=\"for";
                // line 1967
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1967) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1967)), "html", null, true);
                yield "\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1967), "html", null, true);
                yield "</label>
                                                ";
                // line 1968
                if ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1968) == "text")) {
                    // line 1969
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input type=\"";
                    // line 1970
                    ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "validation", [], "array", false, true, false, 1970), "fieldtype", [], "array", true, true, false, 1970)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_9 = (($__internal_compile_10 = $context["customField"]) && is_array($__internal_compile_10) || $__internal_compile_10 instanceof ArrayAccess ? ($__internal_compile_10["validation"] ?? null) : null)) && is_array($__internal_compile_9) || $__internal_compile_9 instanceof ArrayAccess ? ($__internal_compile_9["fieldtype"] ?? null) : null), "html", null, true)) : (yield "text"));
                    yield "\" name=\"customFields[";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1970), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" value=\"\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1970)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1970) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1970)), "html", null, true);
                    yield "\" placeholder=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "placeholder", [], "any", false, false, false, 1970), "html", null, true);
                    yield "\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 1973
$context["customField"], "fieldType", [], "any", false, false, false, 1973), ["date", "time", "datetime"])) {
                    // line 1974
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input class=\"uv-field form-control create-ticket uv-date-picker ";
                    // line 1975
                    if ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1975) == "time")) {
                        yield "time";
                    } else {
                        yield "calendar";
                    }
                    yield " uv-header-";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 1975), "html", null, true);
                    yield "\" type=\"text\" name=\"customFields[";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1975), "html", null, true);
                    yield "]\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1975)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1975) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1975)), "html", null, true);
                    yield "\" value=\"\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif ((CoreExtension::getAttribute($this->env, $this->source,                 // line 1978
$context["customField"], "fieldType", [], "any", false, false, false, 1978) == "textarea")) {
                    // line 1979
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <textarea name=\"customFields[";
                    // line 1980
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1980), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1980)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1980) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1980)), "html", null, true);
                    yield "\"></textarea>
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 1983
$context["customField"], "fieldType", [], "any", false, false, false, 1983), ["file"])) {
                    // line 1984
                    yield "                                                    <div class=\"uv-field-block\">
                                                        <input type=\"file\" name=\"customFields[";
                    // line 1985
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1985), "html", null, true);
                    yield "]\" class=\"uv-field create-ticket\" ";
                    yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1985)) ? ("required") : (""));
                    yield " id=\"for";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1985) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1985)), "html", null, true);
                    yield "\">
                                                        <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                    </div>
                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source,                 // line 1988
$context["customField"], "fieldType", [], "any", false, false, false, 1988), ["select"])) {
                    // line 1989
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1989))) {
                        // line 1990
                        yield "                                                        <div class=\"uv-field-block\">
                                                            <select name=\"customFields[";
                        // line 1991
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1991), "html", null, true);
                        yield "]\" class=\"uv-select create-ticket\" id=\"for";
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 1991) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 1991)), "html", null, true);
                        yield "\" ";
                        yield ((CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "required", [], "any", false, false, false, 1991)) ? ("required") : (""));
                        yield ">
                                                                <option value=\"\">";
                        // line 1992
                        yield "Select option";
                        yield "</option>
                                                                ";
                        // line 1993
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 1993));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 1994
                            yield "                                                                    <option value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 1994), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 1994), "html", null, true);
                            yield "</option>
                                                                ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 1996
                        yield "                                                            </select>
                                                            <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                        </div>
                                                    ";
                    } else {
                        // line 2000
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 2001
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 2001)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 2001))]);
                        // line 2002
                        yield "                                                    ";
                    }
                    // line 2003
                    yield "                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 2003), ["checkbox"])) {
                    // line 2004
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 2004))) {
                        // line 2005
                        yield "                                                        ";
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 2005));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 2006
                            yield "                                                            <div class=\"uv-split-field\">
                                                                <label>
                                                                    <div class=\"uv-checkbox\">
                                                                        <input type=\"checkbox\" name=\"customFields[";
                            // line 2009
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 2009), "html", null, true);
                            yield "][]\" value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 2009), "html", null, true);
                            yield "\" id=\"for";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 2009) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 2009)), "html", null, true);
                            yield "\" class=\"create-ticket\"/>
                                                                        <span class=\"uv-checkbox-view\"></span>
                                                                    </div>
                                                                    <span class=\"uv-radio-label\" for=\"for";
                            // line 2012
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 2012) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 2012)), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 2012), "html", null, true);
                            yield "</span>
                                                                </label>
                                                                <span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                            </div>
                                                        ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 2017
                        yield "                                                    ";
                    } else {
                        // line 2018
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 2019
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 2019)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 2019))]);
                        // line 2020
                        yield "                                                    ";
                    }
                    // line 2021
                    yield "                                                ";
                } elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "fieldType", [], "any", false, false, false, 2021), ["radio"])) {
                    // line 2022
                    yield "                                                    ";
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 2022))) {
                        // line 2023
                        yield "                                                        ";
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "customFieldValues", [], "any", false, false, false, 2023));
                        foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
                            // line 2024
                            yield "                                                            <div class=\"uv-split-field\">
                                                                <label>
                                                                    <div class=\"uv-radio\">
                                                                        <input type=\"radio\" name=\"customFields[";
                            // line 2027
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 2027), "html", null, true);
                            yield "]\" value=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 2027), "html", null, true);
                            yield "\" id=\"for";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 2027) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 2027)), "html", null, true);
                            yield "\" class=\"create-ticket\"/>
                                                                        <span class=\"uv-radio-view\"></span>
                                                                    </div>
                                                                    <span class=\"uv-radio-label\" for=\"for";
                            // line 2030
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 2030) . CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "id", [], "any", false, false, false, 2030)), "html", null, true);
                            yield "\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["customFieldValues"], "name", [], "any", false, false, false, 2030), "html", null, true);
                            yield "</span>
                                                                </label><span class=\"error-message\" style=\"display: none;\">This field is mandatory</span>
                                                            </div>
                                                        ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['customFieldValues'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 2034
                        yield "                                                    ";
                    } else {
                        // line 2035
                        yield "                                                        <!--Hide this because choices aren't available-->
                                                        ";
                        // line 2036
                        $context["removeMe"] = Twig\Extension\CoreExtension::merge(($context["removeMe"] ?? null), [(("for" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "name", [], "any", false, false, false, 2036)) . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 2036))]);
                        // line 2037
                        yield "                                                    ";
                    }
                    // line 2038
                    yield "                                                ";
                }
                // line 2039
                yield "                                                ";
                if (CoreExtension::getAttribute($this->env, $this->source, ($context["formErrors"] ?? null), (("customFields[" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 2039)) . "]"), [], "array", true, true, false, 2039)) {
                    // line 2040
                    yield "                                                    <div class=\"text-danger\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_11 = ($context["formErrors"] ?? null)) && is_array($__internal_compile_11) || $__internal_compile_11 instanceof ArrayAccess ? ($__internal_compile_11[(("customFields[" . CoreExtension::getAttribute($this->env, $this->source, $context["customField"], "id", [], "any", false, false, false, 2040)) . "]")] ?? null) : null), "html", null, true);
                    yield "</div>
                                                ";
                }
                // line 2042
                yield "                                            </div>
                                        </div>
                                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['key'], $context['customField'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 2045
            yield "                                </div>
                            ";
        }
        // line 2047
        yield "                </div>
            </div>
            <div class=\"uv-action-buttons\">
                <a class=\"uv-btn cancel-edit\" type=\"button\">";
        // line 2050
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cancel"), "html", null, true);
        yield "</a>
                <a class=\"uv-btn saveThread\" type=\"button\" style=\"margin-right: 10px;\">";
        // line 2051
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Update"), "html", null, true);
        yield "</a>
            </div>
        </div>
    </script>

    <script id=\"ticket_quick_navigation_tmp\" type=\"text/template\">
        <% if(prev) { %>
            <a class=\"uv-btn-stroke\" href=\"";
        // line 2058
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket");
        yield "/<%- prev %>\">
                <span class=\"uv-icon-previous\"></span>
                ";
        // line 2060
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Previous Ticket"), "html", null, true);
        yield "
            </a>
        <% } else { %>
            <a class=\"uv-btn-stroke\" disabled=\"disabled\">
                <span class=\"uv-icon-previous\"></span>
                ";
        // line 2065
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Previous Ticket"), "html", null, true);
        yield "
            </a>
        <% } %>

        <% if(next) { %>
            <a class=\"uv-btn-stroke\" href=\"";
        // line 2070
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket");
        yield "/<%- next %>\">
                ";
        // line 2071
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Next Ticket"), "html", null, true);
        yield "
                <span class=\"uv-icon-next\"></span>
            </a>
        <% } else { %>
            <a class=\"uv-btn-stroke\" disabled=\"disabled\">
                ";
        // line 2076
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Next Ticket"), "html", null, true);
        yield "
                <span class=\"uv-icon-next\"></span>
            </a>
        <% } %>
    </script>

    <script type=\"text/javascript\">
        uvdesk = {
            ticket: {}
        };

        var ticketApp = {};

        viewerImages = function() {
            if (typeof(\$().viewer == 'function')) {
                \$('.uv-ticket-uploads .uv-ticket-uploads-strip').viewer({
                    'url': 'data-url',
                    'downloadBase': \"";
        // line 2093
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket_download_attachment");
        yield "\",
                    'download': 'data-download',
                });
            }
        };

        \$(function () {
            var threadIds = [];
            viewerImages();

            _.extend(Backbone.Model.prototype, Backbone.Validation.mixin);

            // Ticket Model
            var TicketModel = Backbone.Model.extend({
                idAttribute : \"id\",
                urlRoot : \"";
        // line 2108
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_update_ticket_attributes_xhr");
        yield "\",
                validation: {
                    'email': [{
                        required: true,
                        msg: '";
        // line 2112
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html", null, true);
        yield "'
                    },{
                        pattern: /^[a-zA-Z0-9.!#\$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\$/,
                        msg: 'Please enter a valid email'
                    }],
                    'subject' : {
                        required : true,
                        msg : '";
        // line 2119
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html", null, true);
        yield "'
                    },
                    'reply' : {
                        fn: function(value) {
                            if(!tinyMCE.get(\"uv-edit-create-thread\"))
                                return false;
                            var html = tinyMCE.get(\"uv-edit-create-thread\").getContent();
                            if(app.appView.stripHTML(html) != '') {
                                return false;
                            }
                            return true;
                        },
                        msg : '";
        // line 2131
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html", null, true);
        yield "'
                    }
                },
            });

            // Thread Model
            var ThreadModel = Backbone.Model.extend({
                idAttribute : \"id\",
                defaults : {
                    hasTask : 0,
                    task: null
                }
            });

            // Customer Model
            var CustomerModel = Backbone.Model.extend({
                validation: {
                    'name': [{
                        required: true,
                        msg: '";
        // line 2150
        yield "This field is mandatory";
        yield "'
                    }, {
                        pattern: /^((?![!@#\$%^&*()<_+]).)*\$/,
                        msg: '";
        // line 2153
        yield "This field must have characters only";
        yield "'
                    }],
                    'email': [{
                        required: true,
                        msg: '";
        // line 2157
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html", null, true);
        yield "'
                    },{
                        pattern: /^[a-zA-Z0-9.!#\$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\$/,
                        msg: '";
        // line 2160
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email address is invalid"), "html", null, true);
        yield "'
                    }],
                    'contactNumber': function(value) {
                        if(value != undefined && value !== '') {
                            if (!value.match('^\\\\s*(?:\\\\+?(\\\\d{1,3}))?[-. (]*(\\\\d{3})[-. )]*(\\\\d{3})[-. ]*(\\\\d{4})(?: *x(\\\\d+))?\\\\s*\$'))
                                return 'Contact number is invalid';
                        }
                    }
                },
                urlRoot : \"";
        // line 2169
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_manage_customer_account");
        yield "\"
            });

            // Ticket Collaborator Model
            var CollaboratorModel = Backbone.Model.extend({
                idAttribute : \"id\",
                validation: {
                    'email': [{
                        required: true,
                        msg: '";
        // line 2178
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html", null, true);
        yield "'
                    },{
                        pattern: /^[a-zA-Z0-9.!#\$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\$/,
                        msg: '";
        // line 2181
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please enter a valid email"), "html", null, true);
        yield "'
                    }]
                },
                defaults : {
                    ticketId : ";
        // line 2185
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 2185), "html", null, true);
        yield ",
                    email: ''
                },
                parse: function (resp, options) {
                    return resp.collaborator;
                },
                urlRoot : \"";
        // line 2191
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket_manage_collaborators_xhr");
        yield "\"
            });

            // Ticket Tag Model
            var TagModel = Backbone.Model.extend({
                idAttribute : \"id\",
                defaults : {
                    ticketId : ";
        // line 2198
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 2198), "html", null, true);
        yield "
                },
                parse: function (resp, options) {
                    return resp.tag;
                },
                urlRoot : \"";
        // line 2203
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket_create_tag_xhr");
        yield "\"
            });
            
            // Due Date Model
            var DueDateModel = Backbone.Model.extend({
                    idAttribute: \"ticketId\", // Ensures the model uses ticketId as the unique identifier
                    defaults: {
                        dueDate: \"\"
                    },
                    parse: function(resp, options) {
                        return resp;
                    },
                    urlRoot: \"";
        // line 2215
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket_update_due_date_xhr");
        yield "\"
                });

            // Ticket Label Model
            var LabelModel = Backbone.Model.extend({
                idAttribute : \"id\",
                defaults : {
                    ticketId : ";
        // line 2222
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 2222), "html", null, true);
        yield "
                },
                parse: function (resp, options) {
                    return resp.label;
                },
                urlRoot : \"";
        // line 2227
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket_add_label_xhr");
        yield "\"
            });

            // Ticket Thread Collection
            var ThreadCollection = AppCollection.extend({
                model : ThreadModel,
                mode: \"infinite\",
                url : \"";
        // line 2234
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_thread_collection_xhr", ["ticketId" => CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 2234)]), "html", null, true);
        yield "\",
                firstScrollCheck: false,
                threadRequestedId: false,
                template : \$(\"#thread_list_empty_tmp\").html(),
                parseRecords: function (resp, options) {
                    return resp.threads;
                },
                syncData : function() {
                    type = \$(\".uv-ticket-action-bar-lt .uv-tabs .uv-tab-active\").attr('data-type')
                    var self = this;
                    var data = {
                        threadType: type
                    };

                    if(this.threadRequestedId)
                        data.threadRequestedId = this.threadRequestedId;

                    app.appView.showLoader()
                    this.fetch({
                        data : data,
                        remove: false,
                        success: function(model, response) {
                            app.appView.hideLoader();
                            self.threadRequestedId = false;
                            pagination.renderPagination(response.pagination);
                            threadCollection.state.currentPage = parseInt(response.pagination.current) + 1;
                            if(response.pagination.totalCount <= 0){
                                this.\$('.uv-ticket-wrapper.thread-list').html(self.template);
                            }
                        },
                        error: function (model, xhr, options) {
                            if(url = xhr.getResponseHeader('Location'))
                                window.location = url;
                        }
                    }).done(function(){
                        viewerImages();
                        if(!self.firstScrollCheck){
                            self.firstScrollCheck = true;
                            var fragment = Backbone.history.fragment.trim();
                            if(fragment == '') {
                                router.scrollPage('#reply');
                            } else
                                router.scrollPage('#' + fragment.replace('thread/', 'thread'));
                        }
                    });
                }
            });

            // Ticket Collaborator Collection
            var CollaboratorCollection = Backbone.PageableCollection.extend({
                model : CollaboratorModel
            });

            // Ticket Tag Collection
            var TagCollection = Backbone.PageableCollection.extend({
                model : TagModel,
                isTagExist : function(name) {
                    var flag = 1;
                    _.each(tagCollection.models, function (item) {
                        if(item.get('name').toUpperCase() == name.toUpperCase())
                            flag = 0;
                    }, this);

                    return flag;
                }
            });

            // Ticket Label Collection
            var LabelCollection = Backbone.PageableCollection.extend({
                model : TagModel,
                isLabelExist : function(name) {
                    var flag = 1;
                    _.each(labelCollection.models, function (item) {
                        if(item.get('name').toUpperCase() == name.toUpperCase())
                            flag = 0;
                    }, this);
                    return flag;
                }
            });

            // Customer Form View
            var CustomerForm = Backbone.View.extend({
                events : {
                    'click .uv-btn.update-btn' : \"saveCustomer\",
                    'blur input': 'formChanegd',
                    'click .cancel-btn': 'backToInfo',
                    'click .uv-aside-back': 'backToInfo'
                },
                initialize : function() {
                    Backbone.Validation.bind(this);
                },
                formChanegd: function(e) {
                    this.model.set(Backbone.\$(e.currentTarget).attr('name'), Backbone.\$(e.currentTarget).val())
                    this.model.isValid([Backbone.\$(e.currentTarget).attr('name')])
                },
                saveCustomer: function (e) {
                    e.preventDefault();
                    currentElement = Backbone.\$(e.currentTarget);
                    this.model.clear();
                    this.model.set(this.\$el.find('form').serializeObject());
                    self = this;
                    if(this.model.isValid(true)) {
                        app.appView.showLoader();
                        currentElement.attr('disabled', 'disabled');
                        this.model.save({}, {
                            success: function (model, response, options) {
                                app.appView.hideLoader();
                                currentElement.removeAttr(\"disabled\");
                                if(response.alertClass == \"success\") {
                                    app.appView.renderResponseAlert(response);
                                    \$('.uv-aside-customer-info').html(\"<span>\" + self.model.attributes.name + \"</span><span>\" + self.model.attributes.email + \"</span><span>\" + self.model.attributes.contactNumber + \"</span><span class='uv-customize'></span>\")
                                    self.backToInfo();
                                } else if(response.errors) {
                                    self.addErrors(JSON.parse(response.errors));
                                } else if(response.alertMessage) {
                                    app.appView.renderResponseAlert(response);
                                }
                            },
                            error: function (model, xhr, options) {
                                if(url = xhr.getResponseHeader('Location'))
                                    window.location = url;

                                app.appView.hideLoader();
                                app.appView.renderResponseAlert(warningResponse);
                            }
                        });
                    }
                },
                addErrors: function(jsonContext) {
                    for (var field in jsonContext) {
                        Backbone.Validation.callbacks.invalid(this, field, jsonContext[field], 'input');
                    }
                },
                backToInfo: function(e) {
                    if(e)
                        e.preventDefault()

                    \$('.uv-main-info-update-block').hide()
                    \$('.uv-main-info-block').show()
                },
            });

            // Ticket View
            var TicketView = Backbone.View.extend({
                el: \$('.uv-wrapper'),
                stopDraftSaveFlag: 0,
                events: {
                    'click .uv-ticket-action .uv-dropdown-list li[data-action=\"spam\"], .uv-ticket-action .uv-dropdown-list li[data-action=\"closed\"]': 'masrkSpamAndClosed',
                    'click .uv-aside-ticket-actions .uv-aside-select .uv-dropdown-list li': 'editTicketProperty',
                    'click .uv-aside-customer-info .uv-customize': 'showCustomerUpdateBlock',
                    'click .uv-ticket-head .uv-star-large': 'updateStar',
                    'click .uv-ticket-action-bar .uv-tabs li': 'filterThread',
                    'click .uv-ticket-action .uv-dropdown-list li[data-action=\"delete\"]': 'confirmRemove',
                    'click .uv-ticket-action .uv-dropdown-list li[data-action=\"lock\"]': 'lockAndUnlockThread',
                    'click .uv-element-block.collaborators .uv-btn-tag': 'removeCcCollaborator',
                    'keypress .uv-element-block.to .uv-dropdown-other': 'addToInput',
                    'click .uv-element-block.to .uv-dropdown-list li': 'addTo',
                    'click .to-list .uv-btn-tag': 'removeTo',
                    'change .uv-element-block.cc-bcc .cc-bcc-toggle': 'showCcBccBlock',
                    'keypress .uv-element-block.cc-bcc .uv-group-field.uv-dropdown-other': 'addCcBccInput',
                    'click .uv-element-block.cc-bcc .uv-dropdown-list li': 'addCcBcc',
                    'click .cc-bcc-list .uv-btn-tag, .to-list .uv-btn-tag': 'removeEmail',
                    'click .next-view .uv-dropdown-list li': 'setNextView',
                    'click .uv-dropdown.reply .uv-dropdown-list li, .uv-btn.forward': 'validateForm',
                    'click #edit-ticket-modal .uv-btn.update': 'updateTicket',
                    'click .message .uv-icon-ellipsis': 'showReplyQuote',
                    'input .uv-aside-brick .uv-field.uv-dropdown-other': 'searchFilterXhr',
                    'click .uv-dropdown-container.prepared-responses a:not(.create-new)': 'confirmPreparedResponses',

                    'click .uv-header-fix': 'fixheader',
                    'click .uv-ticket-action .uv-dropdown-list li[data-action=\"print\"]': 'printTicket',
                    'blur .uv-manual-enter': 'enterManualAdd',
                },
                ticketNavigationTemplate : _.template(\$(\"#ticket_quick_navigation_tmp\").html()),
                loaderTemplate : _.template(\$(\"#loader-tmp\").html()),
                targetPreparedResponseUrl: '',
                initialize: function() {
                    Backbone.Validation.bind(this);
                    InitTinyMce('#uv-edit-create-thread');
                    \$('.uv-ticket-fixed-region .uv-ticket-fixed-region-rt').html(this.ticketNavigationTemplate(ticketNavigation))
                    var threadTab = localStorage.getItem(\"threadTab\");
                    if(threadTab){
                        \$('.uv-ticket-action-bar-lt .uv-tabs li').removeClass('uv-tab-active');
                        \$('.uv-ticket-action-bar-lt .uv-tabs [data-type=\"' + threadTab + '\"]').addClass('uv-tab-active');
                    }
                    nextView = localStorage.getItem(\"nextView\");
                    if(nextView) {
                        \$(\".next-view input\").val(nextView)
                        \$(\".next-view .uv-dropdown-btn\").text(\$(\"#reply .next-view .uv-dropdown-list li[data-value='\" + nextView + \"']\").text())
                    }
                    if(!localStorage.getItem('ticketTour')) {
                        \$('.uv-ticket-tour').show()
                    }
                    this.fixheaderInit();
                },
                printTicket: function(e) {
                    window.print();
                },
                enterManualAdd: function(e) {
                    var target = \$(e.target);
                    if(target.val()) {
                        var e = \$.Event(\"keypress\");
                        e.which = 13; //choose the one you want
                        target.trigger(e);
                    }
                },
                fixheader: function(e){
                    e.preventDefault();
                    var header = localStorage.getItem(\"fixHeader\");
                    header = !(header == 'true');
                    localStorage.setItem(\"fixHeader\", header);
                    this.fixheaderInit();
                },
                fixheaderInit: function(){
                    var header = localStorage.getItem(\"fixHeader\");
                    if(header == 'true'){
                        \$('a.uv-icon-pin').addClass('uv-icon-pinned');
                        \$('.uv-ticket-action-bar').addClass('uv-ticket-action-bar-fixed');
                    }else{
                        \$('a.uv-icon-pin').removeClass('uv-icon-pinned');
                        \$('.uv-ticket-action-bar').removeClass('uv-ticket-action-bar-fixed');
                    }
                },
                masrkSpamAndClosed: function(e) {
                    var currentElement = Backbone.\$(e.currentTarget);
                    var value = currentElement.attr('data-index');
                    \$(\".uv-aside-select .uv-dropdown-list ul.status li[data-index='\" + value + \"']\").trigger('click')
                },
                editTicketProperty: function(e) {
                    var currentElement = Backbone.\$(e.currentTarget);
                    var uvSelect = currentElement.parents('.uv-aside-select');
                    var field = currentElement.parent().attr('data-action');
                    var value = currentElement.attr('data-index');
                    if(uvSelect.find('.uv-aside-select-value').attr('data-id') != value) {
                        var name = currentElement.text().trim();
                        app.appView.showLoader();
                        this.model.save({attribute: field, value: value, id: this.model.id}, {
                            patch: true,
                            success: function (model, response, options) {
                                uvSelect.find('.uv-aside-select-value').attr('data-id', value).text(name)
                                if(field == 'priority') {
                                    uvSelect.find('.uv-list-ticket-priority').attr('style', 'background:' + currentElement.attr('data-color'));
                                } else if(field == 'agent') {
                                    \$('.uv-ticket-strip .agent-info').show()
                                    \$('.uv-ticket-strip .agent-info .name').text(name)
                                }
                                app.appView.hideLoader();
                                app.appView.renderResponseAlert(response);
                            },
                            error: function (model, xhr, options) {
                                if(url = xhr.getResponseHeader('Location'))
                                    window.location = url;
                                var response = warningResponse;
                                if(xhr.responseJSON)
                                    response = xhr.responseJSON;

                                app.appView.hideLoader();
                                app.appView.renderResponseAlert(response);
                            }
                        });
                    }
                },
                showCustomerUpdateBlock: function() {
                    \$('.uv-main-info-update-block').show()
                    \$('.uv-main-info-block').hide()
                },
                updateStar: function(e) {
                    e.preventDefault();
                    var currentElement = Backbone.\$(e.currentTarget);
                    currentElement.toggleClass('uv-star-active')
                    this.model.save({id: this.model.id}, {
                        patch: true,
                        url : \"";
        // line 2506
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_bookmark_ticket_xhr");
        yield "\",
                        success: function (model, response, options) {
                        },
                        error: function (model, xhr, options) {
                            if(url = xhr.getResponseHeader('Location'))
                                window.location = url;
                        }
                    });
                },
                filterThread: function(e) {
                    var currentElement = Backbone.\$(e.currentTarget);
                    if(type = currentElement.attr('data-type')) {
                        localStorage.setItem(\"threadTab\", type);
                        if(type != 'all')
                            \$('.uv-ticket-main.create').hide()
                        else
                            \$('.uv-ticket-main.create').show()
                        \$('.uv-ticket-wrapper.thread-list').html('')
                        models = []
                        threadCollection.each(function(model) {
                            models.push(model)
                        })
                        total = threadCollection.models.length;
                        count = 0;
                        if(total) {
                            _.each(models, function (model) {
                                threadCollection.remove(model)
                                count++;
                                if(total == count) {
                                    threadCollection.reset()
                                    threadCollection.state.currentPage = 1;
                                    threadCollection.syncData()
                                }
                            });
                        } else {
                            threadCollection.reset()
                            threadCollection.state.currentPage = 1;
                            threadCollection.syncData()
                        }
                    }
                },
                confirmRemove: function(e) {
                    app.appView.openConfirmModal(this);
                },
                removeItem : function() {
                    if(this.model.attributes.isTrashed)
                        window.location.href = \"";
        // line 2552
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_delete_ticket", ["ticketId" => CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 2552)]), "html", null, true);
        yield "\";
                    else
                        window.location.href = \"";
        // line 2554
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_trash_ticket", ["ticketId" => CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 2554)]), "html", null, true);
        yield "\";
                },
                addCCCollaborators: function() {
                    if(collaboratorCollection.length) {
                        var collaboratorContainer = \$('.uv-element-block.collaborators');
                        collaboratorContainer.find('.uv-field-block').html('');
                        collaboratorContainer.show()
                        _.each(collaboratorCollection.models, function (item) {
                            var json = item.attributes;
                            collaboratorContainer.find('.uv-field-block').append(\"<span><input type='hidden' name='cccol[]' value='\" + json.email + \"'/><a class='uv-btn-tag' href='#'><span class='uv-icon-remove-dark-before'></span>\" + json.name + \"</a></span>\")
                        }, this);
                    }
                },
                removeCcCollaborator: function(e) {
                    e.preventDefault()
                    Backbone.\$(e.currentTarget).parent().remove();
                    var collaboratorContainer = \$('.uv-element-block.collaborators');
                    if(!collaboratorContainer.find('.uv-btn-tag').length)
                        collaboratorContainer.hide()
                },
                addToInput: function(e) {
                    var inputElement = Backbone.\$(e.currentTarget);
                    var currentTab = inputElement.parents('.uv-tab-view');
                    var email = inputElement.val().trim();
                    if (e.which === 13 && email) {
                        e.preventDefault()
                        if(!this.model.preValidate({name: 'email', email: email})) {
                            inputElement.val('').trigger('input')
                            inputElement.removeClass('uv-dropdown-btn-active')
                            inputElement.siblings('.uv-dropdown-list').hide()
                            if(!currentTab.find(\".to-list input[value='\" + email + \"'].to\").length) {
                                currentTab.find('.to-list').append(\"<span><input type='hidden' name='to[]' value='\" + email + \"' class='to'/><a class='uv-btn-tag' href='#'><span class='uv-icon-remove-dark-before'></span>\" + email + \"</span></a></span>\")
                            }
                        }
                    }
                },
                addTo: function(e) {
                    var currentTab = Backbone.\$(e.currentTarget).parents('.uv-tab-view');
                    var email =  Backbone.\$(e.currentTarget).attr('data-id');
                    if(!currentTab.find(\".to-list input[value='\" + email + \"'].to\").length) {
                        currentTab.find('.to-list').append(\"<span><input type='hidden' name='to[]' value='\" + email + \"' class='to'/><a class='uv-btn-tag' href='#'><span class='uv-icon-remove-dark-before'></span>\" + email + \"</span></a></span>\")
                    }
                },
                showCcBccBlock: function(e) {
                    var currentElement = Backbone.\$(e.currentTarget);
                    var currentTab = currentElement.parents('.uv-tab-view');
                    if(currentElement.is(':checked')) {
                        currentTab.find('.uv-element-block.cc-bcc').find('.uv-field-block').show()
                    } else {
                        currentTab.find('.uv-element-block.cc-bcc').find('.uv-field-block').hide()
                        currentTab.find('.uv-element-block .cc-bcc-list').html('')
                    }
                },
                addCcBccInput: function(e) {
                    var inputElement = Backbone.\$(e.currentTarget);
                    var currentTab = inputElement.parents('.uv-tab-view');
                    var email = inputElement.val().trim();
                    if (e.which === 13 && email) {
                        e.preventDefault()
                        type = currentTab.find('.cc-bcc-select option:selected').text()
                        if(!this.model.preValidate({name: 'email', email: email})) {
                            inputName = \$('.cc-bcc-select').val()
                            inputElement.val('').trigger('input')
                            inputElement.removeClass('uv-dropdown-btn-active')
                            inputElement.siblings('.uv-dropdown-list').hide()
                            if(!currentTab.find(\".cc-bcc-list input[value='\" + email + \"'].\" + inputName).length) {
                                currentTab.find('.cc-bcc-list').append(\"<span><input type='hidden' name='\" + inputName + \"[]' value='\" + email + \"' class='\" + inputName + \"'/><a class='uv-btn-tag uv-lowercase' href='#'><span class='uv-icon-remove-dark-before'></span><span class='uv-uppercase' style='margin-right: 4px;'>\" + type + \":</span>\" + email + \"</a></span>\")
                            }
                        }
                    }
                },
                addCcBcc: function(e) {
                    var currentTab = Backbone.\$(e.currentTarget).parents('.uv-tab-view');
                    var email =  Backbone.\$(e.currentTarget).attr('data-id');
                    type = currentTab.find('.cc-bcc-select option:selected').text()
                    inputName = currentTab.find('.cc-bcc-select').val()
                    if(!currentTab.find(\".cc-bcc-list input[value='\" + email + \"'].\" + inputName).length) {
                        currentTab.find('.uv-element-block.cc-bcc .uv-group-field.uv-dropdown-other').val('').trigger('input')
                        currentTab.find('.cc-bcc-list').append(\"<span><input type='hidden' name='\" + inputName + \"[]' value='\" + email + \"' class='\" + inputName + \"'/><a class='uv-btn-tag uv-lowercase' href='#'><span class='uv-icon-remove-dark-before'></span><span class='uv-uppercase' style='margin-right: 4px;'>\" + type + \":</span>\" + email + \"</a></span>\")
                    }
                },
                removeEmail: function(e) {
                    e.preventDefault()
                    Backbone.\$(e.currentTarget).parent().remove();
                },
                setNextView: function(e) {
                    var currentElement = Backbone.\$(e.currentTarget);
                    var nextView = currentElement.attr('data-value');
                    localStorage.setItem(\"nextView\", nextView);
                    \$(\".next-view input\").val(nextView)
                    \$(\".next-view .uv-dropdown-btn\").text(currentElement.text())
                },
              
                validateForm : function(e) {
    e.preventDefault();
    var element = Backbone.\$(e.currentTarget);
    var formType = element.parents('.uv-tab-view.uv-tab-view-active').attr('id');
    var form = element.parents('form');
    form.find('.reply-status').val(element.attr('data-id'));
    form.find('.uv-field-message').remove();

    var html = tinyMCE.get(formType + \"-area\").getContent();

    // Custom fields validation
    var isValid = true;

    form.find('.custom-fields .uv-element-block input, .custom-fields .uv-element-block textarea, .custom-fields .uv-element-block select').each(function() {
        var \$field = \$(this);
        var \$error = \$field.siblings('.error-message');
        var \$grandParent = \$field.closest('.uv-element-block'); // The parent div with the class 'uv-element-block'

        // Only validate if the grandparent is visible
        if (\$grandParent.is(':visible')) {
            if (\$field.prop('required') && !\$field.val()) {
                \$error.show();
                isValid = false;
            } else {
                \$error.hide();
            }
        }
    });

    // Prevent form submission if validation fails
    if (!isValid) {
        return;
    }

    if (app.appView.htmlText(html) != '' || -1 != html.indexOf('<img')) {
        if (formType == 'forward') {
            if (!form.find(\".to-list input.to\").length) {
                \$('.uv-element-block.to').append(\"<span class='uv-field-message'>";
        // line 2684
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html", null, true);
        yield "</span>\");
            } else {
                this.stopDraftSaveFlag = 1;

                app.appView.showLoader();
                tinyMCE.activeEditor.uploadImages(function(response) {
                    app.appView.hideLoader();
                    form.submit();
                    \$('.uv-btn.forward').attr('disabled', 'disabled');
                });
            }
        } else {
            this.stopDraftSaveFlag = 1;
            if (localStorage) {
                localStorage.setItem(\"threadTab\", \"all\");
            }

            app.appView.showLoader();
            tinyMCE.activeEditor.uploadImages(function(response) {
                app.appView.hideLoader();
                form.submit();
                \$('.uv-dropdown.reply').find('.uv-btn').attr('disabled', 'disabled');
            });
        }
    } else {
        form.find('.uv-element-block-textarea').append(\"<span class='uv-field-message'>";
        // line 2709
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html", null, true);
        yield "</span>\");
        if (formType == 'forward') {
            if (!form.find(\".to-list input.to\").length) {
                \$('.uv-element-block.to').append(\"<span class='uv-field-message'>";
        // line 2712
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html", null, true);
        yield "</span>\");
            }
        }
    }
},


                updateTicket: function(e) {
                    e.preventDefault();
                    this.model.set(\$('#edit-ticket-modal form').serializeObject());
                    if(this.model.isValid(['subject', 'reply'])) {
                        \$('#edit-ticket-modal form').find('.uv-btn').attr('disabled', 'disabled');
                        \$('#edit-ticket-modal form').submit();
                    }
                },
                showReplyQuote: function(e) {
                    Backbone.\$(e.currentTarget).next().toggle();
                },
                searchFilterXhr: _.debounce(function(e) {
                    currentElement = Backbone.\$(e.currentTarget);
                    var parent = currentElement.parent();
                    if(\$('.uv-dropdown-other.uv-dropdown-btn-active').parent().attr('id') != parent.attr('id'))
                        return;
                    parent.find(\"li:not(.uv-no-results, .uv-filter-info)\").remove();
                    parent.find(\".uv-filter-info\").show()
                    if(currentElement.val().length > 1) {
                        parent.append(this.loaderTemplate())
                        parent.find('.uv-filter-info').text(\"";
        // line 2739
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Searching", [], "messages");
        yield " ...\")
                        if(self.xhrReq)
                            self.xhrReq.abort();

                        self.xhrReq = \$.ajax({
                            url : \"";
        // line 2744
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_ticket_search_filter_options");
        yield "\",
                            type : 'GET',
                            data: {\"type\" : currentElement.attr('data-type'), \"query\": currentElement.val()},
                            dataType : 'json',
                            success : function(response) {
                                self.xhrReq = 0;
                                parent.find('.uv-loader').remove()
                                parent.find('.uv-filter-info').text(\"";
        // line 2751
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Type atleast 2 letters"), "html", null, true);
        yield "\").hide();
                                if(response.length == 0) {
                                    parent.find('.uv-no-results').show();
                                    parent.find('.uv-no-results').disabled = true;
                                } else {
                                    parent.find('.uv-no-results').hide();
                                    _.each(response, function(item) {
                                        parent.find('.uv-dropdown-list ul').append(\"<li data-id='\" + item.id + \"'>\" + item.name + \"</li>\")
                                    });
                                }
                            },
                            error: function (xhr) {
                                self.xhrReq = 0;
                                parent.find('.uv-loader').remove()
                                parent.find('.uv-no-results').hide();
                                parent.find('.uv-filter-info').text(\"";
        // line 2766
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Type atleast 2 letters"), "html", null, true);
        yield "\").show();

                                if(url = xhr.getResponseHeader('Location'))
                                    window.location = url;
                            }
                        });
                    } else {
                        parent.find('.uv-no-results').hide();
                    }
                },1000)
            });

            \$(document).ready(function () {
                 // Assume initialThread is already defined via Twig JSON embedding.
                 // Example: var initialThread = ";
        // line 2780
        yield ";
                var initialThread = ";
        // line 2781
        yield json_encode(($context["initialThread"] ?? null));
        yield ";
                 var ticketcustomfields = [];
                ";
        // line 2783
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["ticketcustomFields"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
            // line 2784
            yield "                    ticketcustomfields.push({
                        custom_field_id: \"";
            // line 2785
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["field"], "custom_field_id", [], "any", false, false, false, 2785), "js"), "html", null, true);
            yield "\",
                        value: \"";
            // line 2786
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["field"], "value", [], "any", false, false, false, 2786), "js"), "html", null, true);
            yield "\"
                    });
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['field'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 2789
        yield "
                  console.log(ticketcustomfields);
                 var customFieldsValue = ticketcustomfields; // Array of objects: [{ custom_field_id: 2, value: \"thamarai\" }, ...]
                \$(document).ready(function () {
                    \$('#initialcustomfields').find('input, select, textarea').each(function () {
                        var \$element = \$(this);
                        var nameAttr = \$element.attr('name');
                        // Use regex to extract the custom field ID.
                        var match = nameAttr.match(/customFields\\[(\\d+)\\]/);
    
                        if (match && match[1]) {
                            var fieldId = match[1];
        
                            // Find the matching custom field value from the array (convert both to string for safe comparison)
                            var matchingField = customFieldsValue.find(function (item) {
                                console.log(\"Comparing item.custom_field_id =\", JSON.stringify(item.custom_field_id), \"to fieldId =\", JSON.stringify(fieldId));
                                return String(item.custom_field_id) === fieldId; // Comparison for matching field ID
                            });
        
                            if (matchingField) {
                                // Show the matching field and hide others
                                \$element.closest('.uv-element-block').show(); // Ensure the matching field container is visible
                                \$element.closest('.uv-element-block').siblings().hide(); // Hide other fields within the same parent container
            
                                // Determine if the element is a checkbox or radio button
                                let isCheckbox = \$element.attr('type') === 'checkbox';
                                let isRadio = \$element.attr('type') === 'radio';

                                // For checkboxes and radios, apply the custom logic:
                                if (isCheckbox || isRadio) {
                                    // Convert matchingField.value if it is a string
                                    if (typeof matchingField.value === 'string') {
                                        try {
                                            matchingField.value = JSON.parse(matchingField.value); // Attempt to parse JSON string
                                        } catch (e) {
                                            if (isCheckbox && matchingField.value.includes(',')) {
                                                matchingField.value = matchingField.value.split(',').map(v => v.trim()); // Convert comma-separated values into an array
                                            }
                                        }
                                    }

                                    // Ensure checkboxes always have an array for multiple values
                                    if (isCheckbox && !Array.isArray(matchingField.value)) {
                                        matchingField.value = [matchingField.value]; // Convert single value to an array
                                    }

                                    // **For Checkboxes (Multiple Selections)**
                                    if (isCheckbox) {
                                        for (let i = 0; i < \$element.length; i++) {
                                            let currentValue = \$element.eq(i).attr('value');
                                            if (matchingField.value.includes(currentValue)) {
                                                \$element.eq(i).prop('checked', true);
                                            }
                                        }
                                    }
                                    // **For Radio Buttons (Single Selection)**
                                    else if (isRadio) {
                                        // Convert matchingField.value to string to ensure proper comparison
                                        if (Array.isArray(matchingField.value)) {
                                            matchingField.value = matchingField.value[0]; // Use the first value in the array if necessary
                                        }
                                        let fieldValueStr = String(matchingField.value); // Ensure comparison as a string

                                        for (let i = 0; i < \$element.length; i++) {
                                            let currentValue = \$element.eq(i).attr('value');

                                            if (currentValue === fieldValueStr) {
                                                \$element.eq(i).prop('checked', true); // Select the matching radio button
                                            } else {
                                                \$element.eq(i).prop('checked', false); // Uncheck others
                                            }
                                        }
                                    }
                                }
                                // For all other input types (text, select, textarea, etc.)
                                else {
                                    // Remove starting and ending double quotes if present.
                                    let val = matchingField.value;
                                    if (typeof val === 'string') {
                                        val = val.replace(/^\"|\"\$/g, ''); // Remove quotes around the value if present
                                    }
                                    \$element.val(val).trigger('input').trigger('change');
                                }
                            }
                            else {
                                // If no matching field, hide this element
                                \$element.closest('.uv-element-block').hide();
                            }
                        }
                    });
                });

            });



            // Ticket Thread View
            var ThreadItem = Backbone.View.extend({
                tagName : \"div\",
                className : \"uv-ticket-main\",
                template : _.template(\$(\"#thread_list_item_tmp\").html()),
                editThreadTemplate : _.template(\$(\"#edit_thread_tmp\").html()),
                events : {
                    'click .uv-thread-action .uv-dropdown-list li[data-action=\"delete\"]': 'confirmRemove',
                    'click .uv-thread-action .uv-dropdown-list li[data-action=\"lock\"]': 'lockAndUnlockThread',
                    'click .uv-thread-action .uv-dropdown-list li[data-action=\"pin\"]': 'pinThread',
                    'click .uv-thread-action .uv-dropdown-list li[data-action=\"mark\"]': 'markForTask',
                    'click .uv-thread-action .uv-dropdown-list li[data-action=\"forward\"]' : 'forwardThread',
                    'click .uv-thread-action .uv-dropdown-list li[data-action=\"edit\"]' : 'editThread',
                    'click .uv-btn.cancel-edit' : 'cancelEdit',
                    'click .uv-btn.saveThread' : 'updateThread',
                    'click .copy-thread-link' : 'copyThreadLink',
                    'blur .input-copy-thread-link': 'removeCopyThreadLink'
                },
               render: function () {
                            this.\$el.html(this.template(this.model.toJSON()));

                            this.\$el.addClass(\"thread-\" + this.model.id);

                            const dependentFields = this.model.attributes.typeid;
                            const \$dependentFields = this.\$el.find('.dependent'); // Limit the scope to the current thread element
                            const \$currentDependencies = this.\$el.find('.dependency' + dependentFields);
                            const customFields = this.model.attributes.customfields;


                            // Hide all dependent fields within this thread
                            \$dependentFields.hide();

                                    // Show only the dependent fields for the current type ID
                           \$currentDependencies.show();

                           // Delay binding to ensure the DOM is ready
                            setTimeout(() => {
                                customFields.forEach(field => {
                                    let nameAttribute;
                                    if (ticketModel.attributes.id && (this.model.id === null || this.model.id === \"\")) {
                                        // If this.model.id is not available, use ticketModel.attributes.id instead.
                                        nameAttribute = ticketModel.attributes.id + `customFields[\${field.custom_field_id}]`;
                                    } else {
                                        // Otherwise, use this.model.id
                                        nameAttribute = this.model.id + `customFields[\${field.custom_field_id}]`;
                                    }

                                    let element = this.\$el.find(`[name=\"\${nameAttribute}\"]`);
                                    if (element.length == 0) {
                                        element = this.\$el.find(`[name=\"\${nameAttribute}[]\"]`);
                                    }
                                    if (element.length > 0) {
                                        let isCheckbox = element.attr('type') === 'checkbox';
                                        let isRadio = element.attr('type') === 'radio';

                                        // Convert field.value if it is a string
                                        if (typeof field.value === 'string') {
                                            try {
                                                field.value = JSON.parse(field.value); // Attempt to parse JSON string
                                            } catch (e) {
                                                if (isCheckbox && field.value.includes(',')) {
                                                    field.value = field.value.split(',').map(v => v.trim()); // Convert comma-separated values into an array
                                                }
                                            }
                                        }

                                        // Ensure checkboxes always have an array for multiple values
                                        if (isCheckbox && !Array.isArray(field.value)) {
                                            field.value = [field.value]; // Convert single value to an array
                                        }

                                        // **For Checkboxes (Multiple Selections)**
                                        if (isCheckbox) {
                                            for (let i = 0; i < element.length; i++) {
                                                let currentValue = element.eq(i).attr('value');
                                                if (field.value.includes(currentValue)) {
                                                    element.eq(i).prop('checked', true);
                                                }
                                           element.eq(i).prop('disabled',true); }
                                        }

                                        // **For Radio Buttons (Single Selection)**
                                        else if (isRadio) {
                                            // Convert field.value to string to ensure proper comparison
                                            if (Array.isArray(field.value)) {
                                                field.value = field.value[0]; // Use the first value in the array if necessary
                                            }
                                            let fieldValueStr = String(field.value); // Ensure comparison as a string

                                            for (let i = 0; i < element.length; i++) {
                                                let currentValue = element.eq(i).attr('value');

                                                if (currentValue === fieldValueStr) {
                                                    element.eq(i).prop('checked', true); // Select the matching radio button
                                                } else {
                                                    element.eq(i).prop('checked', false); // Uncheck others
                                                }
                                            element.eq(i).prop('disabled',true);}
                                        }

                                        // **For Other Input Types (Text, Select, etc.)**
                                        else {
                                            element.val(field.value).trigger('input').trigger('change');
                                            element.prop('readonly', true); // Set as read-only
                                        }
                                    }

                                });
                            }, 0);

                            if (this.model.attributes.threadType == 'note') {
                                this.\$el.addClass('uv-ticket-note');
                            }

                            return this;
                        },

                unrender : function(response) {
                    if(response.alertMessage != undefined) {
                        var self = this;
                        ";
        // line 3006
        yield "                        threadCollection.models = threadCollection.models.filter(thread => {
                            if(thread.id == self.model.id) {
                                return false;
                            }

                            return true;
                        });
                        this.remove();
                        threadCollection.syncData();
                        app.appView.renderResponseAlert(response);
                    }
                },
                confirmRemove: function(e) {
                    app.appView.openConfirmModal(this);
                },
                removeItem : function() {
                    self = this;
                    var index = threadIds.indexOf(this.model.id);
                    if (index > -1)
                        threadIds.splice(index, 1);
                    app.appView.showLoader();
                    this.model.destroy({
                        url : \"";
        // line 3028
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_thread_xhr");
        yield "/\" + this.model.id,
                        data : { 'ticketId' : ticketModel.attributes.id },
                        success : function (model, response, options) {
                            app.appView.hideLoader();
                            self.unrender(response);
                        },
                        error: function (model, xhr, options) {
                            if(url = xhr.getResponseHeader('Location'))
                                window.location = url;
                            var response = warningResponse;
                            if(xhr.responseJSON)
                                response = xhr.responseJSON;

                            app.appView.hideLoader();
                            app.appView.renderResponseAlert(response);
                        }
                    });
                },
                lockAndUnlockThread :function(e) {
                    self = this;
                    currentElement = Backbone.\$(e.currentTarget);
                    var isLocked = 0;
                    if(this.model.get('isLocked')) {
                        this.model.set('isLocked', 0);
                        currentElement.attr('data-id', isLocked).text(\"";
        // line 3052
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Lock Thread"), "html", null, true);
        yield "\");
                    } else {
                        isLocked = 1;
                        this.model.set('isLocked', 1);
                        currentElement.attr('data-id', isLocked).text(\"";
        // line 3056
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Unlock Thread"), "html", null, true);
        yield "\");
                    }
                    app.appView.showLoader();
                    this.model.save({
                        isLocked: isLocked,
                        id: this.model.id,
                        ticketId: ticketModel.attributes.id,
                        updateType: 'lock'
                    }, {
                        patch: true,
                        url : \"";
        // line 3066
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_thread_xhr");
        yield "/\" + this.model.id,
                        success : function (model, response, options) {
                            self.toggleThreadPropertyIcon()
                            app.appView.hideLoader();
                            app.appView.renderResponseAlert(response);
                        },
                        error: function (model, xhr, options) {
                            if(url = xhr.getResponseHeader('Location'))
                                window.location = url;
                            var response = warningResponse;
                            if(xhr.responseJSON)
                                response = xhr.responseJSON;

                            app.appView.hideLoader();
                            app.appView.renderResponseAlert(response);
                        }
                    });
                },
                pinThread :function(e) {
                    self = this;
                    currentElement = Backbone.\$(e.currentTarget);
                    var bookmark = 0;
                    if(this.model.get('bookmark')) {
                        this.model.set('bookmark', 0);
                        currentElement.attr('data-id', bookmark).text(\"";
        // line 3090
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pin Thread"), "html", null, true);
        yield "\");
                    } else {
                        bookmark = 1;
                        this.model.set('bookmark', 1);
                        currentElement.attr('data-id', bookmark).text(\"";
        // line 3094
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Unpin Thread"), "html", null, true);
        yield "\");
                    }
                    app.appView.showLoader();
                    this.model.save({
                        bookmark: bookmark,
                        id: this.model.id,
                        ticketId: ticketModel.attributes.id,
                        updateType: 'bookmark'
                    }, {
                        patch: true,
                        url : \"";
        // line 3104
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_thread_xhr");
        yield "/\" + this.model.id,
                        success : function (model, response, options) {
                            self.toggleThreadPropertyIcon()
                            app.appView.hideLoader();
                            app.appView.renderResponseAlert(response);
                        },
                        error: function (model, xhr, options) {
                            if(url = xhr.getResponseHeader('Location'))
                                window.location = url;
                            var response = warningResponse;
                            if(xhr.responseJSON)
                                response = xhr.responseJSON;

                            app.appView.hideLoader();
                            app.appView.renderResponseAlert(response);
                        }
                    });
                },
                forwardThread : function(e) {
                    var element = Backbone.\$(e.currentTarget);
                    tinymce.get('forward-area').setContent(this.model.attributes.reply);
                    \$('#forward-area').parent().find('img').removeAttr('crossorigin');
                    \$(\".uv-tabs li[for='forward']\").trigger('click');

                    \$('.uv-ticket-scroll-region').animate({
                        scrollTop: \$('#default').outerHeight()
                    }, 'slow');
                },
                cancelEdit : function(e) {
                    this.initEditThread();
                    tinymce.get('uv-edit-thread').destroy()
                },
                editThread : function(e) {
                    this.\$el.find('.thread-edit-container .cancel-edit').trigger('click');
                    this.initEditThread();
                    this.\$el.find('.message').hide().after(this.editThreadTemplate());
                    this.\$el.find('.uv-ticket-uploads').hide()

                    InitTinyMce('#uv-edit-thread');
                    tinymce.get('uv-edit-thread').setContent(this.model.attributes.reply);
                    const dependentFields = this.model.attributes.typeid;
                    const customFields = this.model.attributes.customfields;
                    this.\$el.find('.dependent').hide();
                    this.\$el.find('.dependency' + dependentFields).show();
                     // Delay binding to ensure the DOM is ready
                            setTimeout(() => {
                                customFields.forEach(field => {
                                    let nameAttribute = `customFields[\${field.custom_field_id}]`;
                                    let element = this.\$el.find(`[name=\"\${nameAttribute}\"]`);
                                    
                                    if (element.length == 0) {
                                        element = this.\$el.find(`[name=\"\${nameAttribute}[]\"]`);
                                    }

                                    if (element.length > 0) {
                                        let isCheckbox = element.attr('type') === 'checkbox';
                                        let isRadio = element.attr('type') === 'radio';

                                        // Convert field.value if it is a string
                                        if (typeof field.value === 'string') {
                                            try {
                                                field.value = JSON.parse(field.value); // Attempt to parse JSON string
                                            } catch (e) {
                                                if (isCheckbox && field.value.includes(',')) {
                                                    field.value = field.value.split(',').map(v => v.trim()); // Convert comma-separated values into an array
                                                }
                                            }
                                        }

                                        // Ensure checkboxes always have an array for multiple values
                                        if (isCheckbox && !Array.isArray(field.value)) {
                                            field.value = [field.value]; // Convert single value to an array
                                        }

                                        // **For Checkboxes (Multiple Selections)**
                                        if (isCheckbox) {
                                            for (let i = 0; i < element.length; i++) {
                                                let currentValue = element.eq(i).attr('value');
                                                if (field.value.includes(currentValue)) {
                                                    element.eq(i).prop('checked', true);
                                                }
                                            }
                                        }

                                        // **For Radio Buttons (Single Selection)**
                                        else if (isRadio) {
                                            // Convert field.value to string to ensure proper comparison
                                            if (Array.isArray(field.value)) {
                                                field.value = field.value[0]; // Use the first value in the array if necessary
                                            }
                                            let fieldValueStr = String(field.value); // Ensure comparison as a string

                                            for (let i = 0; i < element.length; i++) {
                                                let currentValue = element.eq(i).attr('value');

                                                if (currentValue === fieldValueStr) {
                                                    element.eq(i).prop('checked', true); // Select the matching radio button
                                                } else {
                                                    element.eq(i).prop('checked', false); // Uncheck others
                                                }
                                            }
                                        }

                                        // **For Other Input Types (Text, Select, etc.)**
                                        else {
                                            element.val(field.value).trigger('input').trigger('change');
                                            //element.prop('readonly', true); // Set as read-only
                                        }
                                    }
                                });
                            }, 0);
                    this.\$el.find('img').removeAttr('crossorigin');
                },
                initEditThread: function() {
                    \$('.thread-edit-container').remove();
                    messageElement = this.\$el.find('.message');
                    messageElement.show();
                    this.\$el.find('.uv-ticket-uploads').show()
                },
                updateThread : function(e) {
                    e.preventDefault();
                    var currentElement = Backbone.\$(e.currentTarget);
                    parent = currentElement.parents('.thread-edit-container')
                    parent.find('.uv-field-message').remove()

                    var fieldsArray = [];

                    parent.find('input.uv-field').each(function() {
                        var fieldName = \$(this).attr('name');
                        var match = fieldName.match(/\\[([0-9]+)\\]/); // Extract the number inside the square brackets

                        if (match) {
                            var fieldId = match[1]; // Get the number (e.g., \"1\")
                            var fieldValue = \$(this).val();
        
                            fieldsArray.push({ id: fieldId, value: fieldValue });
                        }
                    });

                    var Checkboxarray = [];

                   parent.find('input:checkbox').each(function() {
                        var fieldName = \$(this).attr('name');
                       let element = parent.find(`[name=\"\${fieldName}\"]`);
                       if (Checkboxarray.indexOf(fieldName) == -1) {
                           Checkboxarray.push(fieldName);
                       }
                       else {
                           return ;
                       }
                        var match = fieldName.match(/\\[([0-9]+)\\]/); // Extract the number inside the square brackets

                        if (match) {
                            var fieldId = match[1]; // Get the number (e.g., \"1\")
                            let selectedValues = [];

                            element.each(function () {
                                if (\$(this).is(':checked')) { // Correct way to check if checked
                                    selectedValues.push(\$(this).val());
                                }
                            });

                            if (selectedValues.length > 0) {
                                fieldsArray.push({ id: fieldId, value: selectedValues });
                            }
                        }
                    });

                    parent.find('input:Radio').each(function() {
                        var fieldName = \$(this).attr('name');
                       let element = parent.find(`[name=\"\${fieldName}\"]`);
                       
                        var match = fieldName.match(/\\[([0-9]+)\\]/); // Extract the number inside the square brackets

                        if (match) {
                            var fieldId = match[1]; // Get the number (e.g., \"1\")
                            let selectedValues = [];

                            element.each(function () {
                                if (\$(this).is(':checked')) { // Correct way to check if checked
                                    selectedValues.push(\$(this).val());
                                }
                            });

                            if (selectedValues.length > 0) {
                                fieldsArray.push({ id: fieldId, value: selectedValues });
                            }
                        }
                    });

                     if (Array.isArray(this.model.attributes.customfields)) {
                        fieldsArray.forEach((field) => {
                            this.model.attributes.customfields.forEach((customField) => {
                                if (customField.custom_field_id == parseInt(field.id)) {
                                    customField.value = field.value;
                                }
                            });
                        });
                    } 

  

                    var html = tinyMCE.get(\"uv-edit-thread\").getContent();
                    if(app.appView.stripHTML(html) != '') {
                        var self = this;
                        currentElement.attr(\"disabled\", \"disabled\");
                        this.model.set('reply', html);
                        app.appView.showLoader()
                        this.model.save({}, {
                            url : \"";
        // line 3313
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_thread_update_xhr");
        yield "/\" + this.model.id,
                            success : function (model, response, options) {
                                app.appView.hideLoader()
                                messageElement = self.\$el.find('.message');
                                if(response.alertClass == 'success') {
                                    messageElement.html(self.model.attributes.reply).show();
                                    messageElement.find('.uv-icon-ellipsis').remove();
                                    messageElement.find('.helpdesk_blockquote').eq(0).before(\"<span class='uv-icon-ellipsis uv-ellipsis-mirror'></span>\").hide();
                                     const dependentFields = self.model.attributes.typeid;
                            const \$dependentFields = self.\$el.find('.dependent'); // Limit the scope to the current thread element
                            const \$currentDependencies = self.\$el.find('.dependency' + dependentFields);
                            const customFields = self.model.attributes.customfields;


                            // Hide all dependent fields within this thread
                            \$dependentFields.hide();

                                    // Show only the dependent fields for the current type ID
                           \$currentDependencies.show();

                           // Delay binding to ensure the DOM is ready
                            setTimeout(() => {
                                customFields.forEach(field => {
                                    let nameAttribute = `customFields[\${field.custom_field_id}]`;
                                    let element = self.\$el.find(`[name=\"\${nameAttribute}\"]`);

                                    if (element.length > 0) {
                                        element.val(field.value);
                                        element.trigger('input').trigger('change');
                                        element.prop('readonly', true); // Set the field as read-only
                                    }
                                });
                            }, 0);
                                }

                                self.initEditThread();
                                tinymce.get('uv-edit-thread').destroy()
                                app.appView.renderResponseAlert(response);
                                window.location.reload();
                            },
                            error: function (model, xhr, options) {
                                self.initEditThread();
                                tinymce.get('uv-edit-thread').destroy()
                                if(url = xhr.getResponseHeader('Location'))
                                    window.location = url;
                                var response = warningResponse;
                                if(xhr.responseJSON)
                                    response = xhr.responseJSON;
                                app.appView.hideLoader()
                                app.appView.renderResponseAlert(response);
                            }
                        });
                    } else {
                        this.\$el.find('.uv-element-block-textarea').append(\"<span class='uv-field-message'>";
        // line 3366
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html", null, true);
        yield "</span>\");
                    }
                },
                toggleCreateTaskBar : function() {
                    if(threadIds.length) {
                        \$(\"#uv-task-view\").css('right', '0px');
                        \$(\"#uv-task-view .uv-create-task\").show()
                        \$(\"#uv-task-view .uv-task-list\").hide()
                    } else {
                        \$(\"#uv-task-view\").css('right', '-300px');
                        \$(\"#uv-task-view .uv-create-task\").hide()
                        \$(\"#uv-task-view .uv-task-list\").show()
                    }
                },
                copyThreadLink: function(e){
                    _.delay(function(){
                        \$(e.currentTarget).before('<input type=\"text\" class=\"input-copy-thread-link uv-field\" value=\"' + window.location.href + '\"/>');
                        \$(e.currentTarget).prev().focus().select();
                    }, 100);
                },
                removeCopyThreadLink: function(e){
                    \$(e.currentTarget).remove();
                },
                toggleThreadPropertyIcon: function(e) {
                    if(jQuery.inArray(this.model.id, threadIds) !== -1 || this.model.get('bookmark') || this.model.get('isLocked')) {
                        this.\$el.find('.uv-icon-pinned').parents('.uv-ticket-strip').show()
                    } else {
                        this.\$el.find('.uv-icon-pinned').parents('.uv-ticket-strip').hide()
                    }

                    if(jQuery.inArray(this.model.id, threadIds) !== -1)
                        this.\$el.find('.uv-icon-marked-task').parent().show()
                    else
                        this.\$el.find('.uv-icon-marked-task').parent().hide()

                    if(this.model.get('bookmark'))
                        this.\$el.find('.uv-icon-pinned').parent().show()
                    else
                        this.\$el.find('.uv-icon-pinned').parent().hide()

                    if(this.model.get('isLocked'))
                        this.\$el.find('.uv-icon-locked').parent().show()
                    else
                        this.\$el.find('.uv-icon-locked').parent().hide()
                }
            });

            // Ticket Thread List
            var ThreadList = Backbone.View.extend({
                el : \$(\".thread-list\"),
                initialize : function() {
                    this.listenTo(threadCollection.fullCollection, \"add\", this.renderThread);
                },
                renderThread : function (item) {
                    var threadItem = new ThreadItem({
                        model: item
                    });
                    if(item.id < threadCollection.fullCollection.at(0).id)
                        this.\$el.prepend(threadItem.render().el);
                    else
                        this.\$el.append(threadItem.render().el);
                    threadItem.\$el.find('.helpdesk_blockquote').eq(0).before(\"<span class='uv-icon-ellipsis uv-ellipsis-mirror'></span>\").hide();
                    //emojifyRun();
                    this.\$el.find('img').removeAttr('crossorigin');
                    this.\$el.find('div.message a').attr('target', '_blank');
                    app.appView.relativeTime();
                }
            });

            // Ticket Pagination View
            var Pagination = Backbone.View.extend({
                el: \$('.uv-ticket-accordion'),
                events: {
                    'click .uv-ticket-count-stat': 'loadMore',
                },
                renderPagination: function(pagination) {
                    if(pagination.totalCount - pagination.lastItemNumber > 0 && pagination.lastItemNumber > 0) {
                        var remain = pagination.totalCount - pagination.lastItemNumber;
                        \$('.uv-ticket-count-stat').text(remain)
                        \$('.uv-ticket-accordion').removeClass('uv-ticket-accordion-expanded').removeClass('uv-ticket-accordion-no-count')
                    } else {
                        \$('.uv-ticket-accordion').addClass('uv-ticket-accordion-expanded').addClass('uv-ticket-accordion-no-count')
                    }
                },
                loadMore: function() {
                    threadCollection.syncData();
                }
            });

            // Ticket collaborator Item View
            var CollaboratorItem = Backbone.View.extend({
                tagName : \"a\",
                className: 'uv-btn-tag',
                template : _.template(\"";
        // line 3459
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_DELETE_COLLABORATOR_FROM_TICKET"], "method", false, false, false, 3459)) {
            yield "<span class='uv-tag'><span class='uv-icon-remove-dark-before'></span><%- name %></span>";
        } else {
            yield "<span class='uv-tag-delete'><%- name %></span>";
        }
        yield "\"),
                events : {
                    'click .uv-tag' : 'confirmRemove'
                },
                render : function () {
                    this.\$el.html(this.template(this.model.toJSON()));
                    return this;
                },
                unrender : function(response) {
                    if(response.alertMessage != undefined) {
                        app.appView.renderResponseAlert(response);
                    }
                },
                removeItem: function() {
                    ";
        // line 3473
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_ADD_COLLABORATOR_TO_TICKET"], "method", false, false, false, 3473)) {
            // line 3474
            yield "                        self = this;
                        app.appView.showLoader();
                        this.model.destroy({
                            data : { 'ticketId' : this.model.attributes.ticketId },
                            success : function (model, response, options) {
                                app.appView.hideLoader();
                                self.\$el.remove();
                                self.unrender(response);
                            },
                            error: function (model, xhr, options) {
                                if(url = xhr.getResponseHeader('Location'))
                                    window.location = url;
                                var response = warningResponse;
                                if(xhr.responseJSON)
                                    response = xhr.responseJSON;

                                app.appView.hideLoader();
                                app.appView.renderResponseAlert(response);
                            }
                        });
                    ";
        }
        // line 3495
        yield "                },
                confirmRemove: function(e) {
                    e.preventDefault();
                    ";
        // line 3498
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_ADD_COLLABORATOR_TO_TICKET"], "method", false, false, false, 3498)) {
            // line 3499
            yield "                        app.appView.openConfirmModal(this);
                    ";
        }
        // line 3501
        yield "                }
            });

            // Ticket Collaborator View
            var CollaboratorList = Backbone.View.extend({
                el : \$(\".collaborator-list-block\"),
                events : {
                    'keypress .uv-field' : 'addCollaborator',
                    'focusout .uv-field' : 'removeErrorClass'
                },
                initialize : function() {
                    //Backbone.Validation.bind(this);
                },
                render : function() {
                    this.\$el.find(\".collaborator-list\").html('');
                    var self = this;
                    collaboratorOptionHtml = '';

                    if(collaboratorCollection.length) {
                        _.each(collaboratorCollection.models, function (item) {
                            this.renderCollaborator(item);
                        }, this);
                    }
                    ticketView.addCCCollaborators()
                },
                renderCollaborator : function (item) {
                    var collaborator = new CollaboratorItem({
                        model: item
                    });
                    this.\$el.find('.collaborator-list').append(collaborator.render().el);
                },
                removeErrorClass: function(e) {
                    var inputElement = Backbone.\$(e.currentTarget);
                    inputElement.removeClass('uv-field-error');
                    inputElement.parents('.uv-element-block').find('.uv-field-message').remove()
                },
                addCollaborator : function(e) {
                    ";
        // line 3538
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_ADD_COLLABORATOR_TO_TICKET"], "method", false, false, false, 3538)) {
            // line 3539
            yield "                        var inputElement = Backbone.\$(e.currentTarget);
                        inputElement.removeClass('uv-field-error');
                        inputElement.parents('.uv-element-block').find('.uv-field-message').remove()
                        var text = inputElement.val().trim();

                        if (e.which === 13 && text) {
                            this.model = new CollaboratorModel();
                            self = this;
                            this.model.set({email: text})

                            if(this.model.isValid(true)) {
                                app.appView.showLoader();
                                this.model.save({},{
                                    success : function (model, response, options) {
                                        inputElement.val('');
                                        if(response.alertClass == \"success\") {
                                            collaboratorCollection.add(model);
                                        }
                                        self.render();
                                        app.appView.hideLoader();
                                        app.appView.renderResponseAlert(response);
                                    },
                                    error: function (model, xhr, options) {
                                        if(url = xhr.getResponseHeader('Location'))
                                            window.location = url;
                                        var response = warningResponse;
                                        if(xhr.responseJSON)
                                            response = xhr.responseJSON;

                                        app.appView.hideLoader();
                                        app.appView.renderResponseAlert(response);
                                    }
                                });
                            } else {
                                inputElement.addClass('uv-field-error');
                                if(text)
                                    inputElement.parents('.uv-element-block').append(\"<span class='uv-field-message'>";
            // line 3575
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email address is invalid"), "html", null, true);
            yield "</span>\");
                            }
                        }
                    ";
        }
        // line 3579
        yield "                }
            });
            
            // Ticket Due Date
            var DueDateView = Backbone.View.extend({
                el: \$(\".due-date-block\"),
                events: {
                    'change .uv-date-picker': 'updateDueDate',
                },
                updateDueDate: function(e) {
                    var inputElement = Backbone.\$(e.currentTarget);
                    var newDueDate = inputElement.val().trim();
                    var ticketId = ";
        // line 3591
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 3591), "html", null, true);
        yield ";
                
                    console.log(\"Ticket ID:\", ticketId);
                    console.log(\"New Due Date:\", newDueDate);
            
                    if (!newDueDate || !ticketId) {
                        return;
                    }
            
                    // Create a model instance for the ticket
                    var ticketModel = new DueDateModel({
                        ticketId: ticketId, // Use the correct ticket ID
                        dueDate: newDueDate
                    });
            
                    ticketModel.save({}, {
                        success: function (ticketModel, response, options) {
                            console.log(\"Server Response:\", response);
                        },
                        //error: function(ticketModel, xhr) {
                        //    console.error(\"Error response:\", xhr.responseText);
                        //    alert('Error updating due date. Status: ' + xhr.status + ' - ' + xhr.statusText);
                        //}
                    });
                }
            });
            
            \$(document).ready(function() {
                var dueDateView = new DueDateView();
            });

            // Ticket Tag Item View
            var TagItem = Backbone.View.extend({
                tagName : \"a\",
                className : \"uv-btn-tag\",
                template : _.template(\"<span class='uv-tag'>";
        // line 3626
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_DELETE_TAG"], "method", false, false, false, 3626)) {
            yield "<span class='uv-icon-remove-dark-before'></span>";
        }
        yield "<%- name %></span>\"),
                events : {
                    'click .uv-tag' : \"confirmRemove\"
                },
                render : function () {
                    this.\$el.html(this.template(this.model.toJSON()));
                    return this;
                },
                unrender : function(response) {
                    if(response.alertMessage != undefined) {
                        tagListView.render();
                        app.appView.renderResponseAlert(response);
                    }
                },
                removeItem : function () {
                    ";
        // line 3641
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_DELETE_TAG"], "method", false, false, false, 3641)) {
            // line 3642
            yield "                    self = this;
                    app.appView.showLoader();
                    this.model.destroy({
                        data : { 'ticketId' : ticketModel.id } ,
                        success : function (model, response, options) {
                            app.appView.hideLoader();
                            self.\$el.remove();
                            self.unrender(response);
                        },
                        error: function (model, xhr, options) {
                            if(url = xhr.getResponseHeader('Location'))
                                window.location = url;
                            var response = warningResponse;
                            if(xhr.responseJSON)
                                response = xhr.responseJSON;

                            app.appView.hideLoader();
                            app.appView.renderResponseAlert(response);
                        }
                    });
                    ";
        }
        // line 3663
        yield "                },
                confirmRemove: function(e) {
                    e.preventDefault();
                    ";
        // line 3666
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_DELETE_TAG"], "method", false, false, false, 3666)) {
            // line 3667
            yield "                    app.appView.openConfirmModal(this)
                    ";
        }
        // line 3669
        yield "                }
            });

            // Ticket Tag View
            var TagList = Backbone.View.extend({
                el : \$(\".tag-list-block\"),
                events : {
                    'keypress .uv-field' : 'addTag',
                    'focusout .uv-field' : 'removeErrorClass',
                    'click .uv-dropdown-list li': 'addTag'
                },
                render : function() {
                    var self = this;
                    this.\$el.find(\".tag-list\").html('');
                    if(tagCollection.length) {
                        _.each(tagCollection.models, function (item) {
                            this.renderTag(item);
                        }, this);
                    }
                },
                renderTag : function (item) {
                    var tag = new TagItem({
                        model: item
                    });
                    this.\$el.find('.tag-list').append(tag.render().el);
                },
                addTag : function(e) {
                    ";
        // line 3696
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["user_service"] ?? null), "isAccessAuthorized", ["ROLE_AGENT_ADD_TAG"], "method", false, false, false, 3696)) {
            // line 3697
            yield "                        var currentElement = Backbone.\$(e.currentTarget);
                        if(currentElement.is('li')) {
                            var inputElement = currentElement.parents('.uv-field-block').find('.uv-dropdown-other');
                            var text = currentElement.text().trim();
                        } else {
                            var inputElement = currentElement;
                            var text = inputElement.val().trim();
                        }
                        inputElement.removeClass('uv-field-error');
                        inputElement.parents('.uv-element-block').find('.uv-field-message').remove()

                        if (currentElement.is('li') || (e.which === 13 && text)) {
                            if(text.length <= 20) {
                                if(tagCollection.isTagExist(text)) {
                                    var self = this;
                                    inputElement.val('');
                                    this.model = new TagModel();
                                    this.model.set({name:text});
                                    self = this;

                                    app.appView.showLoader();
                                    this.model.save({}, {
                                        success: function (model, response, options) {
                                            inputElement.parent().find(\"li:not(.uv-no-results)\").remove()
                                            inputElement.parent().find(\".uv-no-results\").show()
                                            if(!currentElement.is('li')) {
                                                inputElement.trigger('click')
                                            }
                                            if(response.alertClass == \"success\") {
                                                tagCollection.add(model);
                                                self.render();
                                            }

                                            app.appView.hideLoader();
                                            app.appView.renderResponseAlert(response);
                                        },
                                        error: function (model, xhr, options) {
                                            if(url = xhr.getResponseHeader('Location'))
                                                window.location = url;
                                            var response = warningResponse;
                                            if(xhr.responseJSON)
                                                response = xhr.responseJSON;

                                            app.appView.hideLoader();
                                            app.appView.renderResponseAlert(response);
                                        }
                                    });
                                } else {
                                    inputElement.addClass('uv-field-error');
                                    inputElement.parents('.uv-element-block').append(\"<span class='uv-field-message'>";
            // line 3746
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tag with same name already exist"), "html", null, true);
            yield "</span>\");
                                }
                            } else {
                                inputElement.addClass('uv-field-error');
                                inputElement.parents('.uv-element-block').append(\"<span class='uv-field-message'>";
            // line 3750
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Text length should be less than 20 charactors"), "html", null, true);
            yield "</span>\");
                            }
                        }
                    ";
        }
        // line 3754
        yield "                },
                removeErrorClass: function(e) {
                    var inputElement = Backbone.\$(e.currentTarget);
                    inputElement.removeClass('uv-field-error');
                    inputElement.parents('.uv-element-block').find('.uv-field-message').remove()
                },
            });

            // Ticket Label Item View
            var LabelItem = Backbone.View.extend({
                tagName : \"a\",
                className : \"uv-btn-label\",
                template : _.template(\"<span class='uv-tag'><span class='uv-icon-remove-before'></span><%- name %></span>\"),
                events : {
                    'click .uv-tag' : \"confirmRemove\"
                },
                render : function () {
                    this.\$el.html(this.template(this.model.toJSON()));
                    return this;
                },
                unrender : function(response) {
                    if(response.alertMessage != undefined) {
                        labelListView.render();
                        app.appView.renderResponseAlert(response);
                    }
                },
                removeItem : function () {
                    self = this;
                    app.appView.showLoader();

                    this.model.destroy({
                        url : \"";
        // line 3785
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_update_ticket_attributes_xhr");
        yield "\",
                        data : { attribute :'label', 'ticketId': ticketModel.id, 'labelId': this.model.get('id') },
                        success : function (model, response, options) {
                            app.appView.hideLoader();
                            self.\$el.remove();
                            self.unrender(response);
                        },
                        error: function (model, xhr, options) {
                            if(url = xhr.getResponseHeader('Location'))
                                window.location = url;
                            var response = warningResponse;
                            if(xhr.responseJSON)
                                response = xhr.responseJSON;

                            app.appView.hideLoader();
                            app.appView.renderResponseAlert(response);
                        }
                    });
                },
                confirmRemove: function(e) {
                    e.preventDefault();
                    app.appView.openConfirmModal(this)
                }
            });

            // Ticket Label View
            var LabelList = Backbone.View.extend({
                el : \$(\".label-list-block\"),
                events : {
                    'keypress .uv-field' : 'addLabel',
                    'focusout .uv-field' : 'removeErrorClass',
                    'click .uv-dropdown-list li': 'addLabel'
                },
                render : function() {
                    var self = this;
                    this.\$el.find(\".label-list\").html('');
                    if(labelCollection.length) {
                        _.each(labelCollection.models, function (item) {
                            this.renderLabel(item);
                        }, this);
                    }
                },
                renderLabel : function (item) {
                    var label = new LabelItem({
                        model: item
                    });
                    lavelItem = label.render().el;
                    \$(lavelItem).attr('style', 'background:' + item.attributes.color)
                    this.\$el.find('.label-list').append(lavelItem);
                },
                addLabel : function(e) {
                    var currentElement = Backbone.\$(e.currentTarget);
                    if(currentElement.is('li')) {
                        var inputElement = currentElement.parents('.uv-field-block').find('.uv-dropdown-other');
                        var text = currentElement.text().trim();
                    } else {
                        var inputElement = currentElement;
                        var text = inputElement.val().trim();
                    }
                    inputElement.removeClass('uv-field-error');
                    inputElement.parents('.uv-element-block').find('.uv-field-message').remove()

                    if (currentElement.is('li') || (e.which === 13 && text)) {
                        if(text.length <= 20) {
                            if(labelCollection.isLabelExist(text)) {
                                var self = this;
                                inputElement.val('');
                                this.model = new LabelModel();
                                this.model.set({name:text});
                                self = this;

                                app.appView.showLoader();
                                this.model.save({}, {
                                    success: function (model, response, options) {
                                        inputElement.parent().find(\"li:not(.uv-no-results)\").remove()
                                        inputElement.parent().find(\".uv-no-results\").show()
                                        if(!currentElement.is('li')) {
                                            inputElement.trigger('click')
                                        }
                                        if(response.alertClass == \"success\") {
                                            labelCollection.add(model);
                                            self.render();
                                        }

                                        app.appView.hideLoader();
                                        app.appView.renderResponseAlert(response);
                                    },
                                    error: function (model, xhr, options) {
                                        if(url = xhr.getResponseHeader('Location'))
                                            window.location = url;
                                        var response = warningResponse;
                                        if(xhr.responseJSON)
                                            response = xhr.responseJSON;

                                        app.appView.hideLoader();
                                        app.appView.renderResponseAlert(response);
                                    }
                                });
                            } else {
                                inputElement.addClass('uv-field-error');
                                inputElement.parents('.uv-element-block').append(\"<span class='uv-field-message'>";
        // line 3885
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Label with same name already exist"), "html", null, true);
        yield "</span>\");
                            }
                        } else {
                            inputElement.addClass('uv-field-error');
                            inputElement.parents('.uv-element-block').append(\"<span class='uv-field-message'>";
        // line 3889
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Text length should be less than 20 charactors"), "html", null, true);
        yield "</span>\");
                        }
                    }
                },
                removeErrorClass: function(e) {
                    var inputElement = Backbone.\$(e.currentTarget);
                    inputElement.removeClass('uv-field-error');
                    inputElement.parents('.uv-element-block').find('.uv-field-message').remove()
                },
            });

            // Ticket Router
            var Router = Backbone.Router.extend({
                routes: {
                    'thread/:thread' : 'threadRequestedId'
                },
                threadRequestedId: function(thread){
                    threadCollection.threadRequestedId = thread;
                },
                scrollPage : function(divId) {
                    if(\$(divId).length){
                        \$('li a[href=\"'+divId+'\"]').trigger('click');
                        \$('.uv-ticket-scroll-region').animate({
                            scrollTop: \$(divId).offset().top
                        }, 'slow');
                    } else if(divId == '#') { //scroll to last thread added
                        if(threadCollection.fullCollection.length)
                            this.scrollPage('#thread' + threadCollection.fullCollection.at(0).id);
                    }
                }
            });

            var customerForm = new CustomerForm({
                el : \$(\".uv-main-info-update-block\"),
                model : new CustomerModel()
            });

            var ticketNavigation = \$.parseJSON('";
        // line 3926
        yield json_encode(($context["ticketNavigationIteration"] ?? null));
        yield "');

            var ticketModel = new TicketModel({
                id : \"";
        // line 3929
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 3929), "html", null, true);
        yield "\",
                status : \"";
        // line 3930
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "status", [], "any", false, false, false, 3930), "id", [], "any", false, false, false, 3930), "html", null, true);
        yield "\",
                priority : \"";
        // line 3931
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "priority", [], "any", false, false, false, 3931), "id", [], "any", false, false, false, 3931), "html", null, true);
        yield "\",
                group : \"";
        // line 3932
        ((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportGroup", [], "any", false, false, false, 3932)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportGroup", [], "any", false, false, false, 3932), "id", [], "any", false, false, false, 3932), "html", null, true)) : (yield ""));
        yield "\",
                subGroup : \"";
        // line 3933
        ((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportTeam", [], "any", false, false, false, 3933)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportTeam", [], "any", false, false, false, 3933), "id", [], "any", false, false, false, 3933), "html", null, true)) : (yield ""));
        yield "\",
                agent : \"\",
                profileImage : \"\",
                isTrashed : \"";
        // line 3936
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "isTrashed", [], "any", false, false, false, 3936), "html", null, true);
        yield "\"
            });

            ticketApp.ticketView = ticketView = new TicketView({
                model: ticketModel
            });

            uvdesk.ticket.model = ticketModel;

            threadCollection = new ThreadCollection();
            var threadList = new ThreadList();
            var pagination = new Pagination();

            var collaboratorCollection = new CollaboratorCollection(\$.parseJSON('";
        // line 3949
        yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket_service"] ?? null), "getTicketCollaborators", [CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 3949)], "method", false, false, false, 3949));
        yield "'));
            var collaboratorList = new CollaboratorList();
            collaboratorList.render();

            var tagCollection = new TagCollection(\$.parseJSON('";
        // line 3953
        yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket_service"] ?? null), "getTicketTagsById", [CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 3953)], "method", false, false, false, 3953));
        yield "'));
            var tagListView = new TagList();
            tagListView.render();

            var labelCollection = new LabelCollection(\$.parseJSON('";
        // line 3957
        yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket_service"] ?? null), "getTicketLabels", [CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 3957)], "method", false, false, false, 3957));
        yield "'));
            var labelListView = new LabelList();
            labelListView.render();

            var router = new Router();
            Backbone.history.start({push_state:true});

            threadCollection.syncData();
        });
    </script>

    <script>
        var sfTinyMceNew = \$.extend({}, sfTinyMce);
        var toolbarOptions = sfTinyMce.options.toolbar;

        sfTinyMce.init({
            selector : '.uv-ticket-reply textarea',
            toolbar: toolbarOptions + ' | translate',
            mentions : getMentions(),
            images_upload_url: \"\",
            setup: function(editor) {
                editor.on('keydown', function(e) { /** for pageup, pagedown keys **/
                    if(e.keyCode == 34 || e.keyCode == 33){
                        e.preventDefault();
                    }
                });
                addTranslateButton(editor);
            }
        });

        function InitTinyMce(selector) {
            let sfTinyMceNew2 = \$.extend({}, sfTinyMceNew);
            sfTinyMceNew2.init({
                selector : selector,
                mentions : getMentions(),
                setup: function(editor) {
                    addTranslateButton(editor);
                }
            });
        }

        function getMentions(){
            return {
                delimiter: ['#'],
                items: 15,
                source: function(){
                    return [
                        {
                            name : \"";
        // line 4005
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ticket Id"), "html", null, true);
        yield "\",
                            value : \"";
        // line 4006
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "id", [], "any", false, false, false, 4006), "html", null, true);
        yield "\",
                        },
                        {
                            name : \"";
        // line 4009
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Subject"), "html", null, true);
        yield "\",
                            value : \"";
        // line 4010
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace(CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "subject", [], "any", false, false, false, 4010), ["
" => " ", "
" => " "]), "html", null, true);
        yield "\",
                        },
                        {
                            name : \"";
        // line 4013
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Status"), "html", null, true);
        yield "\",
                            value : \"";
        // line 4014
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "status", [], "any", false, false, false, 4014), "description", [], "any", false, false, false, 4014), "html", null, true);
        yield "\",
                        },
                        {
                            name : \"";
        // line 4017
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Priority"), "html", null, true);
        yield "\",
                            value : \"";
        // line 4018
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "priority", [], "any", false, false, false, 4018), "description", [], "any", false, false, false, 4018)), "html", null, true);
        yield "\",
                        },
                        {
                            name : \"";
        // line 4021
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Type"), "html", null, true);
        yield "\",
                            value : \"";
        // line 4022
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 4022)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "type", [], "any", false, false, false, 4022), "description", [], "any", false, false, false, 4022)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
        yield "\",
                        },
                        {
                            name : \"";
        // line 4025
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Group"), "html", null, true);
        yield "\",
                            value : \"";
        // line 4026
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportGroup", [], "any", false, false, false, 4026)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportGroup", [], "any", false, false, false, 4026), "description", [], "any", false, false, false, 4026)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
        yield "\",
                        },
                        {
                            name : \"";
        // line 4029
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Team"), "html", null, true);
        yield "\",
                            value : \"";
        // line 4030
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportTeam", [], "any", false, false, false, 4030)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ticket"] ?? null), "supportTeam", [], "any", false, false, false, 4030), "description", [], "any", false, false, false, 4030)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
        yield "\",
                        },
                        {
                            name : \"";
        // line 4033
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Customer Name"), "html", null, true);
        yield "\",
                            value : \"";
        // line 4034
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "name", [], "any", false, false, false, 4034), "html", null, true);
        yield "\",
                        },
                        {
                            name : \"";
        // line 4037
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Customer Email"), "html", null, true);
        yield "\",
                            value : \"";
        // line 4038
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["customer"] ?? null), "email", [], "any", false, false, false, 4038), "html", null, true);
        yield "\",
                        },
                        {
                            name : \"";
        // line 4041
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Agent Name"), "html", null, true);
        yield "\",
                            value : \"";
        // line 4042
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticketAgent"] ?? null), "name", [], "any", true, true, false, 4042)) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["ticketAgent"] ?? null), "name", [], "any", false, false, false, 4042)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
        yield "\",
                        },
                        {
                            name : \"";
        // line 4045
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Agent Email"), "html", null, true);
        yield "\",
                            value : \"";
        // line 4046
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["ticketAgent"] ?? null), "email", [], "any", true, true, false, 4046)) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["ticketAgent"] ?? null), "email", [], "any", false, false, false, 4046)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Not Assigned"))), "html", null, true);
        yield "\",
                        }
                    ];
                },
                insert: function(item) {
                    return '<span>' + item.value + '</span>';
                }
            };
        }
    </script>
<script>
// Get the value and process it
    var processedValue = \$(\"#typeval\").val().replace(\"/\", \"\").trim();
    // Set the value in a hidden input field
   \$(\"#hiddenTypeVal\").val(processedValue);
    var ajaxUrl = '";
        // line 4061
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_add_ticket_thread", ["ticketId" => "TICKET_ID"]);
        yield "';

// Send it via AJAX as JSON
\$.ajax({
    url: ajaxUrl,
    type: 'POST',
    contentType: 'application/json',  // Ensure that the Content-Type is set to application/json
    success: function(response) {
        console.log(response);
    },
    error: function(xhr, status, error) {
        console.error(error);
    }
});


</script>

<script>
function showTypePopup(typeDescription) {
    const container = document.getElementById('graph-container');  // reusing your container
    document.getElementById('popup').style.display = 'block';
    document.getElementById('overlay').style.display = 'block';
    
    // Clear existing content
    container.innerHTML = '';

    // Insert simple content for typeDescription
    const content = document.createElement('div');
    content.style.padding = '20px';
    content.style.fontSize = '18px';
    content.style.textAlign = 'center';
    content.style.color = '#333';
    content.innerText = `Description: \${typeDescription}`;

    container.appendChild(content);
}

function handleInfoClick(el) {
    // get the description from data attribute
    const typeDescription = el.getAttribute('data-typedesc') || 'No type info available';

    const container = document.getElementById('graph-container');  // your popup container
    const popup = document.getElementById('popup');
    const overlay = document.getElementById('overlay');

    if (!container || !popup || !overlay) {
        console.error('Popup elements not found');
        return;
    }

    // Show popup and overlay
    popup.style.display = 'block';
    overlay.style.display = 'block';

    // Clear existing content
    container.innerHTML = '';

    // Insert the type description content
    const content = document.createElement('div');
    content.style.padding = '20px';
    content.style.fontSize = '18px';
    content.style.textAlign = 'center';
    content.style.color = '#333';
    content.innerText = `Description: \${typeDescription}`;

    container.appendChild(content);
}
</script>
    

";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@UVDeskCoreFramework/ticket.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  6309 => 4061,  6291 => 4046,  6287 => 4045,  6281 => 4042,  6277 => 4041,  6271 => 4038,  6267 => 4037,  6261 => 4034,  6257 => 4033,  6251 => 4030,  6247 => 4029,  6241 => 4026,  6237 => 4025,  6231 => 4022,  6227 => 4021,  6221 => 4018,  6217 => 4017,  6211 => 4014,  6207 => 4013,  6200 => 4010,  6196 => 4009,  6190 => 4006,  6186 => 4005,  6135 => 3957,  6128 => 3953,  6121 => 3949,  6105 => 3936,  6099 => 3933,  6095 => 3932,  6091 => 3931,  6087 => 3930,  6083 => 3929,  6077 => 3926,  6037 => 3889,  6030 => 3885,  5927 => 3785,  5894 => 3754,  5887 => 3750,  5880 => 3746,  5829 => 3697,  5827 => 3696,  5798 => 3669,  5794 => 3667,  5792 => 3666,  5787 => 3663,  5764 => 3642,  5762 => 3641,  5742 => 3626,  5704 => 3591,  5690 => 3579,  5683 => 3575,  5645 => 3539,  5643 => 3538,  5604 => 3501,  5600 => 3499,  5598 => 3498,  5593 => 3495,  5570 => 3474,  5568 => 3473,  5547 => 3459,  5451 => 3366,  5395 => 3313,  5183 => 3104,  5170 => 3094,  5163 => 3090,  5136 => 3066,  5123 => 3056,  5116 => 3052,  5089 => 3028,  5065 => 3006,  4847 => 2789,  4838 => 2786,  4834 => 2785,  4831 => 2784,  4827 => 2783,  4822 => 2781,  4819 => 2780,  4802 => 2766,  4784 => 2751,  4774 => 2744,  4766 => 2739,  4736 => 2712,  4730 => 2709,  4702 => 2684,  4569 => 2554,  4564 => 2552,  4515 => 2506,  4240 => 2234,  4230 => 2227,  4222 => 2222,  4212 => 2215,  4197 => 2203,  4189 => 2198,  4179 => 2191,  4170 => 2185,  4163 => 2181,  4157 => 2178,  4145 => 2169,  4133 => 2160,  4127 => 2157,  4120 => 2153,  4114 => 2150,  4092 => 2131,  4077 => 2119,  4067 => 2112,  4060 => 2108,  4042 => 2093,  4022 => 2076,  4014 => 2071,  4010 => 2070,  4002 => 2065,  3994 => 2060,  3989 => 2058,  3979 => 2051,  3975 => 2050,  3970 => 2047,  3966 => 2045,  3958 => 2042,  3952 => 2040,  3949 => 2039,  3946 => 2038,  3943 => 2037,  3941 => 2036,  3938 => 2035,  3935 => 2034,  3923 => 2030,  3913 => 2027,  3908 => 2024,  3903 => 2023,  3900 => 2022,  3897 => 2021,  3894 => 2020,  3892 => 2019,  3889 => 2018,  3886 => 2017,  3873 => 2012,  3863 => 2009,  3858 => 2006,  3853 => 2005,  3850 => 2004,  3847 => 2003,  3844 => 2002,  3842 => 2001,  3839 => 2000,  3833 => 1996,  3822 => 1994,  3818 => 1993,  3814 => 1992,  3806 => 1991,  3803 => 1990,  3800 => 1989,  3798 => 1988,  3788 => 1985,  3785 => 1984,  3783 => 1983,  3773 => 1980,  3770 => 1979,  3768 => 1978,  3750 => 1975,  3747 => 1974,  3745 => 1973,  3731 => 1970,  3728 => 1969,  3726 => 1968,  3720 => 1967,  3702 => 1965,  3698 => 1964,  3695 => 1963,  3692 => 1962,  3689 => 1961,  3667 => 1943,  3662 => 1941,  3647 => 1929,  3641 => 1925,  3637 => 1923,  3629 => 1920,  3623 => 1918,  3620 => 1917,  3617 => 1916,  3614 => 1915,  3612 => 1914,  3609 => 1913,  3606 => 1912,  3594 => 1908,  3584 => 1905,  3579 => 1902,  3574 => 1901,  3571 => 1900,  3568 => 1899,  3565 => 1898,  3563 => 1897,  3560 => 1896,  3557 => 1895,  3544 => 1890,  3534 => 1887,  3529 => 1884,  3524 => 1883,  3521 => 1882,  3518 => 1881,  3515 => 1880,  3513 => 1879,  3510 => 1878,  3504 => 1874,  3493 => 1872,  3489 => 1871,  3485 => 1870,  3477 => 1869,  3474 => 1868,  3471 => 1867,  3469 => 1866,  3459 => 1863,  3456 => 1862,  3454 => 1861,  3444 => 1858,  3441 => 1857,  3439 => 1856,  3421 => 1853,  3418 => 1852,  3416 => 1851,  3402 => 1848,  3399 => 1847,  3397 => 1846,  3391 => 1845,  3373 => 1843,  3369 => 1842,  3366 => 1841,  3363 => 1840,  3360 => 1839,  3341 => 1822,  3334 => 1818,  3326 => 1813,  3318 => 1810,  3313 => 1808,  3300 => 1798,  3297 => 1797,  3291 => 1794,  3286 => 1792,  3283 => 1791,  3281 => 1790,  3275 => 1787,  3270 => 1785,  3264 => 1783,  3258 => 1781,  3255 => 1780,  3249 => 1777,  3246 => 1776,  3244 => 1775,  3232 => 1766,  3225 => 1762,  3213 => 1753,  3208 => 1751,  3203 => 1749,  3188 => 1737,  3183 => 1735,  3178 => 1733,  3166 => 1724,  3114 => 1675,  3108 => 1672,  3104 => 1671,  3098 => 1669,  3091 => 1668,  3084 => 1665,  3081 => 1664,  3068 => 1653,  3062 => 1651,  3056 => 1649,  3054 => 1648,  3049 => 1646,  3041 => 1641,  3036 => 1639,  3030 => 1637,  3025 => 1634,  3020 => 1631,  3017 => 1630,  2914 => 1528,  2905 => 1525,  2901 => 1524,  2897 => 1523,  2893 => 1522,  2890 => 1521,  2886 => 1520,  2879 => 1516,  2796 => 1435,  2793 => 1411,  2788 => 1389,  2779 => 1382,  2769 => 1374,  2764 => 1372,  2760 => 1371,  2756 => 1370,  2752 => 1369,  2747 => 1368,  2745 => 1367,  2741 => 1366,  2736 => 1364,  2729 => 1360,  2719 => 1353,  2715 => 1352,  2710 => 1350,  2704 => 1347,  2695 => 1341,  2687 => 1336,  2682 => 1334,  2674 => 1331,  2669 => 1329,  2666 => 1328,  2663 => 1327,  2655 => 1321,  2646 => 1315,  2642 => 1314,  2637 => 1312,  2631 => 1309,  2622 => 1303,  2614 => 1298,  2609 => 1296,  2597 => 1287,  2593 => 1286,  2586 => 1282,  2583 => 1281,  2572 => 1278,  2567 => 1277,  2563 => 1276,  2557 => 1273,  2534 => 1253,  2531 => 1252,  2520 => 1249,  2515 => 1248,  2511 => 1247,  2504 => 1243,  2495 => 1237,  2485 => 1230,  2477 => 1227,  2472 => 1225,  2469 => 1224,  2459 => 1215,  2454 => 1213,  2450 => 1212,  2446 => 1211,  2442 => 1210,  2437 => 1209,  2435 => 1208,  2431 => 1207,  2426 => 1205,  2420 => 1202,  2410 => 1195,  2406 => 1194,  2401 => 1192,  2395 => 1189,  2384 => 1181,  2379 => 1179,  2375 => 1177,  2371 => 1175,  2363 => 1172,  2357 => 1170,  2354 => 1169,  2351 => 1168,  2348 => 1167,  2346 => 1166,  2343 => 1165,  2340 => 1164,  2328 => 1160,  2318 => 1157,  2313 => 1154,  2308 => 1153,  2305 => 1152,  2302 => 1151,  2299 => 1150,  2297 => 1149,  2294 => 1148,  2291 => 1147,  2278 => 1142,  2268 => 1139,  2263 => 1136,  2258 => 1135,  2255 => 1134,  2252 => 1133,  2249 => 1132,  2247 => 1131,  2244 => 1130,  2238 => 1126,  2227 => 1124,  2223 => 1123,  2219 => 1122,  2211 => 1121,  2208 => 1120,  2205 => 1119,  2203 => 1118,  2193 => 1115,  2190 => 1114,  2188 => 1113,  2178 => 1110,  2175 => 1109,  2173 => 1108,  2155 => 1105,  2152 => 1104,  2150 => 1103,  2136 => 1100,  2133 => 1099,  2131 => 1098,  2125 => 1097,  2107 => 1095,  2103 => 1094,  2100 => 1093,  2097 => 1092,  2094 => 1091,  2087 => 1086,  2078 => 1080,  2073 => 1078,  2061 => 1069,  2057 => 1068,  2050 => 1064,  2047 => 1063,  2036 => 1060,  2031 => 1059,  2027 => 1058,  2020 => 1054,  1999 => 1036,  1992 => 1034,  1985 => 1030,  1982 => 1029,  1973 => 1023,  1967 => 1021,  1965 => 1020,  1961 => 1019,  1957 => 1018,  1951 => 1015,  1944 => 1011,  1939 => 1008,  1928 => 999,  1921 => 994,  1917 => 992,  1913 => 990,  1905 => 988,  1903 => 987,  1897 => 986,  1894 => 985,  1892 => 984,  1888 => 982,  1879 => 979,  1872 => 978,  1868 => 977,  1863 => 975,  1860 => 974,  1857 => 973,  1855 => 972,  1851 => 970,  1843 => 967,  1837 => 965,  1834 => 964,  1831 => 963,  1828 => 962,  1826 => 961,  1823 => 960,  1820 => 959,  1808 => 955,  1798 => 952,  1793 => 949,  1788 => 948,  1785 => 947,  1782 => 946,  1779 => 945,  1777 => 944,  1774 => 943,  1771 => 942,  1758 => 937,  1748 => 934,  1743 => 931,  1738 => 930,  1735 => 929,  1732 => 928,  1729 => 927,  1727 => 926,  1724 => 925,  1718 => 921,  1707 => 919,  1703 => 918,  1699 => 917,  1691 => 916,  1688 => 915,  1685 => 914,  1683 => 913,  1673 => 910,  1670 => 909,  1668 => 908,  1658 => 905,  1655 => 904,  1653 => 903,  1635 => 900,  1632 => 899,  1630 => 898,  1616 => 895,  1613 => 894,  1611 => 893,  1605 => 892,  1587 => 890,  1583 => 889,  1580 => 888,  1577 => 887,  1574 => 886,  1569 => 882,  1563 => 880,  1557 => 878,  1555 => 877,  1551 => 875,  1548 => 873,  1545 => 872,  1539 => 870,  1529 => 868,  1526 => 867,  1516 => 865,  1514 => 864,  1507 => 860,  1501 => 856,  1493 => 854,  1490 => 853,  1488 => 852,  1481 => 850,  1473 => 849,  1466 => 844,  1459 => 839,  1455 => 838,  1451 => 837,  1447 => 835,  1437 => 833,  1435 => 832,  1429 => 831,  1418 => 827,  1414 => 826,  1405 => 820,  1398 => 816,  1394 => 814,  1384 => 805,  1377 => 800,  1370 => 795,  1363 => 790,  1357 => 788,  1355 => 787,  1352 => 786,  1347 => 784,  1342 => 783,  1340 => 782,  1335 => 780,  1332 => 779,  1326 => 777,  1324 => 776,  1316 => 770,  1313 => 769,  1308 => 766,  1304 => 765,  1300 => 764,  1296 => 763,  1291 => 762,  1287 => 759,  1281 => 754,  1275 => 752,  1269 => 751,  1260 => 745,  1254 => 742,  1242 => 733,  1238 => 732,  1234 => 731,  1224 => 724,  1219 => 721,  1211 => 714,  1202 => 708,  1198 => 707,  1193 => 705,  1187 => 701,  1185 => 700,  1180 => 698,  1175 => 695,  1168 => 689,  1162 => 686,  1159 => 685,  1157 => 684,  1152 => 682,  1147 => 679,  1133 => 667,  1129 => 666,  1124 => 664,  1115 => 658,  1110 => 655,  1103 => 649,  1097 => 646,  1094 => 645,  1089 => 642,  1078 => 640,  1074 => 639,  1070 => 638,  1063 => 634,  1058 => 632,  1051 => 628,  1046 => 627,  1044 => 626,  1039 => 624,  1036 => 623,  1031 => 619,  1025 => 616,  1022 => 615,  1017 => 612,  1006 => 610,  1002 => 609,  997 => 607,  990 => 603,  985 => 601,  978 => 597,  973 => 596,  971 => 595,  966 => 593,  963 => 592,  958 => 588,  952 => 585,  949 => 584,  944 => 581,  933 => 579,  929 => 578,  921 => 573,  916 => 571,  907 => 568,  905 => 567,  900 => 565,  897 => 564,  893 => 562,  889 => 560,  883 => 558,  877 => 554,  866 => 552,  862 => 551,  857 => 549,  848 => 546,  846 => 545,  841 => 543,  838 => 542,  833 => 538,  827 => 535,  824 => 534,  818 => 530,  805 => 528,  801 => 527,  796 => 525,  787 => 522,  785 => 521,  781 => 520,  776 => 518,  773 => 517,  768 => 513,  762 => 511,  757 => 508,  746 => 505,  741 => 504,  737 => 503,  729 => 498,  724 => 496,  715 => 493,  712 => 492,  710 => 491,  705 => 489,  702 => 488,  698 => 485,  695 => 483,  687 => 478,  681 => 475,  677 => 474,  669 => 469,  664 => 467,  656 => 462,  651 => 460,  643 => 455,  638 => 453,  632 => 450,  624 => 445,  620 => 444,  616 => 442,  613 => 441,  606 => 435,  600 => 433,  594 => 431,  592 => 430,  587 => 429,  585 => 428,  581 => 427,  574 => 423,  570 => 422,  563 => 418,  559 => 417,  555 => 415,  550 => 411,  546 => 409,  544 => 408,  541 => 407,  535 => 405,  533 => 404,  529 => 403,  525 => 402,  520 => 399,  514 => 397,  507 => 395,  505 => 394,  500 => 392,  497 => 391,  494 => 389,  485 => 384,  481 => 382,  478 => 380,  472 => 376,  466 => 375,  456 => 371,  453 => 369,  446 => 368,  255 => 181,  205 => 134,  75 => 6,  68 => 5,  57 => 3,  52 => 1,  50 => 367,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@UVDeskCoreFramework/ticket.html.twig", "/home/bmdranzo/public_html/vendor/uvdesk/core-framework/Resources/views/ticket.html.twig");
    }
}
