52 lines
3.4 KiB
Twig
52 lines
3.4 KiB
Twig
{% extends 'administrative/layout.html.twig' %}
|
|
|
|
{% block content %}
|
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
|
<twig:dashboard:widget title="Neue Honorarverträge"
|
|
meta="{{ newContractsCount > 0 or pendingContractsCount > 0 ? newContractsCount ~ ' neu, ' ~ pendingContractsCount ~ ' in Bearbeitung' }}"
|
|
emptyText="Keine neuen Honorarverträge."
|
|
:scroll="true">
|
|
{% for document in newContracts %}
|
|
{% set assignment = document.disposition.assignment %}
|
|
<twig:dashboard:entry icon="download"
|
|
hx-get="{{ path('app_administrative_document_check', {uuid: document.uuid, r: return_url()}) }}"
|
|
:parts="[document.owner.teamer.fullName(true), assignment.destination.dateFrom|date('d.m.y') ~ ' - ' ~ assignment.destination.dateTo|date('d.m.y'), assignment.destination.hotel]"/>
|
|
{% endfor %}
|
|
</twig:dashboard:widget>
|
|
|
|
<twig:dashboard:widget title="Neue Honorarnoten"
|
|
meta="{{ newInvoicesCount > 0 or pendingInvoicesCount > 0 ? newInvoicesCount ~ ' neu, ' ~ pendingInvoicesCount ~ ' in Bearbeitung' }}"
|
|
emptyText="Keine neuen Honorarnoten."
|
|
:scroll="true">
|
|
{% for document in newInvoices %}
|
|
{% set assignment = document.disposition.assignment %}
|
|
<twig:dashboard:entry icon="download"
|
|
hx-get="{{ path('app_administrative_document_check', {uuid: document.uuid, r: return_url()}) }}"
|
|
:parts="[document.owner.teamer.fullName(true), assignment.destination.dateFrom|date('d.m.y') ~ ' - ' ~ assignment.destination.dateTo|date('d.m.y'), assignment.destination.hotel]"/>
|
|
{% endfor %}
|
|
</twig:dashboard:widget>
|
|
|
|
<twig:dashboard:widget title="Neue Einteilungen" emptyText="Keine neuen Einteilungen.">
|
|
{% for disposition in dispositions %}
|
|
<twig:dashboard:entry icon="hand"
|
|
url="{{ path('app_administrative_assignment_detail', {uuid: disposition.assignment.uuid, r: return_url()}) }}">
|
|
{% include '_partials/_disposition_data.html.twig' with {disposition: disposition} %}
|
|
</twig:dashboard:entry>
|
|
{% endfor %}
|
|
</twig:dashboard:widget>
|
|
|
|
{% set overdueFeedbacksCount = overdueFeedbacks|length %}
|
|
<twig:dashboard:widget title="Überfällige Feedbacks"
|
|
meta="{{ overdueFeedbacksCount > 0 ? overdueFeedbacksCount ~ ' überfällig' }}"
|
|
emptyText="Keine überfälligen Feedbacks."
|
|
:scroll="true">
|
|
{% for disposition in overdueFeedbacks %}
|
|
{% set assignment = disposition.assignment %}
|
|
<twig:dashboard:entry icon="feedback"
|
|
url="{{ path('app_administrative_feedback_provide', {uuid: disposition.uuid, r: return_url()}) }}"
|
|
:parts="[disposition.teamer, assignment.destination, assignment.jobProfile ? assignment.jobProfile.name]"/>
|
|
{% endfor %}
|
|
</twig:dashboard:widget>
|
|
</div>
|
|
{% endblock %}
|