<div class="entry" data-type="<?php echo e($typeofwidget); ?>" <?php if(isset($entry->id)): ?> data-entry-id="<?php echo e($entry->id); ?>" <?php endif; ?>>
    <?php echo $__env->make('_forms.__entryactions', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <h3><i class="fa <?php echo e($iconofwidget); ?>"></i> <?php echo e($titleofwidget); ?></h3>
    <div class="inpunting"  <?php if(isset($entry->video)): ?> style="display: none;" <?php endif; ?>>
        <div class="getvideoinput">
        <?php echo Form::text(null, null, ['class' => 'cd-input', 'placeholder' => $urlto]); ?>

        <button class="button button-blue get-button create<?php echo e($typeofwidget); ?>"><?php echo e(trans('updates.get')); ?> <i class="fa fa-download"></i></button>
        </div>
    </div>
    <div class="embedarea <?php if(empty($entry->video)): ?> hide <?php endif; ?> ">
        <div class="inpunting ordering">
            <button class="order-number button button-gray">1</button>
            <?php echo Form::text(null, isset($entry->title) ? $entry->title : null, ['data-type' => 'title', 'class' => 'cd-input ', 'placeholder' => trans('addpost.entry_titleop')]); ?>

        </div>
     <?php echo Form::hidden(null, isset($entry->video) ? $entry->video : null, ['data-type' => 'video', 'class' => 'cd-input-video']); ?>

        <div class="inpunting videoembed">

            <?php if(isset($entry->video)): ?>

                <?php if($typeofwidget=='instagram'): ?>
                <iframe class="instagram-media" id="instagram-embed-<?php echo e($entry->id); ?>" src="<?php echo $entry->video; ?>embed/captioned/?v=5" allowtransparency="true" frameborder="0" data-instgrm-payload-id="instagram-media-payload-<?php echo e($entry->id); ?>" scrolling="no" style="border: 0; margin: 1px; max-width: 658px; width: 100% ; border-radius: 4px; box-shadow: rgba(0, 0, 0, 0.498039) 0px 0px 1px 0px, rgba(0, 0, 0, 0.14902) 0px 1px 10px 0px; display: block; padding: 0px;background: rgb(255, 255, 255);"></iframe>
                 <script src="//platform.instagram.com/en_US/embeds.js"></script>
                <?php elseif($typeofwidget=='facebookpost'): ?>
                    <div class="fb-post" data-href="<?php echo $entry->video; ?>" data-width="100%"></div>

                <?php else: ?>
                    <?php echo $entry->video; ?>

                <?php endif; ?>
            <?php endif; ?>
        </div>

        <div class="moredetail text">
            <div class="detailhide" style="display:none">
                <div class="inpunting">
                    <?php echo Form::textarea(null, isset($entry->body) ? $entry->body : null, ['data-type' => 'body', 'class' => 'message','id' => 'edit', 'placeholder' => trans('addpost.entry_body')]); ?>

                </div>
            </div>
            <a href="javascript:;" class="trigger"><span class="down"><?php echo e(trans('addpost.mored')); ?> <i class="fa fa-angle-down"></i></span><span class="up"><?php echo e(trans('addpost.lessd')); ?>  <i class="fa fa-angle-up"></i></span></a>
        </div>
    </div>
</div>
