phcdevworks_accounts_stripe 0.2.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.md +46 -1
  4. data/Rakefile +8 -8
  5. data/app/assets/config/phcdevworks_accounts_stripe_manifest.js +2 -3
  6. data/app/assets/stylesheets/phcdevworks_accounts_stripe/application.css +15 -15
  7. data/app/controllers/phcdevworks_accounts_stripe/admin/customers_controller.rb +0 -0
  8. data/app/controllers/phcdevworks_accounts_stripe/admin/invoices_controller.rb +0 -0
  9. data/app/controllers/phcdevworks_accounts_stripe/admin/products_controller.rb +0 -0
  10. data/app/controllers/phcdevworks_accounts_stripe/admin/subscriptions_controller.rb +0 -0
  11. data/app/controllers/phcdevworks_accounts_stripe/application_controller.rb +0 -0
  12. data/app/controllers/phcdevworks_accounts_stripe/user/invoices_controller.rb +0 -0
  13. data/app/controllers/phcdevworks_accounts_stripe/user/product_controller.rb +0 -0
  14. data/app/controllers/phcdevworks_accounts_stripe/user/subscription_controller.rb +0 -0
  15. data/app/helpers/phcdevworks_accounts_stripe/admin/customers_helper.rb +0 -0
  16. data/app/helpers/phcdevworks_accounts_stripe/admin/invoices_helper.rb +0 -0
  17. data/app/helpers/phcdevworks_accounts_stripe/admin/plans_helper.rb +0 -0
  18. data/app/helpers/phcdevworks_accounts_stripe/admin/subscriptions_helper.rb +0 -0
  19. data/app/helpers/phcdevworks_accounts_stripe/application_helper.rb +0 -0
  20. data/app/helpers/phcdevworks_accounts_stripe/user/invoices_helper.rb +0 -0
  21. data/app/helpers/phcdevworks_accounts_stripe/user/plan_helper.rb +0 -0
  22. data/app/helpers/phcdevworks_accounts_stripe/user/subscription_helper.rb +0 -0
  23. data/app/jobs/phcdevworks_accounts_stripe/application_job.rb +4 -4
  24. data/app/mailers/phcdevworks_accounts_stripe/application_mailer.rb +6 -6
  25. data/app/models/phcdevworks_accounts_stripe/application_record.rb +0 -0
  26. data/app/views/layouts/phcdevworks_accounts_stripe/application.html.erb +36 -29
  27. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/footer/_footer.html.erb +10 -8
  28. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/navigation/_top_menu.html.erb +26 -25
  29. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/sidebars/_side_menu.html.erb +491 -349
  30. data/app/views/phcdevworks_accounts_stripe/admin/customers/admin_customer_list.html.erb +44 -52
  31. data/app/views/phcdevworks_accounts_stripe/admin/invoices/admin_invoice_list.html.erb +61 -69
  32. data/app/views/phcdevworks_accounts_stripe/admin/products/admin_products_list.html.erb +46 -54
  33. data/app/views/phcdevworks_accounts_stripe/admin/subscriptions/admin_subscription_list.html.erb +48 -56
  34. data/app/views/phcdevworks_accounts_stripe/user/invoices/user_invoice_item.html.erb +0 -0
  35. data/app/views/phcdevworks_accounts_stripe/user/invoices/user_invoice_list.html.erb +0 -0
  36. data/app/views/phcdevworks_accounts_stripe/user/products/user_product_list.html.erb +0 -0
  37. data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_cancel.html.erb +0 -0
  38. data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_item.html.erb +0 -0
  39. data/config/initializers/stripe.rb +0 -0
  40. data/config/routes.rb +14 -17
  41. data/lib/phcdevworks_accounts_stripe/engine.rb +44 -47
  42. data/lib/phcdevworks_accounts_stripe/version.rb +3 -3
  43. data/lib/phcdevworks_accounts_stripe.rb +6 -6
  44. data/lib/tasks/phcdevworks_accounts_stripe_tasks.rake +4 -4
  45. metadata +41 -50
  46. data/app/assets/javascripts/phcdevworks_accounts_stripe/admin/invoices.coffee +0 -3
  47. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/customers.css +0 -4
  48. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/invoices.scss +0 -3
  49. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/plans.css +0 -4
  50. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/subscriptions.css +0 -4
  51. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/invoices.css +0 -4
  52. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/plan.css +0 -4
  53. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/subscription.css +0 -4
@@ -1,387 +1,529 @@
1
- <!-- -PHC- Sidebar for PHCDevworks Engines -->
2
- <div data-scrollbar="true" data-height="100%">
1
+ <!-- -PHCDev- Page Container - Sidebar -->
2
+ <div class="app-sidebar-content" data-scrollbar="true" data-height="100%">
3
+ <div class="menu">
3
4
 
4
- <!-- -PHC- Sidebar - User Profile Menu -->
5
- <ul class="nav">
6
- <% if current_user %>
7
- <li class="nav-profile">
8
- <a href="javascript:;" data-toggle="nav-profile">
9
- <div class="cover with-shadow"></div>
10
- <div class="image">
5
+ <!-- -PHCDev- Page Container - Sidebar - Profile -->
6
+ <div class="menu-profile">
7
+ <% if current_user %>
8
+ <a href="javascript:;" class="menu-profile-link" data-toggle="app-sidebar-profile" data-target="#appSidebarProfileMenu">
9
+ <div class="menu-profile-cover with-shadow"></div>
10
+ <div class="menu-profile-image">
11
11
  <%= image_tag current_user.gravatar_url %>
