Trip Details
Pickup Location
<% if (true || tripData.trip_type === 'single-ride') { %> <%= tripData.actual_from_loc || tripData.trip_from_loc %> <% } else { %> <%= tripData.trip_from_loc || tripData.actual_from_loc %> <% } %>
Drop Location
<% if (true || tripData.trip_type === 'single-ride') { %> <%= tripData.actual_to_loc || tripData.trip_to_loc %> <% } else { %> <%= tripData.trip_to_loc || tripData.actual_to_loc %> <% } %>
<% if (tripData.stops) { let stops = []; try { stops = typeof tripData.stops === 'string' ? JSON.parse(tripData.stops) : tripData.stops; } catch (e) { stops = []; } if (Array.isArray(stops) && stops.length > 0) { %>
Stops (<%= stops.length %>)
<% stops.forEach((stop, index) => { %>
<%= index + 1 %>
<%= stop.address || 'Unknown' %>
<% if (stop.status) { %>
<%= stop.status.toUpperCase() %>
<% } %>
<% }); %>
<% } } %>
Distance
<%= tripData.trip_distance %> <%= tripData.trip_dunit %>
Trip Date
Loading...
Trip Status
<% if (tripData.Driver) { %>
Driver Information
<%= tripData.Driver.d_name %>
<%= tripData.Driver.d_phone %>
<% } %>
Pickup
<% if (true || tripData.trip_type === 'single-ride') { %> <%= tripData.actual_from_loc || tripData.trip_from_loc %> <% } else { %> <%= tripData.trip_from_loc || tripData.actual_from_loc %> <% } %>