templates/kernel/user/widget/Widget-User-SalesOverview.html.twig line 1

Open in your IDE?
  1.     <div class="ibox">
  2.         <div class="ibox-title">
  3.             <h5>{{ 'SalesOverview' | trans }}</h5>
  4.         </div>
  5.         <div class="ibox-content">
  6.             
  7.             {%  set info =  finance_service.salesSummary() %}
  8.             
  9.         <table class="table table-striped table-bordered datatable desc" cellspacing="0" width="100%" id="example" >    
  10.         <thead>
  11.             <tr>
  12.                 <th data-priority="1">{{ 'User' | trans }}</th>
  13.                 {% if widget.boolean1 == true %}
  14.                 <th data-priority="1">{{ 'Leads.Open' | trans }}</th>
  15.                 {% endif %}
  16.                 <th data-priority="1">{{ 'Proposal.Open' | trans }}</th>
  17.                 <th data-priority="1">{{ 'Proposal.Interview' | trans }}</th>
  18.                 <th data-priority="1">{{ 'Contract.Active' | trans }}</th>
  19.                 <th data-priority="1">{{ 'Contract.Actions' | trans }}</th>
  20.                             </tr>
  21.         </thead>
  22.         <tbody>
  23.          {% for key,recruiter in info.recruiterarray %}
  24.          <tr>
  25.                 <td>{{recruiter}}</td>
  26.                 {% if widget.boolean1 == true %}
  27.                 <td><a href="{{ path('lead_index', {'open':1, 'user':key}) }}" >{{info.openleadarray[key]}}</a></td>
  28.                 {% endif %}
  29.                 <td><a href="{{ path('proposal_index', {'open':1, 'user':key}) }}" >{{info.openproposalarray[key]}}</a></td>
  30.                 <td><a href="{{ path('proposal_index', {'open':1, 'interview':1, 'user':key}) }}" >{{info.openinterviewarray[key]}}</a></td>
  31.                 <td><a href="{{ path('contract_index', {'open':1, 'user':key}) }}" >{{info.activecontractarray[key]}} {%if info.activesecondarycontractarray[key] != 0 %} (+ {{info.activesecondarycontractarray[key]}}){%endif%}</a></td>
  32.                 <td><a href="{{ path('contract_index', {'action':1, 'user':key}) }}" >{{info.actionrequiredcontractarray[key]}}</a></td>   
  33.             </tr>
  34.        {% endfor %}
  35.             <tr>
  36.                 <td>&nbsp<b>Total</b></td>
  37.                 {% if widget.boolean1 == true %}
  38.                 <td><a href="{{ path('lead_index', {'open':1}) }}" >{{info.totalleads}}</a></td>
  39.                 {% endif %}
  40.                 <td><a href="{{ path('proposal_index', {'open':1}) }}" >{{info.totalproposals}}</a></td>
  41.                 <td><a href="{{ path('proposal_index', {'open':1, 'interview':1}) }}" >{{info.totalinterviews}}</a></td>
  42.                 <td><a href="{{ path('contract_index', {'open':1}) }}" >{{info.totalcontracts}}</a></td>
  43.                 <td> <a href="{{ path('contract_index', {'action':1}) }}" >{{info.totalactionrequiredcontracts}}</a></td>   
  44.             </tr>
  45.         </tbody>
  46.     </table>
  47.         </div>
  48.     </div>