{{#if rateSchedule.isEmpty}}
<p class="muted-note">
  No published rate schedule is currently on file for this corridor. Applicable charges will be quoted
  by the Service Provider per shipment in accordance with the prevailing EDR tariff.
</p>
{{else}}
<p>
  The charges below are the current published railway tariff for this contract's trade direction and
  freight type, expressed as unit prices per origin → destination lane. Quantities and the resulting
  totals are determined per shipment at booking time.
</p>
<table class="schedule">
  <thead>
    <tr>
      <th>Route / Service</th>
      <th>Cargo / Equipment</th>
      <th>Unit price</th>
    </tr>
  </thead>
  <tbody>
    {{#if rateSchedule.freightLanes.length}}
    <tr><th colspan="3">Railway Freight — Origin → Destination</th></tr>
    {{#each rateSchedule.freightLanes}}
    <tr>
      <td>{{route}}</td>
      <td>{{cargo}}</td>
      <td>{{currency}} {{amount}} {{unit}}</td>
    </tr>
    {{/each}}
    {{/if}}

    {{#if rateSchedule.additionalServices.length}}
    <tr><th colspan="3">Additional Services</th></tr>
    {{#each rateSchedule.additionalServices}}
    <tr>
      <td>{{route}}</td>
      <td>{{cargo}}</td>
      <td>{{currency}} {{amount}} {{unit}}</td>
    </tr>
    {{/each}}
    {{/if}}

    {{#if rateSchedule.surcharges.length}}
    <tr><th colspan="3">Surcharges, Demurrage &amp; Fees</th></tr>
    {{#each rateSchedule.surcharges}}
    <tr>
      <td>{{route}}</td>
      <td>{{cargo}}</td>
      <td>{{currency}} {{amount}} {{unit}}</td>
    </tr>
    {{/each}}
    {{/if}}
  </tbody>
</table>
{{/if}}
