{% extends 'layouts/app.twig' %} {% import 'macros/base.twig' as m %} {% import 'macros/form.twig' as f %} {% block title %}{{ __('shifts.history') }}{% endblock %} {% block content %}

{{ m.back(url('/admin-shifts')) }} {% block content_title %}{{ block('title') }}{% endblock %}

{% include 'layouts/parts/messages.twig' %}
{% block row_content %}
{% for shift in shifts %} {% endfor %}
{{ __('general.id') }} {{ __('title.title') }} {{ __('location.location') }} {{ __('general.count') }} {{ __('shifts.start') }} {{ __('shifts.end') }} {{ __('general.user') }} {{ __('general.created_at') }}
{{ shift.transaction_id }} {% if shift.schedule %} {{ __('shifts.history.schedule', [shift.schedule.name]) }} {% else %} {{ shift.title }} {% endif %}
{{ shift.shiftType.name }}
{{ shift.location.name }} {{ shift.count }} {{ shift.start.format(__('general.datetime')) }} {{ shift.end.format(__('general.datetime')) }} {{ m.user(shift.createdBy) }} {{ shift.created_at.format(__('general.datetime')) }}
{{ csrf() }} {{ f.hidden('transaction_id', shift.transaction_id) }} {{ f.delete(null, { 'size': 'sm', 'title': __('form.delete_all'), 'confirm_title': __('shifts.history.delete_all.title', [shift.count]), 'confirm_button_text': __('form.delete_all'), }) }}
{% endblock %}
{% endblock %}