12
12
  </div>
13
- <div class="info">
14
- <b class="caret pull-right"></b>
15
- <%= current_user.firstname + " " + current_user.lastname %>
13
+ <div class="menu-profile-info">
14
+ <div class="d-flex align-items-center">
15
+ <div class="flex-grow-1">
16
+ <%= current_user.firstname + " " + current_user.lastname %>
17
+ </div>
18
+ <div class="menu-caret ms-auto"></div>
19
+ </div>
16
20
  <small><%= current_user.username %></small>
17
21
  </div>
18
22
  </a>
19
- </li>
20
- <li>
21
- <ul class="nav nav-profile">
22
- <li>
23
- <%= link_to phcdevworks_accounts.edit_user_registration_path do %>
24
- <i class="fad fa-cogs"></i> Account Settings
25
- <% end %>
26
- </li>
27
- <li>
28
- <%= link_to phcdevworks_accounts.destroy_user_session_path, method: :delete do %>
29
- <i class="fad fa-sign-out-alt"></i> Logout
30
- <% end %>
31
- </li>
32
- </ul>
33
- </li>
34
- <% end %>
35
- </ul>
36
- <!-- -PHC- Sidebar - User Profile Menu -->
37
-
38
- <!-- -PHC- Sidebar - Sidebar Navigation -->
39
- <ul class="nav">
23
+ <% end %>
24
+ </div>
25
+ <!-- -PHCDev- Page Container - Sidebar - Profile -->
40
26
 
41
- <% if defined?phcdevworks_press %>
42
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
43
- <li class="nav-header">Articles & Blogging</li>
44
- <li class="has-sub">
45
- <a href="javascript:;">
46
- <b class="caret"></b>
47
- <i class="fad fa-newspaper"></i>
48
- <span>Blog Articles</span>
49
- </a>
50
- <ul class="sub-menu">
51
- <li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts") %>"><%= link_to("Article Index", phcdevworks_press.article_posts_path) %></li>
52
- <li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts#new") %>"><%= link_to("Add a New Aritcle", phcdevworks_press.new_article_post_path) %></li>
53
- </ul>
54
- </li>
55
- <li class="has-sub">
56
- <a href="javascript:;">
57
- <b class="caret"></b>
58
- <i class="fad fa-star-half"></i>
59
- <span>Review Articles</span>
60
- </a>
61
- <ul class="sub-menu">
62
- <li class="<%= phc_menu_active_controller("phcdevworks_press/review/posts") %>"><%= link_to("Reviews Index", phcdevworks_press.review_posts_path) %></li>
63
- <li class="<%= phc_menu_active_controller("phcdevworks_press/review/posts#new") %>"><%= link_to("Add a New Review", phcdevworks_press.new_review_post_path) %></li>
64
- </ul>
65
- </li>
66
- <li class="has-sub">
67
- <a href="javascript:;">
68
- <b class="caret"></b>
69
- <i class="fad fa-th-list"></i>
70
- <span>List Articles</span>
71
- </a>
72
- <ul class="sub-menu">
73
- <li class="<%= phc_menu_active_controller("phcdevworks_press/list/posts") %>"><%= link_to("Lists Index", phcdevworks_press.list_posts_path) %></li>
74
- <li class="<%= phc_menu_active_controller("phcdevworks_press/list/posts#new") %>"><%= link_to("Add a New List", phcdevworks_press.new_list_post_path) %></li>
75
- </ul>
76
- </li>
77
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
78
- <% end %>
27
+ <!-- -PHCDev- Page Container - Sidebar - Profile - Menu -->
28
+ <div id="appSidebarProfileMenu" class="collapse">
29
+ <div class="menu-item pt-5px">
30
+ <%= link_to phcdevworks_accounts_devise.edit_user_registration_path, class: "menu-link" do %>
31
+ <div class="menu-icon"><i class="fad fa-cogs"></i></div>
32
+ <div class="menu-text">Account Settings</div>
33
+ <% end %>
34
+ <%= link_to phcdevworks_accounts_devise.destroy_user_session_path, method: :delete, class: "menu-link" do %>
35
+ <div class="menu-icon"><i class="fad fa-sign-out-alt"></i></div>
36
+ <div class="menu-text">Logout</div>
37
+ <% end %>
38
+ </div>
39
+ <div class="menu-divider m-0"></div>
40
+ </div>
41
+ <!-- -PHCDev- Page Container - Sidebar - Profile - Menu -->
79
42
 
80
- <% if defined?phcdevworks_portfolio %>
81
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
82
- <li class="nav-header">Portfolio</li>
83
- <li class="has-sub">
84
- <a href="javascript:;">
85
- <b class="caret"></b>
86
- <i class="fad fa-briefcase"></i>
87
- <span>Project List</span>
88
- </a>
89
- <ul class="sub-menu">
90
- <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project Index", phcdevworks_portfolio.project_posts_path) %></li>
91
- <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Project", phcdevworks_portfolio.new_project_post_path) %></li>
92
- </ul>
93
- </li>
94
- <li class="has-sub">
95
- <a href="javascript:;">
96
- <b class="caret"></b>
97
- <i class="fad fa-folders"></i>
98
- <span>Project Types</span>
43
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCMembers -->
44
+ <% if defined?phcdevworks_members %>
45
+ <div class="menu-header">PHCMembers</div>
46
+ <div class="menu-item has-sub">
47
+ <a href="javascript:;" class="menu-link">
48
+ <div class="menu-icon"><i class="material-icons">people</i></div>
49
+ <div class="menu-text">Membership Manager</div>
50
+ <div class="menu-caret"></div>
99
51
  </a>
