<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* @BidcozFrontend/Campaign/Volunteer/index.html.twig */
class __TwigTemplate_4039bc018dc8d31dd1535f8884b6114ab7d115c51bbb10a465881e0fb5be28e7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'sidebar' => [$this, 'block_sidebar'],
'beforeContent' => [$this, 'block_beforeContent'],
'content' => [$this, 'block_content'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@BidcozFrontend/campaign.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BidcozFrontend/Campaign/Volunteer/index.html.twig"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BidcozFrontend/Campaign/Volunteer/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BidcozFrontend/Campaign/Volunteer/index.html.twig"));
$this->parent = $this->loadTemplate("@BidcozFrontend/campaign.html.twig", "@BidcozFrontend/Campaign/Volunteer/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_sidebar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
echo "";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 5
public function block_beforeContent($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "beforeContent"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "beforeContent"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "beforeContent"));
// line 6
echo " ";
$this->displayParentBlock("beforeContent", $context, $blocks);
echo "
<h1>CrewUp</h1>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 10
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 11
echo " ";
if (twig_length_filter($this->env, (isset($context["tasks"]) || array_key_exists("tasks", $context) ? $context["tasks"] : (function () { throw new RuntimeError('Variable "tasks" does not exist.', 11, $this->source); })()))) {
// line 12
echo " <div class=\"volunteer-tasks d-flex flex-wrap mx-n3 align-items-stretch\">
";
// line 13
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["tasks"]) || array_key_exists("tasks", $context) ? $context["tasks"] : (function () { throw new RuntimeError('Variable "tasks" does not exist.', 13, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["task"]) {
// line 14
echo " ";
$context["currentUserSignedUp"] = (((isset($context["loggedUser"]) || array_key_exists("loggedUser", $context) ? $context["loggedUser"] : (function () { throw new RuntimeError('Variable "loggedUser" does not exist.', 14, $this->source); })())) ? ((1 === twig_compare(twig_length_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["task"], "assignments", [], "any", false, false, false, 14), function ($__assignment__) use ($context, $macros) { $context["assignment"] = $__assignment__; return (twig_get_attribute($this->env, $this->source, (isset($context["assignment"]) || array_key_exists("assignment", $context) ? $context["assignment"] : (function () { throw new RuntimeError('Variable "assignment" does not exist.', 14, $this->source); })()), "user", [], "any", false, false, false, 14) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["assignment"]) || array_key_exists("assignment", $context) ? $context["assignment"] : (function () { throw new RuntimeError('Variable "assignment" does not exist.', 14, $this->source); })()), "user", [], "any", false, false, false, 14), "id", [], "any", false, false, false, 14), twig_get_attribute($this->env, $this->source, (isset($context["loggedUser"]) || array_key_exists("loggedUser", $context) ? $context["loggedUser"] : (function () { throw new RuntimeError('Variable "loggedUser" does not exist.', 14, $this->source); })()), "id", [], "any", false, false, false, 14)))); })), 0))) : (false));
// line 15
echo " <div class=\"col-12 col-md-6 col-lg-4 col-xl-3 mb-4\">
<div class=\"panel d-flex flex-column h-100\">
<div class=\"panel-body pb-0\">
<h6 class=\"panel-title mb-2 mt-n2 mb-2\">";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["task"], "title", [], "any", false, false, false, 18), "html", null, true);
echo "</h6>
<div class=\"remaining-spots d-flex flex-wrap align-items-center\">
";
// line 20
$this->loadTemplate("@BidcozCore/Components/icon.html.twig", "@BidcozFrontend/Campaign/Volunteer/index.html.twig", 20)->display(twig_array_merge($context, ["icon" => "grid-fill", "class" => "icon-sm"]));
// line 21
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["task"], "hasAssignmentsAvailable", [], "any", false, false, false, 21)) {
// line 22
echo " <small class=\"ml-1 text-green\">Crew: ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (twig_get_attribute($this->env, $this->source, $context["task"], "numNeeded", [], "any", false, false, false, 22) - twig_get_attribute($this->env, $this->source, $context["task"], "assignmentsAvailable", [], "any", false, false, false, 22))), "html", null, true);
echo " of ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["task"], "numNeeded", [], "any", false, false, false, 22)), "html", null, true);
echo " Onboard</small>
";
} else {
// line 24
echo " <small class=\"ml-1\">Fully Crewed - Thanks for Stepping Up!</small>
";
}
// line 26
echo " </div>
<hr class=\"visible-xs\">
";
// line 28
if (twig_get_attribute($this->env, $this->source, $context["task"], "description", [], "any", false, false, false, 28)) {
echo "<p class=\"description\">";
echo twig_get_attribute($this->env, $this->source, $context["task"], "description", [], "any", false, false, false, 28);
echo "</p>";
}
// line 29
echo " <hr class=\"visible-xs\">
";
// line 31
if ((isset($context["loggedUser"]) || array_key_exists("loggedUser", $context) ? $context["loggedUser"] : (function () { throw new RuntimeError('Variable "loggedUser" does not exist.', 31, $this->source); })())) {
// line 32
echo " ";
if (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["task"], "assignments", [], "any", false, false, false, 32))) {
// line 33
echo " <div class=\"d-flex flex-wrap align-items-center\">
";
// line 34
$this->loadTemplate("@BidcozCore/Components/icon.html.twig", "@BidcozFrontend/Campaign/Volunteer/index.html.twig", 34)->display(twig_array_merge($context, ["icon" => "user-fill", "class" => "icon-sm"]));
// line 35
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["task"], "hasAssignmentsAvailable", [], "any", false, false, false, 35)) {
// line 36
echo " <small class=\"ml-1\">Crew members already on board for this task:</small>
";
} else {
// line 38
echo " <small class=\"ml-1\">The following people have signed up:</small>
";
}
// line 40
echo " </div>
";
// line 41
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["task"], "assignments", [], "any", false, false, false, 41), function ($__assignment__) use ($context, $macros) { $context["assignment"] = $__assignment__; return twig_get_attribute($this->env, $this->source, $context["assignment"], "user", [], "any", false, false, false, 41); }));
foreach ($context['_seq'] as $context["_key"] => $context["assignment"]) {
// line 42
echo " <small class=\"ml-4\">• ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["assignment"], "user", [], "any", false, false, false, 42), "name", [], "any", false, false, false, 42), "html", null, true);
echo "</small><br/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['assignment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
echo " ";
} else {
// line 45
echo " <p class=\"text-center\"><strong>You can be the first to crew up!</strong></p>
";
}
// line 47
echo " <hr class=\"visible-xs\">
";
}
// line 49
echo "
";
// line 50
if ((isset($context["currentUserSignedUp"]) || array_key_exists("currentUserSignedUp", $context) ? $context["currentUserSignedUp"] : (function () { throw new RuntimeError('Variable "currentUserSignedUp" does not exist.', 50, $this->source); })())) {
// line 51
echo " <p class=\"text-center\"><strong>You're an important part of this crew - thank you!</strong></p>
";
}
// line 53
echo " </div>
<div class=\"panel-footer mt-auto px-4 pb-4\">
";
// line 55
if ((isset($context["currentUserSignedUp"]) || array_key_exists("currentUserSignedUp", $context) ? $context["currentUserSignedUp"] : (function () { throw new RuntimeError('Variable "currentUserSignedUp" does not exist.', 55, $this->source); })())) {
// line 56
echo " ";
$context["canRelease"] = ((null === twig_get_attribute($this->env, $this->source, $context["task"], "dateNeededFrom", [], "any", false, false, false, 56)) || (1 === twig_compare((twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["task"], "dateNeededFrom", [], "any", false, false, false, 56), "U") - twig_date_format_filter($this->env, "now", "U")), (24 * 3600))));
// line 57
echo " ";
if ((isset($context["canRelease"]) || array_key_exists("canRelease", $context) ? $context["canRelease"] : (function () { throw new RuntimeError('Variable "canRelease" does not exist.', 57, $this->source); })())) {
// line 58
echo " <div class=\"\">
<form action=\"";
// line 59
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("campaign_volunteer_release_task", twig_array_merge((isset($context["campaignParams"]) || array_key_exists("campaignParams", $context) ? $context["campaignParams"] : (function () { throw new RuntimeError('Variable "campaignParams" does not exist.', 59, $this->source); })()), ["taskId" => twig_get_attribute($this->env, $this->source, $context["task"], "id", [], "any", false, false, false, 59)])), "html", null, true);
echo "\" method=\"post\">
<button type=\"submit\" class=\"btn btn-danger btn-sm volunteer-release-btn\">Leave the Crew</button>
</form>
</div>
";
} else {
// line 64
echo " <div class=\"alert bg-light font-weight-normal text-dark border border-info\" role=\"alert\">
Since this task starts in less than 24 hours, please
<a href=\"";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("campaign_contact", (isset($context["campaignParams"]) || array_key_exists("campaignParams", $context) ? $context["campaignParams"] : (function () { throw new RuntimeError('Variable "campaignParams" does not exist.', 66, $this->source); })())), "html", null, true);
echo "\">contact the CrewUp Administrator</a>
if you need to cancel so we can make sure your role is covered.
</div>
";
}
// line 70
echo " ";
} else {
// line 71
echo " ";
if ((isset($context["loggedUser"]) || array_key_exists("loggedUser", $context) ? $context["loggedUser"] : (function () { throw new RuntimeError('Variable "loggedUser" does not exist.', 71, $this->source); })())) {
// line 72
echo " <form action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("campaign_volunteer_for_task", twig_array_merge((isset($context["campaignParams"]) || array_key_exists("campaignParams", $context) ? $context["campaignParams"] : (function () { throw new RuntimeError('Variable "campaignParams" does not exist.', 72, $this->source); })()), ["taskId" => twig_get_attribute($this->env, $this->source, $context["task"], "id", [], "any", false, false, false, 72)])), "html", null, true);
echo "\" method=\"post\">
<button type=\"submit\" class=\"btn btn-primary task-select mt-3 volunteer-signup-btn\">Count Me In!</button>
</form>
";
} else {
// line 76
echo " <h6 class=\"lead\">
An account is required to participate.<br><br>
<a href=\"";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("campaign_login_user", (isset($context["campaignParams"]) || array_key_exists("campaignParams", $context) ? $context["campaignParams"] : (function () { throw new RuntimeError('Variable "campaignParams" does not exist.', 78, $this->source); })())), "html", null, true);
echo "\" data-toggle=\"modal\" data-target=\"#loginModal\" class=\"btn btn-success trigger-login\">Sign In or Create Account</a>
</h6>
";
}
// line 81
echo " ";
}
// line 82
echo " </div>
</div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['task'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 86
echo " </div>
";
} else {
// line 88
echo " <div class=\"panel h-100\">
<div class=\"panel-body h-100 py-4\">
<div class=\"select-type-default center text-center\">
<div class=\"d-flex justify-content-center\">
<i class=\"fas fa-hands-helping icon\"></i>
</div>
<h2>Sorry, there are currently no tasks available.</h2>
</div>
</div>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 101
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 102
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"/components/bootstrap-sweetalert/dist/sweetalert.css\" />
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 106
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 107
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"/components/bootstrap-sweetalert/dist/sweetalert.min.js\" type=\"text/javascript\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
public function getTemplateName()
{
return "@BidcozFrontend/Campaign/Volunteer/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 409 => 107, 396 => 106, 379 => 102, 366 => 101, 342 => 88, 338 => 86, 321 => 82, 318 => 81, 312 => 78, 308 => 76, 300 => 72, 297 => 71, 294 => 70, 287 => 66, 283 => 64, 275 => 59, 272 => 58, 269 => 57, 266 => 56, 264 => 55, 260 => 53, 256 => 51, 254 => 50, 251 => 49, 247 => 47, 243 => 45, 240 => 44, 231 => 42, 227 => 41, 224 => 40, 220 => 38, 216 => 36, 213 => 35, 211 => 34, 208 => 33, 205 => 32, 203 => 31, 199 => 29, 193 => 28, 189 => 26, 185 => 24, 177 => 22, 174 => 21, 172 => 20, 167 => 18, 162 => 15, 159 => 14, 142 => 13, 139 => 12, 136 => 11, 123 => 10, 106 => 6, 93 => 5, 68 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@BidcozFrontend/campaign.html.twig' %}
{% block sidebar '' %}
{% block beforeContent %}
{{ parent() }}
<h1>CrewUp</h1>
{% endblock %}
{% block content %}
{% if tasks|length %}
<div class=\"volunteer-tasks d-flex flex-wrap mx-n3 align-items-stretch\">
{% for task in tasks %}
{% set currentUserSignedUp = loggedUser ? (task.assignments|filter(assignment => assignment.user and assignment.user.id == loggedUser.id)|length > 0) : false %}
<div class=\"col-12 col-md-6 col-lg-4 col-xl-3 mb-4\">
<div class=\"panel d-flex flex-column h-100\">
<div class=\"panel-body pb-0\">
<h6 class=\"panel-title mb-2 mt-n2 mb-2\">{{ task.title }}</h6>
<div class=\"remaining-spots d-flex flex-wrap align-items-center\">
{% include '@BidcozCore/Components/icon.html.twig' with { icon: 'grid-fill', class: 'icon-sm' } %}
{% if task.hasAssignmentsAvailable %}
<small class=\"ml-1 text-green\">Crew: {{ (task.numNeeded - task.assignmentsAvailable)|number_format }} of {{ task.numNeeded|number_format }} Onboard</small>
{% else %}
<small class=\"ml-1\">Fully Crewed - Thanks for Stepping Up!</small>
{% endif %}
</div>
<hr class=\"visible-xs\">
{% if task.description %}<p class=\"description\">{{ task.description|raw }}</p>{% endif %}
<hr class=\"visible-xs\">
{% if loggedUser %}
{% if task.assignments|length %}
<div class=\"d-flex flex-wrap align-items-center\">
{% include '@BidcozCore/Components/icon.html.twig' with { icon: 'user-fill', class: 'icon-sm' } %}
{% if task.hasAssignmentsAvailable %}
<small class=\"ml-1\">Crew members already on board for this task:</small>
{% else %}
<small class=\"ml-1\">The following people have signed up:</small>
{% endif %}
</div>
{% for assignment in task.assignments|filter(assignment => assignment.user) %}
<small class=\"ml-4\">• {{ assignment.user.name }}</small><br/>
{% endfor %}
{% else %}
<p class=\"text-center\"><strong>You can be the first to crew up!</strong></p>
{% endif %}
<hr class=\"visible-xs\">
{% endif %}
{% if currentUserSignedUp %}
<p class=\"text-center\"><strong>You're an important part of this crew - thank you!</strong></p>
{% endif %}
</div>
<div class=\"panel-footer mt-auto px-4 pb-4\">
{% if currentUserSignedUp %}
{% set canRelease = (task.dateNeededFrom is null) or ((task.dateNeededFrom|date('U')) - ('now'|date('U')) > 24 * 3600) %}
{% if canRelease %}
<div class=\"\">
<form action=\"{{ path('campaign_volunteer_release_task', campaignParams|merge({taskId: task.id})) }}\" method=\"post\">
<button type=\"submit\" class=\"btn btn-danger btn-sm volunteer-release-btn\">Leave the Crew</button>
</form>
</div>
{% else %}
<div class=\"alert bg-light font-weight-normal text-dark border border-info\" role=\"alert\">
Since this task starts in less than 24 hours, please
<a href=\"{{ path('campaign_contact', campaignParams) }}\">contact the CrewUp Administrator</a>
if you need to cancel so we can make sure your role is covered.
</div>
{% endif %}
{% else %}
{% if loggedUser %}
<form action=\"{{ path('campaign_volunteer_for_task', campaignParams|merge({taskId: task.id})) }}\" method=\"post\">
<button type=\"submit\" class=\"btn btn-primary task-select mt-3 volunteer-signup-btn\">Count Me In!</button>
</form>
{% else %}
<h6 class=\"lead\">
An account is required to participate.<br><br>
<a href=\"{{ path('campaign_login_user', campaignParams) }}\" data-toggle=\"modal\" data-target=\"#loginModal\" class=\"btn btn-success trigger-login\">Sign In or Create Account</a>
</h6>
{% endif %}
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
{% else %}
<div class=\"panel h-100\">
<div class=\"panel-body h-100 py-4\">
<div class=\"select-type-default center text-center\">
<div class=\"d-flex justify-content-center\">
<i class=\"fas fa-hands-helping icon\"></i>
</div>
<h2>Sorry, there are currently no tasks available.</h2>
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"/components/bootstrap-sweetalert/dist/sweetalert.css\" />
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"/components/bootstrap-sweetalert/dist/sweetalert.min.js\" type=\"text/javascript\"></script>
{% endblock %}
", "@BidcozFrontend/Campaign/Volunteer/index.html.twig", "/var/www/causepilot/src/Bidcoz/Bundle/FrontendBundle/Resources/views/Campaign/Volunteer/index.html.twig");
}
}