%- include('../partials/header', { title: 'Card Whitelist & Gas Cards' }) %>
Manage registration card whitelist and gas card assignments.
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]; %>| Card | Label | Expiry | Status | Actions |
|---|---|---|---|---|
| ****<%= w.card_digits %> | <%= w.label || '—' %> | <% if (w.expiry_date) { %><%= w.expiry_date %><%= w.expiry_date <= todayStr ? ' (Expired)' : '' %><% } else { %>No Expiry<% } %> | <%= w.status %> |
|
No cards in whitelist — open registration.
| Card Number | Type | Expiry | Truck | Assigned User | Status | Actions |
|---|---|---|---|---|---|---|
| •••• •••• •••• <%= gc.card_number.slice(-4) %> | <%= gc.card_type %> | <%= gc.expiry_date %> | <%= gc.truck_assigned || '—' %> |
No gas cards configured yet.