<div class="form-group mb-3">
    <label class="control-label" for="video_thumbnail">{{ __('YouTube Video Thumbnail') }}</label>

    @if (in_array(Route::currentRouteName(), ['public.account.properties.create', 'public.account.properties.edit']))
        <div class="image-box">
            <input type="hidden" name="video[thumbnail]" value="{{ $videoThumbnail }}" class="image-data">
            <input type="file" name="thumbnail_input" class="image_input" accept="image/*" style="display: none;">
            <div class="preview-image-wrapper">
                <img src="{{ RvMedia::getImageUrl($videoThumbnail, 'thumb', false, RvMedia::getDefaultImage()) }}" alt="preview image" class="preview_image" width="150">
                <a class="btn_remove_image" title="{{ trans('core/base::forms.remove_image') }}">
                    <i class="fa fa-times"></i>
                </a>
            </div>
            <div class="image-box-actions">
                <a href="#" class="custom-select-image">
                    {{ trans('core/base::forms.choose_image') }}
                </a>
            </div>
        </div>
    @else
        {!! Form::mediaImage('video[thumbnail]', $videoThumbnail) !!}
    @endif
</div>

<div class="form-group mb-3">
    <label class="control-label" for="video_url">{{ __('YouTube Video URL') }}</label>
    {!! Form::text('video[url]', $videoUrl, [
        'id'            => 'video_url',
        'class'         =>'form-control',
        'placeholder'   => 'https://www.youtube.com/watch?v=...',
        'data-counter'  => 255]) !!}
</div>
