<div id="videoModal" class="modal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-md" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title"><?php echo app('translator')->get('Media Library Video'); ?></h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body pb-0">
                <form id="video-form" class="form-horizontal" method="post"
                      action="" role="form"
                      enctype="multipart/form-data" autocomplete="off">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="entityId" value="">
                    <div class="form-group row">
                        <label class="col-lg-12 control-label"><?php echo app('translator')->get('Embed Code ili Youtube url'); ?>
                            <sup>*</sup></label>
                        <div class="col-lg-12">
                            <textarea rows="10" cols="35" name="code"
                                      class="form-control col-lg-12"><?php echo e(old('code')); ?></textarea>
                        </div>
                    </div>
                    <hr>
                    <div class="form-group row justify-content-end">
                        <div class="col-sm-9 d-flex justify-content-end">
                            <button type="submit" class="btn btn-success mr-2 waves-effect waves-light">
                                <i class="fa fa-save"></i>
                                <?php echo app('translator')->get('Sačuvaj'); ?>
                            </button>
                            <button type="button" class="btn btn-secondary waves-effect waves-light"
                                    data-dismiss="modal">
                                <?php echo app('translator')->get('Odustani'); ?>
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<?php $__env->startPush('footer_scripts'); ?>
<script>
    function getVideoModal(){
        window['videoModalInstance'] = window.hasOwnProperty('videoModalInstance') ? window['videoModalInstance'] : new ModalManagement({
            modal_selector: $('#videoModal'),
            form_selector: $('#video-form'),
            form_rules: {
                "code": {
                    required: true
                }
            },
            ajax_getOne: "<?php echo e(route('articles.get_one_video_intext')); ?>",
            ajax_getAll: '',
            ajax_create: "<?php echo e(route('articles.save_video_intext')); ?>",
            ajax_update: "<?php echo e(route('articles.update_video_intext')); ?>",
            ajax_delete: ''
        });
        return window['videoModalInstance'];
    };
</script>
<?php $__env->stopPush(); ?><?php /**PATH /opt/cms/resources/views/articles/partials/modals/video.blade.php ENDPATH**/ ?>