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

{{ m.button(m.icon('chevron-left'), url('/admin-shifts'), null, 'sm') }} {% block content_title %}{{ title }}{% endblock %}

{% include 'layouts/parts/messages.twig' %}
{% block row_content %}
{% for shift in shifts %} {% endfor %}
{{ __('general.id') }} {{ __('title.title') }} {{ __('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.count }} {{ shift.start.format(__('Y-m-d H:i')) }} {{ shift.end.format(__('Y-m-d H:i')) }} {{ m.user(shift.createdBy) }} {{ shift.created_at.format(__('Y-m-d H:i')) }}
{{ 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 %}