<%- include('../partials/header', { title: 'Card Whitelist & Gas Cards' }) %>

Cards & Whitelist

Manage registration card whitelist and gas card assignments.

<% if (error) { %>
<%= decodeURIComponent(error) %>
<% } %> <% if (success) { %>
<%= decodeURIComponent(success) %>
<% } %>

Registration Card Whitelist

<%= whitelist.length %> authorized card(s)

When cards are listed here, only users whose card last 4 digits match can register. Empty list = open registration.

<% if (whitelist && whitelist.length > 0) { %> <% const todayStr = new Date().toISOString().split('T')[0]; const in60Days = new Date(Date.now() + 60*24*60*60*1000).toISOString().split('T')[0]; %>
<% whitelist.forEach(w => { %> <% }) %>
CardLabelExpiryStatusActions
****<%= w.card_digits %> <%= w.label || '—' %> <% if (w.expiry_date) { %><%= w.expiry_date %><%= w.expiry_date <= todayStr ? ' (Expired)' : '' %><% } else { %>No Expiry<% } %> <%= w.status %>
<% } else { %>

No cards in whitelist — open registration.

<% } %>

Gas Card Management

<%= gasCards.length %> gas card(s)
<% if (gasCards && gasCards.length > 0) { %>
<% gasCards.forEach(gc => { %> <% }) %>
Card NumberTypeExpiryTruckAssigned UserStatusActions
•••• •••• •••• <%= gc.card_number.slice(-4) %> <%= gc.card_type %> <%= gc.expiry_date %> <%= gc.truck_assigned || '—' %>
<% } else { %>

No gas cards configured yet.

<% } %>
<%- include('../partials/footer') %>