var/cache/dev/twig/0b/0bd6e29c9f932ec4c5e393f5da28e61d.php line 153
<?phpuse 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;/* base.html.twig */class __TwigTemplate_dc6737d1c5481174715ba189f0f8b911 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->parent = false;$this->blocks = ['title' => [$this, 'block_title'],'stylesheets' => [$this, 'block_stylesheets'],'body' => [$this, 'block_body'],'javascripts' => [$this, 'block_javascripts'],];}protected function doDisplay(array $context, array $blocks = []): iterable{$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));// line 1yield "<!DOCTYPE html><html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><meta charset=\"UTF-8\"><title>Global Commissions :: ";// line 7yield from $this->unwrap()->yieldBlock('title', $context, $blocks);yield "</title><link rel=\"icon\" href=\"data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>\"><link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.datatables.net/1.11.5/css/jquery.dataTables.css\"><link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.datatables.net/fixedheader/3.2.2/css/fixedHeader.dataTables.min.css\"><style>\t\t/* Custom styles for table */\t\t.dataTables_wrapper {\t\t\twidth: 100%;\t\t\tmargin: 0 auto;\t\t}</style>";// line 19yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);// line 22yield "<script src=\"https://cdn.jsdelivr.net/npm/alpinejs@3.14.1/dist/cdn.min.js\" defer></script></head><body ";// line 25if ((((CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "user", [], "any", false, false, false, 25) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "user", [], "any", false, false, false, 25), "employeeStatus", [], "any", false, false, false, 25)) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "user", [], "any", false, false, false, 25), "employeeStatus", [], "any", false, false, false, 25), "value", [], "any", false, false, false, 25) == "LEAVE_OF_ABSENCE")) && ((null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "user", [], "any", false, false, false, 25), "leaveOfAbsenceStartDate", [], "any", false, false, false, 25)) || (null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "user", [], "any", false, false, false, 25), "leaveOfAbsenceEndDate", [], "any", false, false, false, 25))))) {yield "data-show-absence-popup=\"true\"";}yield "><div class=\"max-w-screen-3xl mx-auto\">";// line 28yield from $this->loadTemplate("layout/header.html.twig", "base.html.twig", 28)->unwrap()->yield($context);// line 29$context["flashMessages"] = [];// line 30yield "";// line 31$context['_parent'] = $context;$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 31, $this->source); })()), "flashes", [["success", "danger", "warning"]], "method", false, false, false, 31));foreach ($context['_seq'] as $context["type"] => $context["messages"]) {// line 32yield " ";$context['_parent'] = $context;$context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);foreach ($context['_seq'] as $context["_key"] => $context["message"]) {// line 33yield " ";$context["flashMessages"] = Twig\Extension\CoreExtension::merge((isset($context["flashMessages"]) || array_key_exists("flashMessages", $context) ? $context["flashMessages"] : (function () { throw new RuntimeError('Variable "flashMessages" does not exist.', 33, $this->source); })()), [["type" => $context["type"], "message" => $context["message"]]]);// line 34yield " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);$context = array_intersect_key($context, $_parent) + $_parent;}$_parent = $context['_parent'];unset($context['_seq'], $context['type'], $context['messages'], $context['_parent']);$context = array_intersect_key($context, $_parent) + $_parent;// line 36yield "";// line 37if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["flashMessages"]) || array_key_exists("flashMessages", $context) ? $context["flashMessages"] : (function () { throw new RuntimeError('Variable "flashMessages" does not exist.', 37, $this->source); })())) > 0)) {// line 38yield " <div class=\"max-w-screen-xl w-full mx-auto flex-shrink mt-6\">";// line 39$context['_parent'] = $context;$context['_seq'] = CoreExtension::ensureTraversable((isset($context["flashMessages"]) || array_key_exists("flashMessages", $context) ? $context["flashMessages"] : (function () { throw new RuntimeError('Variable "flashMessages" does not exist.', 39, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["flashItem"]) {// line 40yield " <div class=\"alert-";yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["flashItem"], "type", [], "any", false, false, false, 40), "html", null, true);yield "\" >";// line 41yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["flashItem"], "message", [], "any", false, false, false, 41), "html", null, true);yield "</div>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_key'], $context['flashItem'], $context['_parent']);$context = array_intersect_key($context, $_parent) + $_parent;// line 44yield " </div>";}// line 46yield " <div class=\"flex flex-col justify-between min-h-screen\"><div class=\"p-8\">";// line 48yield from $this->unwrap()->yieldBlock('body', $context, $blocks);// line 49yield " </div></div>";// line 51yield from $this->loadTemplate("/layout/footer.html.twig", "base.html.twig", 51)->unwrap()->yield($context);// line 52yield "</div>";// line 54if ((((CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "user", [], "any", false, false, false, 54) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "user", [], "any", false, false, false, 54), "employeeStatus", [], "any", false, false, false, 54)) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "user", [], "any", false, false, false, 54), "employeeStatus", [], "any", false, false, false, 54), "value", [], "any", false, false, false, 54) == "LEAVE_OF_ABSENCE")) && ((null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "user", [], "any", false, false, false, 54), "leaveOfAbsenceStartDate", [], "any", false, false, false, 54)) || (null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "user", [], "any", false, false, false, 54), "leaveOfAbsenceEndDate", [], "any", false, false, false, 54))))) {// line 55yield "<!-- Leave of Absence Modal --><div id=\"leaveOfAbsenceModal\" tabindex=\"-1\" aria-hidden=\"true\" class=\"fixed inset-0 z-50 flex items-center justify-center bg-gray-900 bg-opacity-50\"><div class=\"relative p-4 w-full max-w-md max-h-full\"><div class=\"relative bg-white rounded-lg shadow dark:bg-gray-700\"><div class=\"flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600\"><h3 class=\"text-xl font-semibold text-gray-900 dark:text-white\">Leave of Absence Dates Required</h3></div><div class=\"p-4 md:p-5\"><p class=\"text-sm text-gray-500 dark:text-gray-400 mb-4\">Your account is set to Leave of Absence status. Please enter your leave dates to continue.</p><form id=\"leaveOfAbsenceForm\"><div class=\"mb-4\"><label for=\"leaveStartDate\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">Start Date</label><input type=\"date\" id=\"leaveStartDate\" name=\"startDate\" class=\"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white\" required></div><div class=\"mb-4\"><label for=\"leaveEndDate\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">End Date</label><input type=\"date\" id=\"leaveEndDate\" name=\"endDate\" class=\"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white\" required></div><div id=\"leaveFormError\" class=\"hidden mb-4 text-sm text-red-600 dark:text-red-500\"></div><button type=\"submit\" class=\"w-full text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800\">Save Dates</button></form></div></div></div></div><script>document.addEventListener('DOMContentLoaded', function() {var modal = document.getElementById('leaveOfAbsenceModal');var form = document.getElementById('leaveOfAbsenceForm');var errorDiv = document.getElementById('leaveFormError');if (modal && form) {form.addEventListener('submit', function(e) {e.preventDefault();var startDate = document.getElementById('leaveStartDate').value;var endDate = document.getElementById('leaveEndDate').value;errorDiv.classList.add('hidden');fetch('/api/leave-of-absence', {method: 'POST',headers: {'Content-Type': 'application/json',},body: JSON.stringify({startDate: startDate,endDate: endDate})}).then(function(response) {return response.json();}).then(function(data) {if (data.success) {modal.style.display = 'none';window.location.reload();} else {errorDiv.textContent = data.message;errorDiv.classList.remove('hidden');}}).catch(function(error) {errorDiv.textContent = 'An error occurred. Please try again.';errorDiv.classList.remove('hidden');});});}});</script>";}// line 132yield "";// line 133yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);// line 136yield "<script type=\"text/javascript\" charset=\"utf8\" src=\"https://code.jquery.com/jquery-3.5.1.js\"></script><script type=\"text/javascript\" charset=\"utf8\" src=\"https://cdn.datatables.net/1.11.5/js/jquery.dataTables.js\"></script><script type=\"text/javascript\" charset=\"utf8\" src=\"https://cdn.datatables.net/fixedheader/3.2.2/js/dataTables.fixedHeader.min.js\"></script><script>\t\$(document).ready(function() {\t\tvar table = \$('#commissionTable').DataTable({\t\t\tfixedHeader: true,\t\t\tpaging: false,\t\t\tscrollY: '500px',\t\t\tscrollCollapse: true,\t\t\tinfo: false,\t\t\tsearching: false\t\t});\t});</script></body></html>";$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);yield from [];}// line 7/*** @return iterable<null|scalar|\Stringable>*/public function block_title(array $context, array $blocks = []): iterable{$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));yield "!";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);yield from [];}// line 19/*** @return iterable<null|scalar|\Stringable>*/public function block_stylesheets(array $context, array $blocks = []): iterable{$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));// line 20yield " ";yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");yield "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);yield from [];}// line 48/*** @return iterable<null|scalar|\Stringable>*/public function block_body(array $context, array $blocks = []): iterable{$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);yield from [];}// line 133/*** @return iterable<null|scalar|\Stringable>*/public function block_javascripts(array $context, array $blocks = []): iterable{$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));// line 134yield " ";yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");yield "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);yield from [];}/*** @codeCoverageIgnore*/public function getTemplateName(): string{return "base.html.twig";}/*** @codeCoverageIgnore*/public function isTraitable(): bool{return false;}/*** @codeCoverageIgnore*/public function getDebugInfo(): array{return array ( 365 => 134, 352 => 133, 330 => 48, 316 => 20, 303 => 19, 280 => 7, 251 => 136, 249 => 133, 246 => 132, 167 => 55, 165 => 54, 161 => 52, 159 => 51, 155 => 49, 153 => 48, 149 => 46, 145 => 44, 136 => 41, 131 => 40, 127 => 39, 124 => 38, 122 => 37, 119 => 36, 109 => 34, 106 => 33, 101 => 32, 97 => 31, 94 => 30, 92 => 29, 90 => 28, 82 => 25, 77 => 22, 75 => 19, 60 => 7, 52 => 1,);}public function getSourceContext(): Source{return new Source("<!DOCTYPE html><html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><meta charset=\"UTF-8\"><title>Global Commissions :: {% block title %}!{% endblock %}</title><link rel=\"icon\" href=\"data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>\"><link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.datatables.net/1.11.5/css/jquery.dataTables.css\"><link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.datatables.net/fixedheader/3.2.2/css/fixedHeader.dataTables.min.css\"><style>\t\t/* Custom styles for table */\t\t.dataTables_wrapper {\t\t\twidth: 100%;\t\t\tmargin: 0 auto;\t\t}</style>{% block stylesheets %}{{ encore_entry_link_tags('app') }}{% endblock %}<script src=\"https://cdn.jsdelivr.net/npm/alpinejs@3.14.1/dist/cdn.min.js\" defer></script></head><body {% if app.user and app.user.employeeStatus and app.user.employeeStatus.value == 'LEAVE_OF_ABSENCE' and (app.user.leaveOfAbsenceStartDate is null or app.user.leaveOfAbsenceEndDate is null) %}data-show-absence-popup=\"true\"{% endif %}><div class=\"max-w-screen-3xl mx-auto\">{% include('layout/header.html.twig') %}{% set flashMessages = [] %}{% for type, messages in app.flashes(['success', 'danger', 'warning']) %}{% for message in messages %}{% set flashMessages = flashMessages|merge([{type, message}]) %}{% endfor %}{% endfor %}{% if flashMessages|length > 0 %}<div class=\"max-w-screen-xl w-full mx-auto flex-shrink mt-6\">{% for flashItem in flashMessages %}<div class=\"alert-{{ flashItem.type }}\" >{{ flashItem.message }}</div>{% endfor %}</div>{% endif %}<div class=\"flex flex-col justify-between min-h-screen\"><div class=\"p-8\">{% block body %}{% endblock %}</div></div>{% include('/layout/footer.html.twig') %}</div>{% if app.user and app.user.employeeStatus and app.user.employeeStatus.value == 'LEAVE_OF_ABSENCE' and (app.user.leaveOfAbsenceStartDate is null or app.user.leaveOfAbsenceEndDate is null) %}<!-- Leave of Absence Modal --><div id=\"leaveOfAbsenceModal\" tabindex=\"-1\" aria-hidden=\"true\" class=\"fixed inset-0 z-50 flex items-center justify-center bg-gray-900 bg-opacity-50\"><div class=\"relative p-4 w-full max-w-md max-h-full\"><div class=\"relative bg-white rounded-lg shadow dark:bg-gray-700\"><div class=\"flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600\"><h3 class=\"text-xl font-semibold text-gray-900 dark:text-white\">Leave of Absence Dates Required</h3></div><div class=\"p-4 md:p-5\"><p class=\"text-sm text-gray-500 dark:text-gray-400 mb-4\">Your account is set to Leave of Absence status. Please enter your leave dates to continue.</p><form id=\"leaveOfAbsenceForm\"><div class=\"mb-4\"><label for=\"leaveStartDate\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">Start Date</label><input type=\"date\" id=\"leaveStartDate\" name=\"startDate\" class=\"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white\" required></div><div class=\"mb-4\"><label for=\"leaveEndDate\" class=\"block mb-2 text-sm font-medium text-gray-900 dark:text-white\">End Date</label><input type=\"date\" id=\"leaveEndDate\" name=\"endDate\" class=\"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white\" required></div><div id=\"leaveFormError\" class=\"hidden mb-4 text-sm text-red-600 dark:text-red-500\"></div><button type=\"submit\" class=\"w-full text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800\">Save Dates</button></form></div></div></div></div><script>document.addEventListener('DOMContentLoaded', function() {var modal = document.getElementById('leaveOfAbsenceModal');var form = document.getElementById('leaveOfAbsenceForm');var errorDiv = document.getElementById('leaveFormError');if (modal && form) {form.addEventListener('submit', function(e) {e.preventDefault();var startDate = document.getElementById('leaveStartDate').value;var endDate = document.getElementById('leaveEndDate').value;errorDiv.classList.add('hidden');fetch('/api/leave-of-absence', {method: 'POST',headers: {'Content-Type': 'application/json',},body: JSON.stringify({startDate: startDate,endDate: endDate})}).then(function(response) {return response.json();}).then(function(data) {if (data.success) {modal.style.display = 'none';window.location.reload();} else {errorDiv.textContent = data.message;errorDiv.classList.remove('hidden');}}).catch(function(error) {errorDiv.textContent = 'An error occurred. Please try again.';errorDiv.classList.remove('hidden');});});}});</script>{% endif %}{% block javascripts %}{{ encore_entry_script_tags('app') }}{% endblock %}<script type=\"text/javascript\" charset=\"utf8\" src=\"https://code.jquery.com/jquery-3.5.1.js\"></script><script type=\"text/javascript\" charset=\"utf8\" src=\"https://cdn.datatables.net/1.11.5/js/jquery.dataTables.js\"></script><script type=\"text/javascript\" charset=\"utf8\" src=\"https://cdn.datatables.net/fixedheader/3.2.2/js/dataTables.fixedHeader.min.js\"></script><script>\t\$(document).ready(function() {\t\tvar table = \$('#commissionTable').DataTable({\t\t\tfixedHeader: true,\t\t\tpaging: false,\t\t\tscrollY: '500px',\t\t\tscrollCollapse: true,\t\t\tinfo: false,\t\t\tsearching: false\t\t});\t});</script></body></html>", "base.html.twig", "/home/glcommissions/staging/source/templates/base.html.twig");}}