{{ company_name }} {{ company_address }} Website: {{ company_website }} E-Mail: {{ company_email }} PHONE: {{ company_phone }} {{ title }} {% for pair in meta_rows %}{% for slot in pair %}{% if slot %}{{ slot[0] }} {{ slot[1] }} {% endif %}{% endfor %} {% endfor %} {{ grids.doctors.headers | join(' | ') }} {% for r in grids.doctors.rows %}{{ r.cells | join(' | ') }} {% endfor %} {{ "CHEMISTS TO VISIT" if is_plan else "CHEMIST VISIT" }} {{ grids.chemists.headers | join(' | ') }} {% for r in grids.chemists.rows %}{{ r.cells | join(' | ') }} {% endfor %} {% if grids.stockists %}{{ "STOCKISTS TO VISIT" if is_plan else "STOCKIST VISIT" }} {{ grids.stockists.headers | join(' | ') }} {% for r in grids.stockists.rows %}{{ r.cells | join(' | ') }} {% endfor %} {% endif %}{% if grids.missed %}PLANNED VISITS NOT MADE {{ grids.missed.headers | join(' | ') }} {% for r in grids.missed.rows %}{{ r.cells | join(' | ') }} {% endfor %} {% endif %}{% if not is_plan %}STOCKIST VISIT : {{ stockist_visit }} ORDER : {{ order_value }} {% endif %} MR Signature: {{ mr_signed }} {% if approval %}APPROVAL SIGNATURE: {{ approval.name }} ({{ approval.at }}) {% endif %}