100
- <ul class="sub-menu">
101
- <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project Type", phcdevworks_portfolio.project_types_path) %></li>
102
- <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Types", phcdevworks_portfolio.new_project_type_path) %></li>
103
- </ul>
104
- </li>
105
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
52
+ <div class="menu-submenu">
53
+ <div class="menu-item has-sub">
54
+ <a href="javascript:;" class="menu-link">
55
+ <div class="menu-text">Member's Data</div>
56
+ <div class="menu-caret"></div>
57
+ </a>
58
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_members/member/profiles") %>">
59
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/member/profiles", "Index") %>">
60
+ <%= link_to phcdevworks_members.member_profiles_path, class: "menu-link" do %>
61
+ <div class="menu-text">Member Index</div>
62
+ <% end %>
63
+ </div>
64
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/member/profiles", "New") %>">
65
+ <%= link_to phcdevworks_members.new_member_profile_path, class: "menu-link" do %>
66
+ <div class="menu-text">Add a New Member</div>
67
+ <% end %>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ <div class="menu-item has-sub">
72
+ <a href="javascript:;" class="menu-link">
73
+ <div class="menu-text">Member's Directory</div>
74
+ <div class="menu-caret"></div>
75
+ </a>
76
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_members/modules/categories") %>">
77
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/modules/categories", "Index") %>">
78
+ <%= link_to phcdevworks_members.directory_categories_path, class: "menu-link" do %>
79
+ <div class="menu-text">Category Index</div>
80
+ <% end %>
81
+ </div>
82
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/modules/categories", "New") %>">
83
+ <%= link_to phcdevworks_members.new_directory_category_path, class: "menu-link" do %>
84
+ <div class="menu-text">Add a New Category</div>
85
+ <% end %>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ </div>
90
+ </div>
106
91
  <% end %>
92
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCMembers -->
107
93
 
108
- <% if defined?phcdevworks_tutorials %>
109
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
110
- <li class="nav-header">Tutorial Posts</li>
111
- <li class="has-sub">
112
- <a href="javascript:;">
113
- <b class="caret"></b>
114
- <i class="fad fa-chalkboard-teacher"></i>
115
- <span>Tutorial Posts</span>
116
- </a>
117
- <ul class="sub-menu">
118
- <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts") %>"><%= link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_path %></li>
119
- <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts#new") %>"><%= link_to "New Tutorial", phcdevworks_tutorials.new_tutorial_post_path %></li>
120
- </ul>
121
- </li>
122
- <li class="nav-header">Command Lists & Items</li>
123
- <li class="has-sub">
124
- <a href="javascript:;">
125
- <b class="caret"></b>
126
- <i class="fad fa-terminal"></i>
127
- <span>Command Lists</span>
94
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCPress -->
95
+ <% if defined?phcdevworks_press %>
96
+ <div class="menu-header">PHCPress</div>
97
+ <div class="menu-item has-sub">
98
+ <a href="javascript:;" class="menu-link">
99
+ <div class="menu-icon"><i class="material-icons">newspaper</i></div>
100
+ <div class="menu-text">Blogging</div>
101
+ <div class="menu-caret"></div>
128
102
  </a>
129
- <ul class="sub-menu">
130
- <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts") %>"><%= link_to "List Index", phcdevworks_tutorials.command_posts_path %></li>
131
- <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts#new") %>"><%= link_to "New List", phcdevworks_tutorials.new_command_post_path %></li>
132
- </ul>
133
- </li>
134
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
103
+ <div class="menu-submenu">
104
+ <div class="menu-item has-sub">
105
+ <a href="javascript:;" class="menu-link">
106
+ <div class="menu-text">Article Posts</div>
107
+ <div class="menu-caret"></div>
108
+ </a>
109
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_press/article/posts") %>">
110
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_press/article/posts", "Index") %>">
111
+ <%= link_to phcdevworks_press.article_posts_path, class: "menu-link" do %>
112
+ <div class="menu-text">All Articles</div>
113
+ <% end %>
114
+ </div>
115
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_press/article/posts", "New") %>">
116
+ <%= link_to phcdevworks_press.new_article_post_path, class: "menu-link" do %>
117
+ <div class="menu-text">Add a New Article</div>
118
+ <% end %>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ </div>
135
124
  <% end %>
125
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCPress -->
136
126
 
137
- <% if defined?phcdevworks_members %>
138
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
139
- <li class="nav-header">Membership Manager</li>
140
- <li class="has-sub">
141
- <a href="javascript:;">
142
- <b class="caret"></b>
143
- <i class="fad fa-users"></i>
144
- <span>Member"s Data</span>
145
- </a>
146
- <ul class="sub-menu">
147
- <li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles") %>"><%= link_to("Profile Index", phcdevworks_members.member_profiles_path) %></li>
148
- <li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles#new") %>"><%= link_to("New Member Profile", phcdevworks_members.new_member_profile_path) %></li>
149
- </ul>
150
- </li>
151
- <li class="nav-header">Member"s Directory</li>
152
- <li class="has-sub">
153
- <a href="javascript:;">
154
- <b class="caret"></b>
155
- <i class="fad fa-list-alt"></i>
156
- <span>Member"s Directory</span>
127
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCPortfolio -->
128
+ <% if defined?phcdevworks_portfolio %>
129
+ <div class="menu-header">PHCPortfolio</div>
130
+ <div class="menu-item has-sub">
131
+ <a href="javascript:;" class="menu-link">
132
+ <div class="menu-icon"><i class="material-icons">business_center</i></div>
133
+ <div class="menu-text">Portfolio & Projects</div>
134
+ <div class="menu-caret"></div>
157
135
  </a>
