phcdevworks_accounts_stripe 0.1.7 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +39 -21
- data/app/assets/config/phcdevworks_accounts_stripe_manifest.js +2 -3
- data/app/controllers/phcdevworks_accounts_stripe/admin/customers_controller.rb +17 -17
- data/app/controllers/phcdevworks_accounts_stripe/admin/invoices_controller.rb +17 -17
- data/app/controllers/phcdevworks_accounts_stripe/admin/products_controller.rb +16 -16
- data/app/controllers/phcdevworks_accounts_stripe/admin/subscriptions_controller.rb +16 -16
- data/app/controllers/phcdevworks_accounts_stripe/application_controller.rb +10 -10
- data/app/controllers/phcdevworks_accounts_stripe/user/invoices_controller.rb +19 -19
- data/app/controllers/phcdevworks_accounts_stripe/user/product_controller.rb +13 -13
- data/app/controllers/phcdevworks_accounts_stripe/user/subscription_controller.rb +18 -18
- data/app/helpers/phcdevworks_accounts_stripe/admin/customers_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/admin/invoices_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/admin/plans_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/admin/subscriptions_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/application_helper.rb +18 -18
- data/app/helpers/phcdevworks_accounts_stripe/user/invoices_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/user/plan_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/user/subscription_helper.rb +4 -4
- data/app/mailers/phcdevworks_accounts_stripe/application_mailer.rb +2 -2
- data/app/models/phcdevworks_accounts_stripe/application_record.rb +5 -5
- data/app/views/layouts/phcdevworks_accounts_stripe/application.html.erb +34 -27
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/footer/_footer.html.erb +9 -7
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/navigation/_top_menu.html.erb +22 -21
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/sidebars/_side_menu.html.erb +491 -349
- data/app/views/phcdevworks_accounts_stripe/admin/customers/admin_customer_list.html.erb +59 -67
- data/app/views/phcdevworks_accounts_stripe/admin/invoices/admin_invoice_list.html.erb +81 -89
- data/app/views/phcdevworks_accounts_stripe/admin/products/admin_products_list.html.erb +61 -69
- data/app/views/phcdevworks_accounts_stripe/admin/subscriptions/admin_subscription_list.html.erb +67 -75
- data/app/views/phcdevworks_accounts_stripe/user/invoices/user_invoice_list.html.erb +88 -88
- data/app/views/phcdevworks_accounts_stripe/user/products/user_product_list.html.erb +66 -66
- data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_cancel.html.erb +66 -66
- data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_item.html.erb +70 -70
- data/config/initializers/stripe.rb +8 -8
- data/config/routes.rb +0 -3
- data/lib/phcdevworks_accounts_stripe/engine.rb +1 -4
- data/lib/phcdevworks_accounts_stripe/version.rb +1 -1
- metadata +49 -58
- data/app/assets/javascripts/phcdevworks_accounts_stripe/admin/invoices.coffee +0 -3
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/customers.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/invoices.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/plans.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/subscriptions.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/invoices.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/plan.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/subscription.css +0 -4
@@ -1,67 +1,59 @@
|
|
1
|
-
<!--
|
2
|
-
<% phc_title "Customer Manager" %>
|
3
|
-
<% phc_title_tagline "Stripe Customer List" %>
|
4
|
-
<% phc_breadcrumb_one "Home" %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!--
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
<
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
<!-- Panel - Body -->
|
61
|
-
|
62
|
-
</div>
|
63
|
-
<!-- Panel -->
|
64
|
-
|
65
|
-
</div>
|
66
|
-
</div>
|
67
|
-
<!-- Page Content -->
|
1
|
+
<!-- -PHCDev- Title System -->
|
2
|
+
<% phc_title "Customer Manager" %>
|
3
|
+
<% phc_title_tagline "Stripe Customer List" %>
|
4
|
+
<% phc_breadcrumb_one "Home" %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- -PHCDev- Title System -->
|
7
|
+
|
8
|
+
<!-- -PHCDev- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb float-xl-end">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- -PHCDev- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- -PHCDev- Page Header -->
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- -PHCDev- Page Header -->
|
18
|
+
|
19
|
+
<!-- -PHCDev- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
21
|
+
|
22
|
+
<!-- -PHCDev- Panel - Heading -->
|
23
|
+
<div class="panel-heading">
|
24
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
25
|
+
</div>
|
26
|
+
<!-- -PHCDev- Panel - Heading -->
|
27
|
+
|
28
|
+
<!-- -PHCDev- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
30
|
+
|
31
|
+
<!-- -PHCDev- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
34
|
+
|
35
|
+
<thead>
|
36
|
+
<tr>
|
37
|
+
<th>Customer Name</th>
|
38
|
+
<th>Customer Email</th>
|
39
|
+
</tr>
|
40
|
+
</thead>
|
41
|
+
|
42
|
+
<tbody>
|
43
|
+
<% @admin_customer_list.each do |customers| %>
|
44
|
+
<tr>
|
45
|
+
<td><%= customers.name %></td>
|
46
|
+
<td><%= customers.email %></td>
|
47
|
+
</tr>
|
48
|
+
<% end %>
|
49
|
+
</tbody>
|
50
|
+
|
51
|
+
</table>
|
52
|
+
</div>
|
53
|
+
<!-- -PHCDev- Index - Table -->
|
54
|
+
|
55
|
+
</div>
|
56
|
+
<!-- -PHCDev- Panel - Body -->
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<!-- -PHCDev- Panel -->
|
@@ -1,89 +1,81 @@
|
|
1
|
-
<!--
|
2
|
-
<% phc_title "Invoice Manager" %>
|
3
|
-
<% phc_title_tagline "Stripe Invoice List" %>
|
4
|
-
<% phc_breadcrumb_one "Home" %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!--
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
<
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
<!-- Panel - Body -->
|
83
|
-
|
84
|
-
</div>
|
85
|
-
<!-- Panel -->
|
86
|
-
|
87
|
-
</div>
|
88
|
-
</div>
|
89
|
-
<!-- Page Content -->
|
1
|
+
<!-- -PHCDev- Title System -->
|
2
|
+
<% phc_title "Invoice Manager" %>
|
3
|
+
<% phc_title_tagline "Stripe Invoice List" %>
|
4
|
+
<% phc_breadcrumb_one "Home" %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- -PHCDev- Title System -->
|
7
|
+
|
8
|
+
<!-- -PHCDev- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb float-xl-end">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- -PHCDev- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- -PHCDev- Page Header -->
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- -PHCDev- Page Header -->
|
18
|
+
|
19
|
+
<!-- -PHCDev- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
21
|
+
|
22
|
+
<!-- -PHCDev- Panel - Heading -->
|
23
|
+
<div class="panel-heading">
|
24
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
25
|
+
</div>
|
26
|
+
<!-- -PHCDev- Panel - Heading -->
|
27
|
+
|
28
|
+
<!-- -PHCDev- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
30
|
+
|
31
|
+
<!-- -PHCDev- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
34
|
+
|
35
|
+
<thead>
|
36
|
+
<tr>
|
37
|
+
<th>Status</th>
|
38
|
+
<th>Account Name</th>
|
39
|
+
<th>Invoice Amount</th>
|
40
|
+
<th>Invoice Paid</th>
|
41
|
+
<th>Invoice Due</th>
|
42
|
+
<th>Due Date</th>
|
43
|
+
<th>Invoice PDF Download</th>
|
44
|
+
<th>Invoice Link</th>
|
45
|
+
</tr>
|
46
|
+
</thead>
|
47
|
+
|
48
|
+
<tbody>
|
49
|
+
<% @admin_invoice_list.each do |admin_invoice| %>
|
50
|
+
<tr>
|
51
|
+
<td><%= admin_invoice.status.capitalize %></td>
|
52
|
+
<td><%= admin_invoice.account_name %></td>
|
53
|
+
<td><%= number_to_currency(admin_invoice.amount_due/100) %></td>
|
54
|
+
<td><%= number_to_currency(admin_invoice.amount_paid/100) %></td>
|
55
|
+
<td><%= number_to_currency(admin_invoice.amount_remaining/100) %></td>
|
56
|
+
<td><%= Time.at(admin_invoice.due_date).to_datetime.strftime("%B %d, %Y") %></td>
|
57
|
+
<td>
|
58
|
+
<i class="fad fa-external-link"></i>
|
59
|
+
<%= link_to admin_invoice.invoice_pdf, target: "_blank" do %>
|
60
|
+
Invoice #: <%= admin_invoice.number %>
|
61
|
+
<% end %>
|
62
|
+
</td>
|
63
|
+
<td>
|
64
|
+
<i class="fad fa-external-link"></i>
|
65
|
+
<%= link_to admin_invoice.hosted_invoice_url, target: "_blank" do %>
|
66
|
+
Invoice #: <%= admin_invoice.number %>
|
67
|
+
<% end %>
|
68
|
+
</td>
|
69
|
+
</tr>
|
70
|
+
<% end %>
|
71
|
+
</tbody>
|
72
|
+
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- -PHCDev- Index - Table -->
|
76
|
+
|
77
|
+
</div>
|
78
|
+
<!-- -PHCDev- Panel - Body -->
|
79
|
+
|
80
|
+
</div>
|
81
|
+
<!-- -PHCDev- Panel -->
|
@@ -1,69 +1,61 @@
|
|
1
|
-
<!--
|
2
|
-
<% phc_title "Products Manager" %>
|
3
|
-
<% phc_title_tagline "Stripe Products List" %>
|
4
|
-
<% phc_breadcrumb_one "Home" %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!--
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
<
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
<!-- Panel - Body -->
|
63
|
-
|
64
|
-
</div>
|
65
|
-
<!-- Panel -->
|
66
|
-
|
67
|
-
</div>
|
68
|
-
</div>
|
69
|
-
<!-- Page Content -->
|
1
|
+
<!-- -PHCDev- Title System -->
|
2
|
+
<% phc_title "Products Manager" %>
|
3
|
+
<% phc_title_tagline "Stripe Products List" %>
|
4
|
+
<% phc_breadcrumb_one "Home" %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- -PHCDev- Title System -->
|
7
|
+
|
8
|
+
<!-- -PHCDev- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb float-xl-end">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- -PHCDev- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- -PHCDev- Page Header -->
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- -PHCDev- Page Header -->
|
18
|
+
|
19
|
+
<!-- -PHCDev- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
21
|
+
|
22
|
+
<!-- -PHCDev- Panel - Heading -->
|
23
|
+
<div class="panel-heading">
|
24
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
25
|
+
</div>
|
26
|
+
<!-- -PHCDev- Panel - Heading -->
|
27
|
+
|
28
|
+
<!-- -PHCDev- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
30
|
+
|
31
|
+
<!-- -PHCDev- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
34
|
+
|
35
|
+
<thead>
|
36
|
+
<tr>
|
37
|
+
<th>Name</th>
|
38
|
+
<th>Amount Monthly</th>
|
39
|
+
<th>Amount Anually</th>
|
40
|
+
</tr>
|
41
|
+
</thead>
|
42
|
+
|
43
|
+
<tbody>
|
44
|
+
<% @admin_products_list.each do |product| %>
|
45
|
+
<tr>
|
46
|
+
<td><%= product.name %></td>
|
47
|
+
<td><%= number_to_currency(Stripe::Price.list(product: product.id, recurring: {interval: "month"}).data[0].unit_amount/100) %></td>
|
48
|
+
<td><%= number_to_currency(Stripe::Price.list(product: product.id, recurring: {interval: "year"}).data[0].unit_amount/100) %></td>
|
49
|
+
</tr>
|
50
|
+
<% end %>
|
51
|
+
</tbody>
|
52
|
+
|
53
|
+
</table>
|
54
|
+
</div>
|
55
|
+
<!-- -PHCDev- Index - Table -->
|
56
|
+
|
57
|
+
</div>
|
58
|
+
<!-- -PHCDev- Panel - Body -->
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<!-- -PHCDev- Panel -->
|
data/app/views/phcdevworks_accounts_stripe/admin/subscriptions/admin_subscription_list.html.erb
CHANGED
@@ -1,75 +1,67 @@
|
|
1
|
-
<!--
|
2
|
-
<% phc_title "Subscription Manager" %>
|
3
|
-
<% phc_title_tagline "Stripe Subscriptions List" %>
|
4
|
-
<% phc_breadcrumb_one "Home" %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!--
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
<
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
<!-- Panel - Body -->
|
69
|
-
|
70
|
-
</div>
|
71
|
-
<!-- Panel -->
|
72
|
-
|
73
|
-
</div>
|
74
|
-
</div>
|
75
|
-
<!-- Page Content -->
|
1
|
+
<!-- -PHCDev- Title System -->
|
2
|
+
<% phc_title "Subscription Manager" %>
|
3
|
+
<% phc_title_tagline "Stripe Subscriptions List" %>
|
4
|
+
<% phc_breadcrumb_one "Home" %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- -PHCDev- Title System -->
|
7
|
+
|
8
|
+
<!-- -PHCDev- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb float-xl-end">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- -PHCDev- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- -PHCDev- Page Header -->
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- -PHCDev- Page Header -->
|
18
|
+
|
19
|
+
<!-- -PHCDev- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
21
|
+
|
22
|
+
<!-- -PHCDev- Panel - Heading -->
|
23
|
+
<div class="panel-heading">
|
24
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
25
|
+
</div>
|
26
|
+
<!-- -PHCDev- Panel - Heading -->
|
27
|
+
|
28
|
+
<!-- -PHCDev- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
30
|
+
|
31
|
+
<!-- -PHCDev- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
34
|
+
|
35
|
+
<thead>
|
36
|
+
<tr>
|
37
|
+
<th>Status</th>
|
38
|
+
<th>Customer Name</th>
|
39
|
+
<th>Customer Email</th>
|
40
|
+
<th>Next Payment Date</th>
|
41
|
+
<th>Date Created</th>
|
42
|
+
<th>Amount Due</th>
|
43
|
+
</tr>
|
44
|
+
</thead>
|
45
|
+
|
46
|
+
<tbody>
|
47
|
+
<% @admin_subscription_list.each do |subscription| %>
|
48
|
+
<tr>
|
49
|
+
<td><%= subscription.status.capitalize %></td>
|
50
|
+
<td><%= Stripe::Customer.retrieve(subscription.customer).name %></td>
|
51
|
+
<td><%= Stripe::Customer.retrieve(subscription.customer).email %></td>
|
52
|
+
<td><%= Time.at(subscription.current_period_end).to_datetime.strftime("%B %d, %Y") %></td>
|
53
|
+
<td><%= Time.at(subscription.created).to_datetime.strftime("%B %d, %Y") %></td>
|
54
|
+
<td><%= number_to_currency(subscription.plan.amount/100) %></td>
|
55
|
+
</tr>
|
56
|
+
<% end %>
|
57
|
+
</tbody>
|
58
|
+
|
59
|
+
</table>
|
60
|
+
</div>
|
61
|
+
<!-- -PHCDev- Index - Table -->
|
62
|
+
|
63
|
+
</div>
|
64
|
+
<!-- -PHCDev- Panel - Body -->
|
65
|
+
|
66
|
+
</div>
|
67
|
+
<!-- -PHCDev- Panel -->
|