<div class="col-12 mb-4">
    <div class="form-group">
        <label class="text-normal">{{ $productaddon['paname'] }}</label>
        <label class="text-sm">{{ $productaddon['padescription'] }}</label>
        @if($productaddon['patype'] == 'text')
        <input type="text" class="form-control" name="{{ $productaddon['paid'] }}" @if($productaddon['pacompulsory'] == 1) required="required" @endif value="{{ $addonkey }}">
        @endif
        @if($productaddon['patype'] == 'select')
        <select class="form-control configureSelect" name="{{ $productaddon['paid'] }}">
            @if($productaddon['pacompulsory'] == 0)
            <option value="0" selected>İstemiyorum</option>
            @endif
            @foreach($paoptions as $key => $option)
                @php
                    $formattedprice = ($productaddon['paovveridecurrency'] == 1 ? (beMoneyFormat($option['oprice']).$currencies[$option['ocid']]['cicon']):(($option['ocid'] == $usercid ? beMoneyFormat($option['oprice']):beMoneyFormat(beConvertCurrencie($option['oprice'],$option['ocid'],$usercid))).$usercurrency['cicon']));
                    $periodcount = $option['operiodtime'] == 0 ? '':$option['operiodtime'];
                    $periodname = $periods[$option['operiod']];
                    $periodtext = '';
                    if($option['oprice'] == 0 && $option['operiod'] == 'none'){
                        $periodname = '';
                        $periodcount = '';
                        $periodtext = '';
                    }
                    else{
                        $periodtext = ' - '.$periodcount.' '.$periodname;
                    }
                @endphp
                <option value="{{ $key }}"{{ $addonkey == $key ? ' selected':'' }}>{{ $option['oname'].' ('.($option['oprice'] == 0 ? ('Ücretsiz'):$formattedprice).$periodtext.')' }}</option>
            @endforeach
        </select>
        @endif
    </div>
</div>