158
- <ul class="sub-menu">
159
- <li class="<%= phc_menu_active_controller("phcdevworks_members/modules/categories") %>"><%= link_to("Directory Index", phcdevworks_members.directory_categories_path) %></li>
160
- <li class="<%= phc_menu_active_controller("phcdevworks_members/modules/categories#new") %>"><%= link_to("New Directory Listing", phcdevworks_members.new_directory_category_path) %></li>
161
- </ul>
162
- </li>
163
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
136
+ <div class="menu-submenu">
137
+ <div class="menu-item has-sub">
138
+ <a href="javascript:;" class="menu-link">
139
+ <div class="menu-text">Project Portfolio</div>
140
+ <div class="menu-caret"></div>
141
+ </a>
142
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>">
143
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/posts", "Index") %>">
144
+ <%= link_to phcdevworks_portfolio.project_posts_path, class: "menu-link" do %>
145
+ <div class="menu-text">Project Index</div>
146
+ <% end %>
147
+ </div>
148
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/posts", "New") %>">
149
+ <%= link_to phcdevworks_portfolio.new_project_post_path, class: "menu-link" do %>
150
+ <div class="menu-text">Add a New Project</div>
151
+ <% end %>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ <div class="menu-item has-sub">
156
+ <a href="javascript:;" class="menu-link">
157
+ <div class="menu-text">Project Types</div>
158
+ <div class="menu-caret"></div>
159
+ </a>
160
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_portfolio/project/types") %>">
161
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/types", "Index") %>">
162
+ <%= link_to phcdevworks_portfolio.project_types_path, class: "menu-link" do %>
163
+ <div class="menu-text">Project Types</div>
164
+ <% end %>
165
+ </div>
166
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/types", "New") %>">
167
+ <%= link_to phcdevworks_tutorials.new_project_type_path, class: "menu-link" do %>
168
+ <div class="menu-text">Add a New Project Type</div>
169
+ <% end %>
170
+ </div>
171
+ </div>
172
+ </div>
173
+ </div>
174
+ </div>
164
175
  <% end %>
176
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCPortfolio -->
165
177
 
166
- <% if defined?phcdevworks_scripts %>
167
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
168
- <li class="nav-header">Script CDN Listings</li>
169
- <li class="has-sub">
170
- <a href="javascript:;">
171
- <b class="caret"></b>
172
- <i class="fad fa-laptop-code"></i>
173
- <span>Script Posts</span>
174
- </a>
175
- <ul class="sub-menu">
176
- <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/listings") %>"><%= link_to "All Script Listings", phcdevworks_scripts.script_listings_path %></li>
177
- <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/listings#new") %>"><%= link_to "Add a New Listing", phcdevworks_scripts.new_script_listing_path %></li>
178
- </ul>
179
- </li>
180
- <li class="has-sub">
181
- <a href="javascript:;">
182
- <b class="caret"></b>
183
- <i class="fad fa-sitemap"></i>
184
- <span>Script Extras</span>
185
- </a>
186
- <ul class="sub-menu">
187
- <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/authors") %>"><%= link_to "Script Authors", phcdevworks_scripts.script_authors_path %></li>
188
- <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/extensions") %>"><%= link_to "Script Extensions", phcdevworks_scripts.script_extensions_path %></li>
189
- <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/versions") %>"><%= link_to "Script Versions", phcdevworks_scripts.script_versions_path %></li>
190
- </ul>
191
- </li>
192
- <li class="nav-header">Code Snippets</li>
193
- <li class="has-sub">
194
- <a href="javascript:;">
195
- <b class="caret"></b>
196
- <i class="fad fa-code"></i>
197
- <span>Code Snippets</span>
178
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCRealEstate -->
179
+ <% if defined?phcdevworks_real_estate %>
180
+ <div class="menu-header">PHCRealEstate</div>
181
+ <div class="menu-item has-sub">
182
+ <a href="javascript:;" class="menu-link">
183
+ <div class="menu-icon"><i class="material-icons">holiday_village</i></div>
184
+ <div class="menu-text">Property Listings</div>
185
+ <div class="menu-caret"></div>
198
186
  </a>
