use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$this->out(Zen::PerlHandler->get("II62d5c6ca676ab65988d8c806b04dc848->mnt_ref_list")->do($this->{C}));$this->out("");$C->{HTMLTitle} = "Referrals";$this->out("");{my $G = (ref $this)->get("/master/plugins/syevents/header.html", $this->{param}) or die "no skel /master/plugins/syevents/header.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("\n<body>\n\n<div class=\"container\">\n");if ( $C->{total} ) {$this->out("\n<p>Your referral link: https://ultimateunderdog.net/jvp/?referer=$C->{Referer}{id} (Link to refer partners)</p>\n<p>Your affiliate link: https://ultimateunderdogsummit.live/?aff_id=$C->{Referer}{id} (Link to refer Members)</p>\n<p>You have a total of <span style=\"color: red; font-weight:bold\">$C->{Referer}{points} points</span> for the combination of referrals from both you and your partners.</p>\n<p>Here is the breakdown of your referrals:</p>\n	<table class=\"table\">\n	  <thead>\n	    <tr>\n	      <th scope=\"col\">Name</th>\n	      <th scope=\"col\" class=\"text-center\">E-mail</th>\n	      <th scope=\"col\" class=\"text-center\">Referrals</th>\n	    </tr>\n	  </thead>\n		<tbody>\n");my $in = $C->{List};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{SYref} = -1;for my $f (@$loop) {$C->{ITERATION}{SYref}++;$C->{SYref} = $f;$this->out("");{my $G = (ref $this)->get("/master/plugins/syevents/ref_list_ref.html", $this->{param}) or die "no skel /master/plugins/syevents/ref_list_ref.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("");}$this->out("</tbody>\n</table>\n");} else {$this->out("	<br>This list does not contain any referral yet.<br><br>\n");}$this->out("</div>\n");{my $G = (ref $this)->get("/master/plugins/syevents/footer.html", $this->{param}) or die "no skel /master/plugins/syevents/footer.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("");}