@@ -403,6 +403,15 @@ defmodule AlgoraWeb.Org.JobLive do
403
403
< br class = "md:hidden " /> using contracts and bounties
404
404
</ span >
405
405
</ li >
406
+ < li class = "flex items-center gap-4 md:gap-3 " >
407
+ < div class = "shrink-0 flex items-center justify-center rounded-full bg-success-300/10 size-12 md:size-10 border border-success-300/20 " >
408
+ < . icon name = "tabler-moneybag " class = "size-8 md:size-6 text-success-300 " />
409
+ </ div >
410
+ < span >
411
+ < span class = "font-semibold text-success-300 " > 0% placement fee</ span >
412
+ < br class = "md:hidden " /> for successful hires
413
+ </ span >
414
+ </ li >
406
415
</ ul >
407
416
</ div >
408
417
< div class = "flex flex-col justify-center items-center text-center " >
@@ -1645,20 +1654,18 @@ defmodule AlgoraWeb.Org.JobLive do
1645
1654
</ span >
1646
1655
</ div >
1647
1656
1648
- < div class = "flex justify-between items-center " >
1649
- < span class = "text-sm text-muted-foreground " >
1650
- Early Believer Discount:
1651
- </ span >
1652
- < span class = "font-semibold font-display -ml-1.5 " >
1653
- -{ Money . to_string! (
1654
- Money . sub! (
1655
- price ( ) ,
1656
- @ current_org . subscription_price
1657
- )
1658
- ) }
1659
- </ span >
1660
- </ div >
1661
-
1657
+ <%= if discount = Money . sub! ( price ( ) , @ current_org . subscription_price ) do %>
1658
+ <%= if Money . positive? ( discount ) do %>
1659
+ < div class = "flex justify-between items-center " >
1660
+ < span class = "text-sm text-muted-foreground " >
1661
+ Early Believer Discount:
1662
+ </ span >
1663
+ < span class = "font-semibold font-display -ml-1.5 " >
1664
+ -{ Money . to_string! ( discount ) }
1665
+ </ span >
1666
+ </ div >
1667
+ <% end %>
1668
+ <% end %>
1662
1669
< div class = "flex justify-between items-center " >
1663
1670
< span class = "text-sm text-muted-foreground " > Processing Fee (4%)</ span >
1664
1671
< span class = "font-semibold font-display " >
@@ -1765,19 +1772,18 @@ defmodule AlgoraWeb.Org.JobLive do
1765
1772
{ Money . to_string! ( price ( ) ) }
1766
1773
</ span >
1767
1774
1768
- < span class = "text-muted-foreground block " >
1769
- Early Believer Discount
1770
- </ span >
1771
- < span class = "font-medium font-display flex " >
1772
- < span class = "-ml-1.5 " >
1773
- -{ Money . to_string! (
1774
- Money . sub! (
1775
- price ( ) ,
1776
- @ current_org . subscription_price
1777
- )
1778
- ) }
1779
- </ span >
1780
- </ span >
1775
+ <%= if discount = Money . sub! ( price ( ) , @ current_org . subscription_price ) do %>
1776
+ <%= if Money . positive? ( discount ) do %>
1777
+ < span class = "text-muted-foreground block " >
1778
+ Early Believer Discount
1779
+ </ span >
1780
+ < span class = "font-medium font-display flex " >
1781
+ < span class = "-ml-1.5 " >
1782
+ -{ Money . to_string! ( discount ) }
1783
+ </ span >
1784
+ </ span >
1785
+ <% end %>
1786
+ <% end %>
1781
1787
1782
1788
< span class = "text-muted-foreground line-through block " >
1783
1789
Stripe Processing Fee
0 commit comments