199
- <ul class="sub-menu">
200
- <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/posts") %>"><%= link_to "Snippet Index", phcdevworks_scripts.snippet_posts_path %></li>
201
- <li class="<%= phc_menu_active_controller("phcdevworks_scripts/script/posts#new") %>"><%= link_to "New Snippet", phcdevworks_scripts.new_snippet_post_path %></li>
202
- </ul>
203
- </li>
204
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
187
+ <div class="menu-submenu">
188
+ <div class="menu-item has-sub">
189
+ <a href="javascript:;" class="menu-link">
190
+ <div class="menu-text">Property Listings</div>
191
+ <div class="menu-caret"></div>
192
+ </a>
193
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_real_estate/property/listings") %>">
194
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/listings", "Index") %>">
195
+ <%= link_to phcdevworks_real_estate.property_listings_path, class: "menu-link" do %>
196
+ <div class="menu-text">Property Listings</div>
197
+ <% end %>
198
+ </div>
199
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/listings", "New") %>">
200
+ <%= link_to phcdevworks_real_estate.new_property_listing_path, class: "menu-link" do %>
201
+ <div class="menu-text">Add a New Listing</div>
202
+ <% end %>
203
+ </div>
204
+ </div>
205
+ </div>
206
+ <div class="menu-item has-sub">
207
+ <a href="javascript:;" class="menu-link">
208
+ <div class="menu-text">Project Types</div>
209
+ <div class="menu-caret"></div>
210
+ </a>
211
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_real_estate/property/features") %>">
212
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/features", "Index") %>">
213
+ <%= link_to phcdevworks_real_estate.property_features_path, class: "menu-link" do %>
214
+ <div class="menu-text">Property Features List</div>
215
+ <% end %>
216
+ </div>
217
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/features", "New") %>">
218
+ <%= link_to phcdevworks_real_estate.new_property_feature_path, class: "menu-link" do %>
219
+ <div class="menu-text">Add a New Property Feature</div>
220
+ <% end %>
221
+ </div>
222
+ </div>
223
+ </div>
224
+ </div>
225
+ </div>
205
226
  <% end %>
227
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCRealEstate -->
206
228
 
207
- <% if defined?phcdevworks_real_estate %>
208
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
209
- <li class="nav-header">Property Listings</li>
210
- <li class="has-sub">
211
- <a href="javascript:;">
212
- <b class="caret"></b>
213
- <i class="fad fa-home-lg"></i>
214
- <span>Property Listings</span>
215
- </a>
216
- <ul class="sub-menu">
217
- <li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings") %>"><%= link_to "Listing Index", phcdevworks_real_estate.property_listings_path %></li>
218
- <li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings#new") %>"><%= link_to "New Listing", phcdevworks_real_estate.new_property_listing_path %></li>
219
- </ul>
220
- </li>
221
- <li class="has-sub">
222
- <a href="javascript:;">
223
- <b class="caret"></b>
224
- <i class="fad fa-list-alt"></i>
225
- <span>Listing Features</span>
229
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCScripts -->
230
+ <% if defined?phcdevworks_scripts %>
231
+ <div class="menu-header">PHCScripts</div>
232
+ <div class="menu-item has-sub">
233
+ <a href="javascript:;" class="menu-link">
234
+ <div class="menu-icon"><i class="material-icons">code</i></div>
235
+ <div class="menu-text">Script CDN Listing</div>
236
+ <div class="menu-caret"></div>
226
237
  </a>
227
- <ul class="sub-menu">
228
- <li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings") %>"><%= link_to "Features Index", phcdevworks_real_estate.property_features_path %></li>
229
- <li class="<%= phc_menu_active_controller("phcdevworks_real_estate/property/listings#new") %>"><%= link_to "New Features", phcdevworks_real_estate.new_property_feature_path %></li>
230
- </ul>
231
- </li>
232
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
238
+ <div class="menu-submenu">
239
+ <div class="menu-item has-sub">
240
+ <a href="javascript:;" class="menu-link">
241
+ <div class="menu-text">Script Listing</div>
242
+ <div class="menu-caret"></div>
243
+ </a>
244
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_scripts/script/listings") %>">
245
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/listings", "Index") %>">
246
+ <%= link_to phcdevworks_scripts.script_listings_path, class: "menu-link" do %>
247
+ <div class="menu-text">Script Listings</div>
248
+ <% end %>
249
+ </div>
250
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/listings", "New") %>">
251
+ <%= link_to phcdevworks_scripts.new_script_listing_path, class: "menu-link" do %>
252
+ <div class="menu-text">Add a New Listing</div>
253
+ <% end %>
254
+ </div>
255
+ </div>
256
+ </div>
257
+ <div class="menu-item has-sub">
258
+ <a href="javascript:;" class="menu-link">
259
+ <div class="menu-text">Script Listing Extras</div>
260
+ <div class="menu-caret"></div>
261
+ </a>
262
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_scripts/script/authors") %>">
263
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/authors", "Index") %>">
264
+ <%= link_to phcdevworks_scripts.script_authors_path, class: "menu-link" do %>
265
+ <div class="menu-text">Script Authors</div>
266
+ <% end %>
267
+ </div>
268
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/extensions", "Index") %>">
269
+ <%= link_to phcdevworks_scripts.script_extensions_path, class: "menu-link" do %>
270
+ <div class="menu-text">Script Extensions</div>
271
+ <% end %>
272
+ </div>
273
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/versions", "Index") %>">
274
+ <%= link_to phcdevworks_scripts.script_versions_path, class: "menu-link" do %>
275
+ <div class="menu-text">Script Versions</div>
276
+ <% end %>
277
+ </div>
278
+ </div>
279
+ </div>
280
+ <div class="menu-item has-sub">
281
+ <a href="javascript:;" class="menu-link">
282
+ <div class="menu-text">Code Snippets</div>
283
+ <div class="menu-caret"></div>
284
+ </a>
285
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_scripts/snippet/posts") %>">
286
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/snippet/posts", "Index") %>">
287
+ <%= link_to phcdevworks_scripts.snippet_posts_path, class: "menu-link" do %>
288
+ <div class="menu-text">Code Snippets</div>
289
+ <% end %>
290
+ </div>
291
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/snippet/posts", "New") %>">
292
+ <%= link_to phcdevworks_scripts.new_snippet_post_path, class: "menu-link" do %>
293
+ <div class="menu-text">Add a New Code Snippet</div>
294
+ <% end %>
295
+ </div>
296
+ </div>
297
+ </div>
298
+ </div>
299
+ </div>
233
300
  <% end %>
