@if(isset($mode) && $mode === 'view')
    <div class="row">
        <div class="col-xs-12">
            {!! $html !!}
        </div>
    </div>
    <br>
@else
    <div class="view-container {{$default? 'default visible' : 'alternate hidden'}}" data-view-id="{{$viewId}}" data-target-customers="@if(isset($targetCustomers))  {{json_encode($targetCustomers)}} @endif" data-visible-dates="@if(isset($visibleDates))  {{json_encode($visibleDates)}} @endif" data-default-visibility="@if(isset($defaultVisibility) && trim($defaultVisibility) != "")  {{$defaultVisibility}} @else Visible @endif">
        @lang('hilco::app.html') <a href="#" class="htmlwrapper-html" data-html="@if(isset($html)) {{$html}} @endif">@if(isset($html) && trim($html) != "") {{ $html }} @else None  @endif</a><br>
        @include('hilco::components.targetCustomer.visibilityControls', ['default' => $default ?? true, 'defaultVisibility' => $defaultVisibility ?? '', 'targetCustomersFormatted' => $targetCustomersFormatted ?? '', 'visibleDatesFormatted' => $visibleDatesFormatted ?? ''])
    </div>
@endif