{runquery 1}{runquery 2}{runquery 3}{runquery 4}
{translatestatictext 'Spa Statistics for'.{const language}} {field 4.Name2}
{dif (({field 1.Countx.0}=0) and ('{field 2.BookingDescription_DE}'='') and ({field 3.Countx.0}=0))}
{translatestatictext 'No Spa bookings'.{const language}}
{/dif}{else}
- {translatestatictext 'Top 5 Visit Count by Package'.{const language}}
- {translatestatictext 'Package'.{const language}}
  {translatestatictext 'Visits'.{const language}}
{forall 1}
- {field 1.BookingDescription_DE}
  {field 1.Countx}
{/forall}
{dif {field 3.Countx.0}=0}{/dif}{else}
- {translatestatictext 'Top 5 Visit Count by Employee'.{const language}}
- {translatestatictext 'Employee'.{const language}}
  {translatestatictext 'Visits'.{const language}}
{forall 3}
- {field 3.ResDESCR_DE}
  {field 3.Countx}
{/forall}
{/else}
- {translatestatictext 'Visit Details'.{const language}}
- {translatestatictext 'Package'.{const language}}
  {translatestatictext 'Date'.{const language}}
  {translatestatictext 'From'.{const language}}
  {translatestatictext 'Until'.{const language}}
  {translatestatictext 'Employee/Resource'.{const language}}
{forall 2}
- {field 2.BookingDescription_DE}
  {field 2.BookingDate}
  {field 2.BOOKINGSTARTDATETIME}
  {field 2.BOOKINGENDDATETIME}
  {field 2.RESDESCR_DE}
{/forall} {/else}