301
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCScripts -->
234
302
 
235
- <% if defined?phcdevworks_core_modules %>
236
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
237
- <li class="nav-header">Categories</li>
238
- <li class="has-sub">
239
- <a href="javascript:;">
240
- <b class="caret"></b>
241
- <i class="fad fa-sitemap"></i>
242
- <span>Categories</span>
303
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCTutorials -->
304
+ <% if defined?phcdevworks_tutorials %>
305
+ <div class="menu-header">PHCTutorials</div>
306
+ <div class="menu-item has-sub">
307
+ <a href="javascript:;" class="menu-link">
308
+ <div class="menu-icon"><i class="material-icons">school</i></div>
309
+ <div class="menu-text">Tutorials</div>
310
+ <div class="menu-caret"></div>
243
311
  </a>
244
- <ul class="sub-menu">
245
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>"><%= link_to("Category Index", phcdevworks_core_modules.post_categories_path) %></li>
246
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_post_category_path) %></li>
247
- </ul>
248
- </li>
249
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
312
+ <div class="menu-submenu">
313
+ <div class="menu-item has-sub">
314
+ <a href="javascript:;" class="menu-link">
315
+ <div class="menu-text">Tutorials</div>
316
+ <div class="menu-caret"></div>
317
+ </a>
318
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts") %>">
319
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/tutorials/posts", "Index") %>">
320
+ <%= link_to phcdevworks_tutorials.tutorial_posts_path, class: "menu-link" do %>
321
+ <div class="menu-text">Tutorial Index</div>
322
+ <% end %>
323
+ </div>
324
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/tutorials/posts", "New") %>">
325
+ <%= link_to phcdevworks_tutorials.new_tutorial_post_path, class: "menu-link" do %>
326
+ <div class="menu-text">Add a New Tutorial</div>
327
+ <% end %>
328
+ </div>
329
+ </div>
330
+ </div>
331
+ <div class="menu-item has-sub">
332
+ <a href="javascript:;" class="menu-link">
333
+ <div class="menu-text">Command Lists</div>
334
+ <div class="menu-caret"></div>
335
+ </a>
336
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_tutorials/command/posts") %>">
337
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/command/posts", "Index") %>">
338
+ <%= link_to phcdevworks_tutorials.command_posts_path, class: "menu-link" do %>
339
+ <div class="menu-text">Command List Index</div>
340
+ <% end %>
341
+ </div>
342
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/command/posts", "New") %>">
343
+ <%= link_to phcdevworks_tutorials.new_command_post_path, class: "menu-link" do %>
344
+ <div class="menu-text">Add a New Command List</div>
345
+ <% end %>
346
+ </div>
347
+ </div>
348
+ </div>
349
+ </div>
350
+ </div>
250
351
  <% end %>
352
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCTutorials -->
251
353
 
354
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCCoreModules -->
252
355
  <% if defined?phcdevworks_core_modules %>
253
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
254
- <li class="nav-header">Marketing</li>
255
- <li class="has-sub">
256
- <a href="javascript:;">
257
- <b class="caret"></b>
258
- <i class="fad fa-link"></i>
259
- <span>Affiliate Links</span>
356
+ <div class="menu-header">Categories</div>
357
+ <div class="menu-item has-sub">
358
+ <a href="javascript:;" class="menu-link">
359
+ <div class="menu-icon"><i class="material-icons">view_list</i></div>
360
+ <div class="menu-text">Categories</div>
361
+ <div class="menu-caret"></div>
260
362
  </a>
261
- <ul class="sub-menu">
262
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/affiliate/links") %>"><%= link_to("Affiliate Link Index", phcdevworks_core_modules.affiliate_links_path) %></li>
263
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/affiliate/links#new") %>"><%= link_to("New Affiliate Link", phcdevworks_core_modules.new_affiliate_link_path) %></li>
264
- </ul>
265
- </li>
266
- <li class="has-sub">
267
- <a href="javascript:;">
268
- <b class="caret"></b>
269
- <i class="fad fa-analytics"></i>
270
- <span>Search Optimization</span>
363
+ <div class="menu-submenu">
364
+ <div class="menu-item has-sub">
365
+ <a href="javascript:;" class="menu-link">
366
+ <div class="menu-text">Categories</div>
367
+ <div class="menu-caret"></div>
368
+ </a>
369
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>">
370
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/post/categories", "Index") %>">
371
+ <%= link_to phcdevworks_core_modules.post_categories_path, class: "menu-link" do %>
372
+ <div class="menu-text">Category Index</div>
373
+ <% end %>
374
+ </div>
375
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/post/categories", "New") %>">
376
+ <%= link_to phcdevworks_core_modules.new_post_category_path, class: "menu-link" do %>
377
+ <div class="menu-text">Add a New Category</div>
378
+ <% end %>
379
+ </div>
380
+ </div>
381
+ </div>
382
+ </div>
383
+ </div>
384
+ <div class="menu-header">Marketing</div>
385
+ <div class="menu-item has-sub">
386
+ <a href="javascript:;" class="menu-link">
387
+ <div class="menu-icon"><i class="material-icons">query_stats</i></div>
388
+ <div class="menu-text">Search Optimization</div>
389
+ <div class="menu-caret"></div>
271
390
  </a>
