{% set showComponent = true %}
{% if category is defined %}
	{% if category.slug == 'hospital' %}
		{% set showComponent = false %}
	{% endif %}
{% endif %}
{% if showComponent %}
	<article class="deliHospitalSliderCard bg-{{ index.index0 }} py-5" id="{{ id }}">
		<section class="container py-5">
			<h2 class="deliHospitalSliderCard__title">
				{{ component.blockTitle }}
			</h2>
			<div class="deliHospitalSliderCard__description">
				{{ component.description }}
			</div>

			{% set get_category =
        craft.categories.group('typeDeliveries').slug('hospital
').one()
      %}

			{% include 'components/_sliderEvents' with {
        onlyTheSlider: true,
        set_query: craft.entries().section('deliveriesEntries').relatedTo(
          get_category
        ).limit(
          6
        ).all()
      } %}

			<div class="text-center">
				<section class="d-inline-block">
					{% include 'components/_btnArrow' with {
            btn: component.itemLink,
            classCustom: 'deliHospitalSliderCard__btn',
            Highlight: true
          } only %}
				</section>
			</div>
		</section>
	</article>
{% endif %}
