home
/
zktecojo
/
public_html
/
app
/
views-feb 24
/
admin
/
gallery
➕ New
📤 Upload
✎ Editing:
addVideo.blade.php
← Back
@include('admin.common.header') @include('admin.common.leftmenu') <aside class="right-side"> <!-- Content Header (package header) --> <section class="content-header"> <h1> Dashboard <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li>shows</li> <li class="active">Add New</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-warning"> <div class="box-header"> <h3 class="box-title">Add shows</h3> </div> <!-- /.box-header --> <div class="box-body"> <?php echo (!empty($messages)) ? $messages:''; ?> <?php echo Form::open(array('url' => 'admin/video-gallery','files' => true)); ?> <div class="row"> <div class="col-sm-12"> <div class="form-group clearfix"> <label>Add Youtube Video Link</label> <table class="table responsive-table youtube" style="width:100%"> <thead> <tr> <th>Video</th> <th>URL</th> <th>Added On</th> <th>Delete</th> </tr> </thead> <tbody> <?php if(!empty($videoList)) { ?> <?php foreach ($videoList as $video ){ ?> <tr id="{{ $video->vg_id }}"> <td><img src="http://img.youtube.com/vi/{{ $video->vg_youtube_id }}/1.jpg"/></td> <td><input type="text" name="shows_link[]" class="form-control" value="{{ $video->vg_video_link }}" placeholder="Enter the Youtube link here"/></td> <td>{{ date('m j Y',strtotime($video->vg_date))}}</td> <td> <a href="{{ asset('admin/video-gallery/delete/'.$video->vg_id) }}">Delete</a></td> </tr> <?php } ?> <?php }else{ ?> <tr> <td><img src="{{ asset('assets/admin/images/no-youtube-thumb.png') }}" /></td> <td><input type="text" name="shows_link[]" class="form-control" placeholder="Enter the Youtube link here" required="" /> </td> <td></td> <td></td> </tr> <?php } ?> </tbody> </table> <div class="col-sm-4 addVideo">+ Add More Link</div> </div> </div> </div> <div class="form-group"></div> <div class="form-group"> <input type="submit" name="createbtnsubmit" value="Submit" class="btn btn-primary"> <a href="<?php echo URL::to('admin/video-gallery'); ?>" class="btn btn-primary">Close</a> </div> {{ Form::close() }} </div> <!-- /.box-body --> </div> </section><!-- /.content --> </aside> <script type="text/javascript"> $('.addVideo').on('click',function(){ $('.table tbody').append('<tr><td><img src="{{ asset("assets/admin/images/no-youtube-thumb.png") }}" /></td><td><input type="text" name="shows_link[]" class="form-control" placeholder="Enter the Youtube link here" /></td><td> </td></tr>'); }); $('.form-group').on('click','.removeLink',function(e){ if(confirm('are you sure')==true){ $(this).parent().remove(); } }); </script> @include('admin.common.footer')
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel