ikinci temizlik tamamlandı
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<input type="text" name="search" id="search" placeholder="{{e2("Search Training Videos...")}}" class="form-control mb-10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row videos">
|
||||
|
||||
<?php
|
||||
$basePath = "013_Others/video";
|
||||
$videos = glob("storage/documents/$basePath/*.mp4");
|
||||
|
||||
if(count($videos)>0) {
|
||||
foreach($videos AS $video) {
|
||||
$title = str_replace("storage/documents/013_Others/video/", "", $video);
|
||||
$title = str_replace(".mp4", "", $title);
|
||||
|
||||
?>
|
||||
{{col("col-md-6 col-xl-4 video ", $title)}}
|
||||
<div class="position-relative" style="min-height:300px;">
|
||||
|
||||
<video width="100%" height="100%" class="position-absolute" controls>
|
||||
<source src="{{$video}}" type="video/mp4">
|
||||
|
||||
Your browser does not support the video tag.
|
||||
</video>
|
||||
</div>
|
||||
{{_col()}}
|
||||
|
||||
<?php }
|
||||
} else { ?>
|
||||
<div class="col-12">
|
||||
<div class="alert alert-warning">
|
||||
{{e2("No training videos have been uploaded yet.")}}
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#search").on("keyup", function() {
|
||||
var value = $(this).val().toLowerCase();
|
||||
$(".video").filter(function() {
|
||||
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user