@php
    $orderProductSelectDays=[
        ['index'=>1,'name'=>'Hétfő'],
        ['index'=>2,'name'=>'Kedd'],
        ['index'=>3,'name'=>'Szerda'],
        ['index'=>4,'name'=>'Csütörtök'],
        ['index'=>5,'name'=>'Péntek'],
        ['index'=>6,'name'=>'Szombat'],
        ['index'=>7,'name'=>'Vasárnap'],
];
@endphp
<template data-name="orderProductSelectDetails">
    <table class="orderProductSelectRowDetailsTable" cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">

        <tr>
            <td colspan="2">
                ~!#weekly!~
                <table>
                        <tr>
                            @foreach($orderProductSelectDays as $dayData)
                                <td>{{$dayData['name']}}
                                </td>
                            @endforeach
                        </tr>
                        <tr>
                            @foreach($orderProductSelectDays as $dayData)
                                <td>
                                    <input class="productSelectDayQuantity" type="xnumber" name="quantity[~!id!~][{{$dayData['index']}}]" data-dayIndex="{{$dayData['index']}}" value="~!itemQuantity.{{$dayData['index']}}!~">
                                </td>
                            @endforeach
                        </tr>
                </table>
                ~!/weekly!~
       </td>
        </tr>

        <tr>
            <td>hooreyca :</td>
            <td><span style="padding-right: 2em;">~!hooreycaId!~</span>

                <button type="button"
                        data-id="~!id!~"
                        class="buttonItemFavorites btn ~!btnFavoritesClass!~">
                    <i class="bi bi-star-fill pr-2" aria-hidden="true"></i>
                    Kedvenc
                </button>
                </td>
            </tr>
        <tr>
            <td>Info:</td>
            <td>~!note!~</td>
        </tr>
        <tr class="~!pictureClass!~">
            <td>Termék kép:</td>
            <td>
                ~!{pictureImg}!~

            </td>
        </tr>

        <tr class="~!specificationClass!~">
            <td>Specifikáció:</td>
            <td>
                <a href="~!specification!~" target="_blank">Fájl megnyitása</a>
            </td>
        </tr>
        <tr>
            <td>Megjegyzés:</td>
            <td><textarea class="orderItemComment" data-id="~!id!~">~!comment!~</textarea></td>
            </tr>
        </table>
</template>

{{--
<tr>
    @foreach($orderProductSelectDays as $dayData)
        <td>{{$dayData['name']}}
        </td>
    @endforeach
</tr>
<tr>
    @foreach($orderProductSelectDays as $dayData)
        <td>
            <input class="productSelectDayQuantity" type="number" name="quantity~![d.id!~]" value="{{$dayData['index']}} quantity~![id!~]">
        </td>
    @endforeach
</tr>
--}}
