<script type="text/template" id="trashedUserListTemplate">
    <input type="hidden" class="trashed-user-id" value="<%= id %>">
    <td>
        <%= deact_reason  %>
    </td>
    <td>
        <%= (deact_date) ? moment(deact_date).format("DD/MM/YYYY") : '' %>
    </td>

    <% if(profile) { %>
    <td>
        <%= profile.p_id %>
    </td>
    <% } else { %> <td></td> <% } %>
    <td><%= name %> <%= last_name %></td>
    <td><%= email %></td>
    <% if(profile) { %>
    <td><%= (profile.gender == 1) ? 'Male' : 'Female' %></td>
    <% } else { %> <td></td> <% } %>

    <% if(profile) { %>
    <td>
        <% if(profile.marital_status == 1) { %>Single
        <% } else if(profile.marital_status == 2) { %>Divorcee
        <% } else if(profile.marital_status == 3) { %>Annulled
        <% } else { %>Widow/Widower
        <% } %>
    </td>
    <% } else { %> <td></td> <% } %>

    <% if(profile) { %>
    <td>
        <% if(profile.education == 1) { %>School
        <% } else if(profile.education == 2) { %>College
        <% } else if(profile.education == 3) { %>University Degree
        <% } else if(profile.education == 4) { %>Diploma
        <% } else if(profile.education == 5) { %>Masters
        <% } else { %>Further
        <% } %>
    </td>
    <% } else { %> <td></td> <% } %>

    <% if(profile) { %>
    <td>
        <% if(profile.profession == 1) { %>Chiropractor
        <% } else if(profile.profession == 2) { %>Dentist
        <% } else if(profile.profession == 3) { %>Dietitian or Nutritionist
        <% } else if(profile.profession == 4) { %>Optometrist
        <% } else if(profile.profession == 5) { %>Pharmacist
        <% } else if(profile.profession == 8) { %>Podiatrist
        <% } else if(profile.profession == 9) { %>Registered Nurse
        <% } else if(profile.profession == 10) { %>Therapist
        <% } else if(profile.profession == 11) { %>Veterinarian
        <% } else if(profile.profession == 13) { %>Other Healthcare Professional
        <% } else if(profile.profession == 19) { %>Chief Executive
        <% } else if(profile.profession == 20) { %>General and Operations Manager
        <% } else if(profile.profession == 21) { %>Advertising, Marketing, Promotions, Public Relations, and Sales
        Manager
        <% } else if(profile.profession == 23) { %>Construction Manager
        <% } else if(profile.profession == 24) { %>Engineering Manager
        <% } else if(profile.profession == 25) { %>Accountant
        <% } else if(profile.profession == 26) { %>Business Operations or Financial Specialist
        <% } else if(profile.profession == 27) { %>Business Owner
        <% } else if(profile.profession == 30) { %>Architect
        <% } else if(profile.profession == 31) { %>Engineer
        <% } else if(profile.profession == 32) { %>Other Architecture and Engineering Occupation
        <% } else if(profile.profession == 34) { %>Teacher
        <% } else if(profile.profession == 36) { %>Teaching Assistant
        <% } else if(profile.profession == 40) { %>Computer Specialist
        <% } else if(profile.profession == 41) { %>Counselor, Social Worker, or Other Community and Social Service
        Specialist
        <% } else if(profile.profession == 42) { %>Lawyer
        <% } else if(profile.profession == 43) { %>Life Scientist (e.g., Animal, Food, Soil, or Biological
        Scientist, Zoologist)
        <% } else if(profile.profession == 44) { %>Scientist
        <% } else if(profile.profession == 45) { %>Religious Worker (e.g., Clergy, Director of Religious Activities
        or Education)
        <% } else if(profile.profession == 46) { %>Social Scientist and Related Worker
        <% } else if(profile.profession == 47) { %>Other Professional Occupation
        <% } else if(profile.profession == 50) { %>Financial Clerk
        <% } else if(profile.profession == 51) { %>Secretary or Administrative Assistant
        <% } else if(profile.profession == 53) { %>Other Office and Administrative Support Occupation
        <% } else if(profile.profession == 56) { %>Chef or Head Cook
        <% } else if(profile.profession == 57) { %>Cook or Food Preparation Worker
        <% } else if(profile.profession == 58) { %>Food and Beverage Serving Worker (e.g., Bartender, Waiter,
        Waitress)
        <% } else if(profile.profession == 59) { %>Building and Grounds Cleaning and Maintenance
        <% } else if(profile.profession == 60) { %>Hairdresser
        <% } else if(profile.profession == 61) { %>Sales Supervisor
        <% } else if(profile.profession == 62) { %>Retail Sales Worker
        <% } else if(profile.profession == 63) { %>Insurance Sales Agent
        <% } else if(profile.profession == 64) { %>Sales Representative
        <% } else if(profile.profession == 65) { %>Real Estate Sales Agent
        <% } else if(profile.profession == 66) { %>Other Services Occupation
        <% } else if(profile.profession == 74) { %>Aircraft Pilot or Flight Engineer
        <% } else if(profile.profession == 76) { %>Other Transportation Occupation
        <% } else if(profile.profession == 79) { %>Homemaker
        <% } else if(profile.profession == 82) { %>Doctor
        <% } else if(profile.profession == 83) { %>Police Officer
        <% } else if(profile.profession == 84) { %>Firefighter
        <% } else if(profile.profession == 85) { %>Team Manager
        <% } else if(profile.profession == 86) { %>Office Manager
        <% } else if(profile.profession == 87) { %>Electrician
        <% } else if(profile.profession == 88) { %>Plumber
        <% } else if(profile.profession == 89) { %>Builder
        <% } else if(profile.profession == 90) { %>Taxi Driver
        <% } else if(profile.profession == 91) { %>Delivery Driver
        <% } else if(profile.profession == 92) { %>Graphic Designer
        <% } else if(profile.profession == 93) { %>Bid Manager
        <% } else if(profile.profession == 94) { %>Project Manager
        <% } else if(profile.profession == 95) { %>IT Consultant
        <% } else if(profile.profession == 96) { %>Structural Engineer
        <% } else if(profile.profession == 97) { %>Civil Engineer
        <% } else if(profile.profession == 98) { %>IT Engineer
        <% } else if(profile.profession == 99) { %>Gas Engineer
        <% } else if(profile.profession == 100) { %>Business Analyst
        <% } else if(profile.profession == 101) { %>Case worker
        <% } else if(profile.profession == 102) { %>Web Developer
        <% } else if(profile.profession == 103) { %>Psychologist
        <% } else if(profile.profession == 104) { %>Radiographer
        <% } else if(profile.profession == 105) { %>Sonographer
        <% } else if(profile.profession == 106) { %>Midwife
        <% } else if(profile.profession == 107) { %>Building surveyor
        <% } else if(profile.profession == 108) { %>Fashion designer
        <% } else if(profile.profession == 109) { %>Personal trainer
        <% } else if(profile.profession == 110) { %>Stockbroker
        <% } else if(profile.profession == 111) { %>Insurance broker
        <% } else if(profile.profession == 80) { %>Other Occupation <% } %>
    </td>
    <% } else { %> <td></td> <% } %>

    <% if(profile) { %>
    <td>
        <% if(profile.nationality == 1) { %>British
        <% } else if(profile.nationality == 2) { %>Indian
        <% } else if(profile.nationality == 3) { %>Pakistani
        <% } else if(profile.nationality == 4) { %>Bangladeshi
        <% } else if(profile.nationality == 5) { %>American
        <% } else if(profile.nationality == 6) { %>Canadian
        <% } else if(profile.nationality == 7) { %>Australian
        <% } %>
    </td>
    <% } else { %> <td></td> <% } %>

    <% if(profile) { %>
    <td>
        <% if(profile.ethnicity == 1) { %>Indian
        <% } else if(profile.ethnicity == 2) { %>Pakistani
        <% } else if(profile.ethnicity == 3) { %>Bangladeshi
        <% } else if(profile.ethnicity == 4) { %>Arab
        <% } else if(profile.ethnicity == 5) { %>White
        <% } else if(profile.ethnicity == 6) { %>Caucasian
        <% } else if(profile.ethnicity == 7) { %>Other Asian Mixed
        <% } else if(profile.ethnicity == 8) { %>Other
        <% } %>
    </td>
    <% } else { %> <td></td> <% } %>

    <% if(profile) { %>
    <td>
        <%= moment(profile.dob).format("DD/MM/YYYY") %>
    </td>
    <% } else { %> <td></td> <% } %>

    <% if(profile) { %>
    <td>
        <%= profile.age %>
    </td>
    <% } else { %> <td></td> <% } %>

    <% if(profile) { %>
    <td>
        <%= profile.applicant_contact_no %>
    </td>
    <% } else { %> <td></td> <% } %>

    <% if(profile) { %>
    <td>
        <%= profile.town_city %>
    </td>
    <% } else { %> <td></td> <% } %>

    <% if(profile) { %>
    <td>
        <%= profile.associated_mosque %>
    </td>
    <% } else { %> <td></td> <% } %>

    <% if(profile) { %>
    <td>
        <%= moment(profile.created_at).format("DD/MM/YYYY") %>
    </td>
    <% } else { %> <td></td> <% } %>
    <td>
        <button type="button" class="btn btn-primary btn-round btn-sm recover-btn"><i class="fa fa-undo"></i></button>
        <button type="button" class="btn btn-danger btn-round btn-sm per-delete-btn"><i class="fa fa-trash"></i></button>
    </td>
</script>
