Sha256: 6114f290c4f89425b5ac179d83d549f717069a0380322031c4313d39a8767c46
Contents?: true
Size: 1.69 KB
Versions: 4
Compression:
Stored size: 1.69 KB
Contents
<!-- -PHCDEV- Title System --> <% phc_title "Products Manager" %> <% phc_title_tagline "Stripe Products List" %> <% phc_breadcrumb_one "Home" %> <% phc_breadcrumb_two yield(:phc_title_tagline) %> <!-- -PHCDEV- Title System --> <!-- -PHCDEV- Bradcrumbs --> <ol class="breadcrumb float-xl-end"> <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li> <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li> </ol> <!-- -PHCDEV- Bradcrumbs --> <!-- -PHCDEV- Header --> <h1 class="page-header"><%= yield(:phc_title) %></h1> <!-- -PHCDEV- Header --> <!-- -PHCDEV- Panel --> <div class="panel panel-inverse"> <!-- -PHCDEV- Panel - Heading --> <div class="panel-heading"> <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4> </div> <!-- -PHCDEV- Panel - Heading --> <!-- -PHCDEV- Panel - Body --> <div class="panel-body"> <!-- -PHCDEV- Index - Table --> <div class="table-responsive"> <table class="table table-striped table-bordered"> <thead> <tr> <th>Name</th> <th>Amount Monthly</th> <th>Amount Anually</th> </tr> </thead> <tbody> <% @admin_products_list.each do |product| %> <tr> <td><%= product.name %></td> <td><%= number_to_currency(Stripe::Price.list(product: product.id, recurring: {interval: "month"}).data[0].unit_amount/100) %></td> <td><%= number_to_currency(Stripe::Price.list(product: product.id, recurring: {interval: "year"}).data[0].unit_amount/100) %></td> </tr> <% end %> </tbody> </table> </div> <!-- -PHCDEV- Index - Table --> </div> <!-- -PHCDEV- Panel - Body --> </div> <!-- -PHCDEV- Panel -->
Version data entries
4 entries across 4 versions & 1 rubygems