.row
%div{class: "col-md-offset-2 col-md-8"}
-bs_panel('Subscriptions','primary') do
%table#subscriptions{class: 'table table-stripped'}
%thead
%tr
%td Type
%th Start date
%th Years
%th End date
%th Amount Paid
-if can?(:maintain,User)
%th Welcome Letter
%th Reminder
%tbody
-@user.subscriptions.order(:id).each do |subs|
%tr
%td= subs.subs_type
%td= subs.start_date
%td= subs.subs_years
%td= subs.end_date
%td= subs.amount_paid
-if can?(:maintain,User)
%td= subs.welcome_letter_sent
%td= subs.reminder_sent
-if can?(:maintain,User)
%tfoot
%tr
%td{colspan: 6}
=link_to 'Add subscription',new_user_subscription_path(@user),class: 'btn-sm btn-primary'