{{define "partnerOffers"}} {{template "partnerOffersModal" .}}
Name
Give Credit
Duration
Status
Link

Current Offer

{{$currentOffer := .PartnerOffers.Active}} {{if not $currentOffer.IsEmpty}}
{{$currentOffer.Name}}
${{$currentOffer.InviteeCredit}}
{{$currentOffer.InviteeCreditDurationDays}}
Live ·
{{range ReferralLink $currentOffer.Name}} {{.}} {{end}}

{{end}} {{template "stopPartnerOffer" .}}

Discontinued Offers

{{range .PartnerOffers.Done}}
{{.Name}}
${{.InviteeCredit}}
{{.InviteeCreditDurationDays}}
off

{{end}}
{{end}}