@php
   $name = '';
    $id = !empty($id) ? $id : '';

    if( !empty($repeater_id) ){
        if( !empty($parent_rep) ){
            $name = "$parent_rep".'['.$repeater_id.']['.$index.']['.$id.']';
        }else{
            $name = "$repeater_id".'['.$index.']['.$id.']';
        }
    }else{
        $name = $id;
    }
    $time_24hr   = 'false';
    if( !empty($time_24hr) &&  $time_24hr){
        $time_24hr   = 'true';
    }
@endphp
@if( !empty($repeater_type) && $repeater_type == 'single' )
    <div class="op-tooltip">
        <input type="text" @if(!empty($parent_rep)) data-parent_rep="{{$parent_rep}}" @endif  data-id="{{ $id ?? '' }}"  name="{{ $name }}" data-time_24hr ="{{ $time_24hr }}"  value="{{ $value ?? '' }}" class="op-input-field time form-control {{ $class ?? '' }}" placeholder="{{ $placeholder ?? '' }}">
        <i class="op-infotips icon-clock" href="#"></i>
    </div>
@else
    <li class="form-group-wrap">
        @if( !empty($label_title) )
            <div class="form-group-half">
                <div class="op-textcontent">
                    <h6>
                        {!! $label_title !!}
                        @if( empty($repeater_id) && config('optionbuilder.developer_mode') == 'yes' )
                            <span class="op-alert">setting(‘{{ $tab_key }}.{{$id}}’)</span>
                        @endif
                    </h6>
                    @if( !empty( $label_desc) )
                        <em>{!! $label_desc !!}</em>
                    @endif
                </div>
            </div>
        @endif
        <div class="form-group-half">
            <div class="op-textcontent">
                <div class="op-tooltip">
                    <input type="text" @if(!empty($parent_rep)) data-parent_rep="{{$parent_rep}}" @endif  data-id="{{ $id ?? '' }}"  name="{{ $name }}"   data-time_24hr ="{{ $time_24hr }}"  value="{{ $value ?? '' }}" class="op-input-field time form-control {{ $class ?? '' }}" placeholder="{{ $placeholder ?? '' }}">
                    <i class="op-infotips icon-clock" href="#"></i>
                </div>
                @if( !empty($field_desc) )<span>{!! $field_desc !!}</span> @endif           
            </div>
        </div>
    </li>
@endif
