Use macro to render the shipment state on details page