{{- $text := .item -}} {{- $parts := split $text "(" -}}
{{- with index $parts 0 -}} {{ . }} {{- end -}} {{- if gt (len $parts)
1 -}}
{{- $innerParts := split (index $parts 1) ")" -}} {{- with index
$innerParts 0 -}} ({{ . }}) {{- end -}}
{{- if gt (len $innerParts) 1 -}} {{- index $innerParts 1 -}} {{- end
-}} {{- end -}}
{{ .cat }}
{{ if ne .quant "" }}
Quantity:
{{ .quant }}
{{ end }} {{ if ne .dimensions "" }}
Dimensions:
{{ .dimensions }}
{{ end }}
{{ if ne .baseCost "" }}
Purchase Cost:
{{ .purchaseCost }}
{{ end }}{{ if ne .baseCost "" }}
Rental Cost:
{{ .baseCost }}
{{ end }} {{ if ne .deliveryPickup "" }}
+ Delivery Both Ways:
{{ .deliveryPickup }}
{{ end }}
— or —
{{ if ne .installBreakdown "" }}
+ Setup & Breakdown:
{{ .installBreakdown }}
{{ end }}