{% extends 'base.html.twig' %}
{% block title %}Smartphones, Handys & Tablets günstig in CLP beim Doctor reparieren lassen{% endblock %}
{% block body %}
<section class="pt-6">
<div class="section container pt-6 mb-0 pb-0 pl-0">
<a class="" href="{{ path('handy') }}">Reparieren</a>
<span>></span>
<a class="" href="{{ path('handy-marke', { marke : geraet.marke.marke }) }}">{{geraet.marke.marke}}</a>
<span>></span>
<span>{{ geraet.name }}</span>
</div>
</section>
<section id="main" class="p-5 mt-3">
<div class="container">
<div class="">
<div class="">
<div class="columns">
<div class="column">
<img width="100%" src="/images/geraete/{{ geraet.bild }}">
</div>
<br>
<div class="column mt-4 has-text-centered" id="positions">
<div class="has-text-left mb-6">
<small>{{ geraet.marke.marke|capitalize }}</small>
<h1 style="margin-top: 0;">{{ geraet.name }}</h1>
<span class="title is-5" style="" id="gesamtPreis">0,00 € (wählen Sie eine Reparatur aus)</span>
<span class="help">*inkl. 19% MwSt. inkl. Versand</span>
<span class="help"><b>Bearbeitungszeit nach Geräteeingang: 1 - 3 Werktage</b></span>
</div>
<div style="display: block; text-align: left;" id="selectRepair">
<h5 class="title is-5 mb-2">Reparaturen</h5>
<hr class="mb-2 pb-0 pt-0 mt-0">
{% for preis in preise %}
{% set reparaturText = preis.reparatur.reparaturen|replace({'(': '<span class="tag is-info">', ')': '</span>'}) %}
<label class="checkbox" id="{{ preis.id }}" style="font-weight: 300;">
<input type="checkbox" value="{{ preis.id }}" id="position">
<span class="ml-3 tag is-success is-light"> {{ preis.preis|number_format(2, ',', '.') }} € *</span>
{{ reparaturText|raw }}
</label>
<br>
{% endfor %}
<br>
<h5 class="title is-5 mb-2">Service</h5>
<hr class="mb-2 pb-0 pt-0 mt-0">
{% for service in services %}
{% set nameText = service.name|replace({'(': '<span class="tag is-info">', ')': '</span>'}) %}
<label class="checkbox" id="S-{{ service.id }}" style="font-weight: 300;">
<input type="checkbox" value="S-{{ service.id }}" id="position">
<span class="ml-3 tag is-success is-light">+ {{ service.preis|number_format(2, ',', '.') }} € *</span> {{ nameText|raw }}
</label>
<br>
{% endfor %}
<br>
<h5 class="title is-5 mb-2 mt-4">Zubehör</h5>
<hr class="mb-2 pb-0 pt-0 mt-0">
{% for accessoire in accessoires %}
{% set typeText = accessoire.type|replace({'(': '<span class="tag is-info">', ')': '</span>'}) %}
<label class="checkbox" style="font-weight: 300;">
<input type="checkbox" value="A-{{ accessoire.id }}" id="position">
<span class="ml-3 tag is-success is-light">+ {{ accessoire.price|number_format(2, ',', '.') }} € *</span> {{ typeText|raw }}
</label>
<br>
{% endfor %}
<div class="modal" id="modal-js-example">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title mb-0">Weitere Informationen</p>
<button class="delete" aria-label="close"></button>
</header>
<section class="modal-card-body">
<div class="tabs selectLockType mb-0">
<ul class="mb-3">
<li id="pin-tab" class="is-active"><a>PIN</a></li>
<li id="muster-tab"><a>Muster</a></li>
</ul>
</div>
<div id="muster" style="display:none;">
<svg style="width:200px" class="patternlock" id="lock" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<g class="lock-actives"></g>
<g class="lock-lines"></g>
<g class="lock-dots">
<circle cx="20" cy="20" r="2"/>
<circle cx="50" cy="20" r="2"/>
<circle cx="80" cy="20" r="2"/>
<circle cx="20" cy="50" r="2"/>
<circle cx="50" cy="50" r="2"/>
<circle cx="80" cy="50" r="2"/>
<circle cx="20" cy="80" r="2"/>
<circle cx="50" cy="80" r="2"/>
<circle cx="80" cy="80" r="2"/>
</g>
</svg>
</div>
<div id="pin" style="" class="mb-4">
<span>PIN</span>
<input type="text" class="input" id="entsperrmuster">
</div>
<div>
<span>Fehlerbeschreibung</span>
<textarea type="text" class="input" id="fehlerbeschreibung" style="resize: none;height: 100px;"></textarea>
</div>
</section>
<footer class="modal-card-foot">
<div class="buttons">
<button class="button is-success addToBasket">In den Warenkorb</button>
</div>
</footer>
</div>
</div>
<div class="mt-3">
<div>
<a class="button is-success js-modal-trigger" data-target="modal-js-example">Weiter</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
{% endblock %}