115 lines
7.6 KiB
Twig
115 lines
7.6 KiB
Twig
{% extends 'admin/layout.html.twig' %}
|
|
|
|
{% block content %}
|
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
|
|
|
<twig:dashboard:widget title="Neue Bewerbungen"
|
|
meta="{{ newApplicationsCount > 0 or pendingApplicationsCount > 0 ? newApplicationsCount ~ ' neu, ' ~ pendingApplicationsCount ~ ' in Bearbeitung' }}"
|
|
emptyText="Keine neuen Bewerbungen.">
|
|
{% for application in applications %}
|
|
{% set assignment = application.assignment %}
|
|
<twig:dashboard:entry icon="hand"
|
|
url="{{ path('app_administrative_assignment_detail', {uuid: assignment.uuid, r: return_url()}) }}"
|
|
:parts="[application.teamer.fullName(true), assignment.destination.dateFrom|date('d.m.y') ~ ' - ' ~ assignment.destination.dateTo|date('d.m.y'), assignment.destination.hotel, assignment.jobProfile.name]"/>
|
|
{% endfor %}
|
|
</twig:dashboard:widget>
|
|
|
|
<twig:dashboard:widget title="Neue Einteilungen" emptyText="Keine neuen Einteilungen.">
|
|
{% for disposition in newDispositions %}
|
|
<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>
|
|
|
|
<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 Führerscheine"
|
|
meta="{{ newDriverLicensesCount > 0 ? newDriverLicensesCount ~ ' neu' }}"
|
|
emptyText="Keine neuen Führerscheine."
|
|
:scroll="true">
|
|
{% for document in newDriverLicenses %}
|
|
<twig:dashboard:entry icon="download"
|
|
hx-get="{{ path('app_administrative_teamer_driver_license_check', {uuid: document.uuid}) }}"
|
|
:parts="[document.owner.teamer.fullName(true), document.createdAt|date('d.m.y')]"/>
|
|
{% endfor %}
|
|
</twig:dashboard:widget>
|
|
|
|
<twig:dashboard:widget title="Neue Einsätze" emptyText="Keine neuen Einsätze.">
|
|
{% for assignment in assignments %}
|
|
<twig:dashboard:entry icon="calendar"
|
|
url="{{ path('app_administrative_assignment_detail', {uuid: assignment.uuid, r: return_url()}) }}"
|
|
:parts="[assignment.destination.dateFrom|date('d.m.y') ~ ' - ' ~ assignment.destination.dateTo|date('d.m.y'), assignment.jobProfile.name, assignment.owner.fullName(true)]"/>
|
|
{% endfor %}
|
|
</twig:dashboard:widget>
|
|
|
|
<twig:dashboard:widget title="Neue Verfügbarkeiten" emptyText="Keine neuen Verfügbarkeiten.">
|
|
{% for availability in availabilities %}
|
|
<twig:dashboard:entry icon="calendar"
|
|
url="{{ path('app_admin_teamer_availability', {uuid: availability.owner.uuid, r: return_url()}) }}"
|
|
:parts="[availability.owner.fullName(true), availability.dateFrom|date('d.m.y') ~ ' - ' ~ availability.dateTo|date('d.m.y')]"/>
|
|
{% endfor %}
|
|
</twig:dashboard:widget>
|
|
|
|
<twig:dashboard:widget title="Neue Feedbacks"
|
|
meta="{{ pendingFeedbacksCount > 0 ? pendingFeedbacksCount ~ ' freizugeben' }}"
|
|
emptyText="Keine Feedbacks freizugeben.">
|
|
{% for feedback in feedbacks %}
|
|
<twig:dashboard:entry icon="feedback"
|
|
hx-get="{{ path('app_admin_feedback_approve', {uuid: feedback.uuid}) }}"
|
|
:parts="[feedback.teamer, feedback.destinationName, feedback.jobProfileName]"/>
|
|
{% 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>
|
|
|
|
{% set overdueContractsCount = overdueContracts|length %}
|
|
<twig:dashboard:widget title="Überfällige Honorarverträge"
|
|
meta="{{ overdueContractsCount > 0 ? overdueContractsCount ~ ' überfällig' }}"
|
|
emptyText="Keine überfälligen Honorarverträge."
|
|
:scroll="true">
|
|
{% for disposition in overdueContracts %}
|
|
{% set assignment = disposition.assignment %}
|
|
<twig:dashboard:entry icon="calendar"
|
|
url="{{ path('app_administrative_assignment_detail', {uuid: assignment.uuid, r: return_url()}) }}"
|
|
:parts="[assignment.destination.dateFrom|date('d.m.y') ~ ' - ' ~ assignment.destination.dateTo|date('d.m.y'), assignment.jobProfile.name, disposition.teamer.fullName(true)]"/>
|
|
{% endfor %}
|
|
</twig:dashboard:widget>
|
|
|
|
</div>
|
|
{% endblock %}
|