- if @is_summary_report
  %table.table.table-bordered
    %thead
      %tr
        %th= translate_helper("name")
        %th= translate_helper("inactivated_reason")
        %th= translate_helper("phone_number")
    %tbody
      - @drivers.each do |driver|
        %tr
          %td= driver.user_name
          %td= driver.inactivated_reason
          %td= format_phone_number(driver.phone_number)
- else
  %table.table.table-bordered
    %thead
      %tr
        %th= translate_helper("name")
        %th= translate_helper("permanent_inactive")
        %th= translate_helper("inactivated_start_date")
        %th= translate_helper("inactivated_end_date")
        %th= translate_helper("inactivated_reason")
        %th= translate_helper("phone_number")
    %tbody
      - @drivers.each do |driver|
        %tr
          %td= driver.user_name
          - if driver.permanent_inactivated?
            %td Permanent
            %td= format_date(driver.inactivated_date)
            %td
          - else
            %td
            %td= format_date(driver.inactivated_start_date)
            %td= format_date(driver.inactivated_end_date)
          %td= driver.active_status_changed_reason
          %td= format_phone_number(driver.phone_number)


- if @is_summary_report
  %table.table.table-bordered
    %thead
      %tr
        %th= translate_helper("name")
        %th= translate_helper("inactivated_reason")
        %th= translate_helper("phone_number")
    %tbody
      - @drivers.each do |driver|
        %tr
          %td= driver.user_name
          %td= driver.inactivated_reason
          %td= format_phone_number(driver.phone_number)
- else
  %table.table.table-bordered
    %thead
      %tr
        %th= translate_helper("name")
        %th= translate_helper("permanent_inactive")
        %th= translate_helper("inactivated_start_date")
        %th= translate_helper("inactivated_end_date")
        %th= translate_helper("inactivated_reason")
        %th= translate_helper("phone_number")
    %tbody
      - @drivers.each do |driver|
        %tr
          %td= driver.user_name
          - if driver.permanent_inactivated?
            %td Permanent
            %td
            %td
          - else
            %td
            %td= format_date(driver.inactivated_start_date)
            %td= format_date(driver.inactivated_end_date)
          %td= driver.active_status_changed_reason
          %td= format_phone_number(driver.phone_number)


Remove inactivated_date as current system doesnt track it for permnanent inactivated driver
Remove inactivated_date as current system doesnt track it for permnanent inactivated driver