272
- <ul class="sub-menu">
273
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations") %>"><%= link_to("SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path) %></li>
274
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations#new") %>"><%= link_to("Add SEO Data", phcdevworks_core_modules.new_marketing_optimization_path) %></li>
275
- </ul>
276
- </li>
277
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
278
- <% end %>
279
-
280
- <% if current_user and current_user.admin? %>
281
- <li class="nav-header">Administration</li>
282
- <% if defined?phcdevworks_accounts_stripe and current_user.admin? %>
283
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
284
- <li class="has-sub">
285
- <a href="javascript:;">
286
- <b class="caret"></b>
287
- <i class="fab fa-cc-visa"></i>
288
- <span>Accounting</span>
289
- </a>
290
- <ul class="sub-menu">
291
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Invoices", phcdevworks_accounts_stripe.admin_invoices_path) %></li>
292
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Subscriptions", phcdevworks_accounts_stripe.admin_subscriptions_path) %></li>
293
- </ul>
294
- </li>
295
- <li class="has-sub">
296
- <a href="javascript:;">
297
- <b class="caret"></b>
298
- <i class="fad fa-money-check-alt"></i>
299
- <span>Services</span>
300
- </a>
301
- <ul class="sub-menu">
302
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/products#admin_products_list") %>"><%= link_to("Product List", phcdevworks_accounts_stripe.admin_products_path) %></li>
303
- </ul>
304
- </li>
305
- <li class="has-sub">
306
- <a href="javascript:;">
307
- <b class="caret"></b>
308
- <i class="fad fa-users"></i>
309
- <span>Customers</span>
310
- </a>
311
- <ul class="sub-menu">
312
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/customers#admin_customer_list") %>"><%= link_to("Customer List", phcdevworks_accounts_stripe.admin_customers_path) %></li>
313
- </ul>
314
- </li>
315
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
316
- <% end %>
317
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
318
- <li class="has-sub">
319
- <a href="javascript:;">
320
- <b class="caret"></b>
321
- <i class="fad fa-user-lock"></i>
322
- <span>User Logins</span>
391
+ <div class="menu-submenu">
392
+ <div class="menu-item has-sub">
393
+ <a href="javascript:;" class="menu-link">
394
+ <div class="menu-text">SEO Data</div>
395
+ <div class="menu-caret"></div>
396
+ </a>
397
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>">
398
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/marketing/optimizations", "Index") %>">
399
+ <%= link_to phcdevworks_core_modules.marketing_optimizations_path, class: "menu-link" do %>
400
+ <div class="menu-text">SEO Data Index</div>
401
+ <% end %>
402
+ </div>
403
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/marketing/optimizations", "New") %>">
404
+ <%= link_to phcdevworks_core_modules.new_marketing_optimization_path, class: "menu-link" do %>
405
+ <div class="menu-text">Add New SEO Data</div>
406
+ <% end %>
407
+ </div>
408
+ </div>
409
+ </div>
410
+ </div>
411
+ </div>
412
+ <div class="menu-item has-sub">
413
+ <a href="javascript:;" class="menu-link">
414
+ <div class="menu-icon"><i class="material-icons">link</i></div>
415
+ <div class="menu-text">Affiliate Linking</div>
416
+ <div class="menu-caret"></div>
323
417
  </a>
324
- <ul class="sub-menu">
325
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_all_path %></li>
326
- </ul>
327
- </li>
328
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
418
+ <div class="menu-submenu">
419
+ <div class="menu-item has-sub">
420
+ <a href="javascript:;" class="menu-link">
421
+ <div class="menu-text">Affiliate Links</div>
422
+ <div class="menu-caret"></div>
423
+ </a>
424
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_core_modules/affiliate/links") %>">
425
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/affiliate/links", "Index") %>">
426
+ <%= link_to phcdevworks_core_modules.affiliate_links_path, class: "menu-link" do %>
427
+ <div class="menu-text">Affiliate Link Index</div>
428
+ <% end %>
429
+ </div>
430
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/affiliate/links", "New") %>">
431
+ <%= link_to phcdevworks_core_modules.new_affiliate_link_path, class: "menu-link" do %>
432
+ <div class="menu-text">Add a New Affiliate Link</div>
433
+ <% end %>
434
+ </div>
435
+ </div>
436
+ </div>
437
+ </div>
438
+ </div>
329
439
  <% end %>
440
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCCoreModules -->
330
441
 
331
- <li class="nav-header">Your Account</li>
332
- <% if defined?phcdevworks_accounts_stripe and current_user %>
333
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
334
- <li class="has-sub">
335
- <a href="javascript:;">
336
- <b class="caret"></b>
337
- <i class="fad fa-money-check-alt"></i>
338
- <span>Your Subscription</span>
442
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCAccounts -->
443
+
444
+ <% if defined?phcdevworks_accounts_stripe and current_user.admin? %>
445
+ <div class="menu-header">Subscription Administration</div>
446
+ <div class="menu-item has-sub">
447
+ <a href="javascript:;" class="menu-link">
448
+ <div class="menu-icon"><i class="material-icons">payments</i></div>
449
+ <div class="menu-text">Stripe</div>
450
+ <div class="menu-caret"></div>
339
451
  </a>
340
- <ul class="sub-menu">
341
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Your Subscription", phcdevworks_accounts_stripe.user_subscription_path) %></li>
342
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/products#admin_product_list") %>"><%= link_to("Switch Subscriptions", phcdevworks_accounts_stripe.user_subscription_path) %></li>
343
- </ul>
344
- </li>
345
- <li class="has-sub">
346
- <a href="javascript:;">
347
- <b class="caret"></b>
348
- <i class="fad fa-file-invoice"></i>
349
- <span>Your Invoices</span>
350
- </a>
351
- <ul class="sub-menu">
352
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/user/invoices#admin_customer_list") %>"><%= link_to("Current Invoice", phcdevworks_accounts_stripe.user_invoices_path) %></li>
353
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/user/invoices#admin_customer_list") %>"><%= link_to("Past Invoices", phcdevworks_accounts_stripe.admin_customers_path) %></li>
354
- </ul>
355
- </li>
356
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
452
+ <div class="menu-submenu">
453
+ <div class="menu-item has-sub">
454
+ <a href="javascript:;" class="menu-link">
455
+ <div class="menu-text">Accounting</div>
456
+ <div class="menu-caret"></div>
457
+ </a>
458
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions") %>">
459
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/subscriptions", "admin_subscription_list") %>">
460
+ <%= link_to phcdevworks_accounts_stripe.admin_invoices_path, class: "menu-link" do %>
461
+ <div class="menu-text">Invoices</div>
462
+ <% end %>
463
+ </div>
464
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/subscriptions", "admin_subscription_list") %>">
465
+ <%= link_to phcdevworks_accounts_stripe.admin_subscriptions_path, class: "menu-link" do %>
466
+ <div class="menu-text">Subscriptions</div>
467
+ <% end %>
468
+ </div>
469
+ </div>
470
+ </div>
471
+ <div class="menu-item has-sub">
472
+ <a href="javascript:;" class="menu-link">
473
+ <div class="menu-text">Services & Products</div>
474
+ <div class="menu-caret"></div>
475
+ </a>
476
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/products") %>">
477
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/products", "admin_products_list") %>">
478
+ <%= link_to phcdevworks_accounts_stripe.admin_products_path, class: "menu-link" do %>
479
+ <div class="menu-text">Product List</div>
480
+ <% end %>
481
+ </div>
482
+ </div>
483
+ </div>
484
+ <div class="menu-item has-sub">
485
+ <a href="javascript:;" class="menu-link">
486
+ <div class="menu-text">Subscribers</div>
487
+ <div class="menu-caret"></div>
488
+ </a>
489
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/customers") %>">
490
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/customers", "admin_customer_list") %>">
491
+ <%= link_to phcdevworks_accounts_stripe.admin_customers_path, class: "menu-link" do %>
492
+ <div class="menu-text">Subscriber List</div>
493
+ <% end %>
494
+ </div>
495
+ </div>
496
+ </div>
497
+ </div>
498
+ </div>
357
499
  <% end %>
358
-
359
- <% if current_user %>
360
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
361
- <li class="has-sub">
362
- <a href="javascript:;">
363
- <b class="caret"></b>
364
- <i class="fad fa-user"></i>
365
- <span>Login Settings</span>
500
+ <% if current_user and current_user.admin? %>
501
+ <div class="menu-header">Login Administration</div>
502
+ <div class="menu-item has-sub">
503
+ <a href="javascript:;" class="menu-link">
504
+ <div class="menu-icon"><i class="material-icons">admin_panel_settings</i></div>
505
+ <div class="menu-text">Auth Administration</div>
506
+ <div class="menu-caret"></div>
366
507
  </a>
367
- <ul class="sub-menu">
368
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts/user/edit") %>"><%= link_to "Settings", phcdevworks_accounts.edit_user_registration_path %></li>
369
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts/user/new") %>"><%= link_to "Logout", phcdevworks_accounts.destroy_user_session_path, method: :delete %></li>
370
- </ul>
371
- </li>
372
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
508
+ <div class="menu-submenu">
509
+ <div class="menu-item has-sub">
510
+ <a href="javascript:;" class="menu-link">
511
+ <div class="menu-text">Users</div>
512
+ <div class="menu-caret"></div>
513
+ </a>
514
+ <div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_devise/admin/users") %>">
515
+ <div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_devise/admin/users", "admin_subscription_list") %>">
516
+ <%= link_to phcdevworks_accounts_devise.admin_users_all_path, class: "menu-link" do %>
517
+ <div class="menu-text">User List</div>
518
+ <% end %>
519
+ </div>
520
+ </div>
521
+ </div>
522
+ </div>
523
+ </div>
373
524
  <% end %>
525
+ <!-- -PHCDev- Page Container - Sidebar - Navigation - PHCAccounts -->
374
526
 
375
- <!-- -PHC- Sidebar - Sidebar Minifier -->
376
- <li>
377
- <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
378
- <i class="fa fa-angle-double-left"></i>
379
- </a>
380
- </li>
381
- <!-- -PHC- Sidebar - Sidebar Minifier -->
382
-
383
- </ul>
384
- <!-- -PHC- Sidebar - Sidebar Navigation -->
385
-
527
+ </div>
386
528
  </div>
387
- <!-- -PHC- Sidebar for PHCDevworks Engines -->
529
+ <!-- -PHCDev- Page Container - Sidebar -->