Oops, there was a problem with your payment. Don't worry your job ad has been saved
        {{ end }}
    </p>
    </article>
{{ end }}
    {{ $notApproved := not .Job.ApprovedAt.Valid }}
    {{ $planExpired := isTimeBeforeNow .Job.PlanExpiredAt }}
    {{ if or $planExpired $notApproved }}
    <article style="margin-bottom: 30px;">
            {{ if $planExpired }}
            <h3>Your Job Ad has expired</h3>
            Your Job Ad has expired on {{ .Job.PlanExpiredAt.Format "Jan 02, 2006 15:04:05 UTC" }}.