templates/chat/conversacion-header.html.twig line 1

Open in your IDE?
  1. <div class="row chat-header-row">
  2.     {% if oPacienteVc is defined %}
  3.         {% if oPacienteVc is not null %}
  4.             <div
  5.                 class="col-lg-10 header-patient-container">
  6.                 {# {% set foto = (oPacienteVc is not null) ? oPacienteVc.foto : asset('assets/img/user.png') %} #}
  7.                 {% for paciente in oPacienteVc%}        
  8.                     {% if paciente.foto is defined %}
  9.                         <div class="header-single-patient">
  10.                             {% set foto = asset('assets/img/user.png') %}
  11.                             {% if paciente is not null %}
  12.                                 {% if ('phpPerfil' in paciente.foto) or ('phppaciente' in paciente.foto) %}
  13.                                     {% set foto = paciente.foto %}
  14.                                 {% endif %}
  15.                             {% endif %}
  16.                             <a href="javascript:void(0);" data-toggle="modal" data-target="#view_info">
  17.                                 <img src="{{ foto }}" alt="avatar">
  18.                             </a>
  19.                             <div class="chat-about">
  20.                                 <h6>
  21.                                     {{ (oPacienteVc is not null) ? paciente.nombre~" "~paciente.apellidos : numTelefono }}
  22.                                 </h6>
  23.                                 <span class="status">
  24.                                     {{ aTelefonosPaciente[loop.index-1] }}
  25.                                 </span>
  26.                             </div>
  27.                         </div>
  28.                     {% else %}
  29.                         <div class="header-single-patient">
  30.                             {% set foto = asset('assets/img/user.png') %}
  31.                             <a href="javascript:void(0);" data-toggle="modal" data-target="#view_info">
  32.                                 <img src="{{ foto }}" alt="avatar">
  33.                             </a>
  34.                             <div class="chat-about">
  35.                                 <h6>
  36.                                     {{ (oPacienteVc is not null) ? paciente.numerotelefonodesconocido : '' }}
  37.                                 </h6>
  38.                             </div>
  39.                         </div>
  40.                     {% endif %}
  41.                 {% endfor %}
  42.             </div>
  43.             <div class="col-lg-6 hidden-sm text-right">{# <a href="javascript:void(0);" class="btn btn-outline-primary"><i
  44.                                                                                                                                                                                                                                                                                                                                                         class="fa fa-image"></i></a> #}
  45.                 {#                 <a data-centroid="{{ oPacienteVc.centroId }}" data-pacienteid="{{ oPacienteVc.idVc }}" style="cursor: pointer" class="btn btn-outline-warning btnDetailPaciente">
  46.                                                                                                                                                                                                                                                                                                                     <i class="fa fa-question"></i>
  47.                                                                                                                                                                                                                                                                                                                 </a> #}
  48.             </div>
  49.         {% endif %}
  50.     {% endif %}
  51. </div>