

<?php $__env->startSection('title', __('Video Section')); ?>

<?php $__env->startSection('content'); ?>
<!-- main Section -->
<div class="main-body">
	<div class="container-fluid">
		<?php $vipc = vipc(); ?>
		<?php if($vipc['bkey'] == 0): ?> 
		<?php echo $__env->make('backend.partials.vipc', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
		<?php else: ?>
		<div class="row mt-25">
			<div class="col-lg-12">
				<div class="card">
					<div class="card-header">
						<div class="row">
							<div class="col-lg-6">
								<span><?php echo e(__('Video Section')); ?></span>
							</div>
							<div class="col-lg-6"></div>
						</div>
					</div>
					<!--Data Entry Form-->
					<div class="card-body">
						<form novalidate="" data-validate="parsley" id="DataEntry_formId">
							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label for="title"><?php echo e(__('Title')); ?><span class="red">*</span></label>
										<input value="<?php echo e($datalist['title']); ?>" type="text" name="title" id="trending_title" class="form-control parsley-validated" data-required="true">
									</div>
								</div>
							</div>
							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label for="short_desc"><?php echo e(__('Short Description')); ?></label>
										<textarea name="short_desc" id="short_desc" class="form-control" rows="2"><?php echo e($datalist['short_desc']); ?></textarea>
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label for="video_url"><?php echo e(__('Youtube Video URL')); ?><span class="red">*</span></label>
										<input value="<?php echo e($datalist['video_url']); ?>" type="text" name="video_url" id="video_url" class="form-control parsley-validated" data-required="true">
									</div>
								</div>
							</div>
							<div class="row">
								<div class="col-md-6">
									<div class="form-group">
										<label for="trending_image"><?php echo e(__('Image')); ?><span class="red">*</span></label>
										<div class="tp-upload-field">
											<input value="<?php echo e($datalist['image']); ?>" type="text" name="image" id="trending_image" class="form-control" readonly>
											<a onClick="onGlobalMediaModalView()" href="javascript:void(0);" class="tp-upload-btn"><i class="fa fa-window-restore"></i><?php echo e(__('Browse')); ?></a>
										</div>
										<div id="remove_trending_image" class="select-image">
											<div class="inner-image" id="view_trending_image"></div>
											<a onClick="onMediaImageRemove('trending_image')" class="media-image-remove" href="javascript:void(0);"><i class="fa fa-remove"></i></a>
										</div>
									</div>
								</div>
								<div class="col-md-6"></div>
							</div>
							<div class="row">
								<div class="col-md-4">
									<div class="form-group">
										<label for="button_text"><?php echo e(__('Button Text')); ?><span class="red">*</span></label>
										<input value="<?php echo e($datalist['button_text']); ?>" type="text" name="button_text" id="button_text" class="form-control parsley-validated" data-required="true">
									</div>
								</div>
								<div class="col-md-4">
									<div class="form-group">
										<label for="target"><?php echo e(__('Target Window')); ?><span class="red">*</span></label>
										<select name="target" id="target" class="chosen-select form-control">
											<option <?php echo e($datalist['target'] == '' ? "selected=selected" : ''); ?> value="">None</option>
											<option <?php echo e($datalist['target'] == '_self' ? "selected=selected" : ''); ?> value="_self">Self</option>
											<option <?php echo e($datalist['target'] == '_blank' ? "selected=selected" : ''); ?> value="_blank">Blank</option>
										</select>
									</div>
								</div>
								<div class="col-md-4">
									<div class="form-group">
										<label for="url"><?php echo e(__('URL')); ?><span class="red">*</span></label>
										<input value="<?php echo e($datalist['url']); ?>" type="text" name="url" id="url" class="form-control parsley-validated" data-required="true">
									</div>
								</div>
							</div>
							<div class="row">
								<div class="col-md-4">
									<div class="form-group">
										<label for="is_publish"><?php echo e(__('Status')); ?><span class="red">*</span></label>
										<select name="is_publish" id="is_publish" class="chosen-select form-control">
										<?php $__currentLoopData = $statuslist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
											<option <?php echo e($row->id == $datalist['is_publish'] ? "selected=selected" : ''); ?> value="<?php echo e($row->id); ?>">
												<?php echo e($row->status); ?>

											</option>
										<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
										</select>
									</div>
								</div>
								<div class="col-md-8"></div>
							</div>
							
							<div class="row tabs-footer mt-15">
								<div class="col-lg-12">
									<a id="submit-form" href="javascript:void(0);" class="btn blue-btn mr-10"><?php echo e(__('Save')); ?></a>
								</div>
							</div>
						</form>
					</div>
					<!--/Data Entry Form/-->
				</div>
			</div>
		</div>
		<?php endif; ?>
	</div>
</div>
<!-- /main Section -->

<!--Global Media-->
<?php echo $__env->make('backend.partials.global_media', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<!--/Global Media/-->

<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
<!-- css/js -->
<script type="text/javascript">
var media_type = 'Thumbnail';

var image = "<?php echo e($datalist['image']); ?>";
if(image == ''){
	$("#remove_trending_image").hide();
	$("#trending_image").html('');
}
if(image != ''){
	$("#remove_trending_image").show();
	$("#view_trending_image").html('<img src="'+public_path+'/media/'+image+'">');
}
</script>
<script src="<?php echo e(asset('public/backend/pages/home-video.js')); ?>"></script>
<script src="<?php echo e(asset('public/backend/pages/global-media.js')); ?>"></script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.backend', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home6/metawebd/hotel.metawebdevelopment.cloud/resources/views/backend/home-video.blade.php ENDPATH**/ ?>