/
home
/
techb158
/
ileadtechnology.com
/
resources
/
views
/
admin
/
course
/
courseclass
/
/home/techb158/ileadtechnology.com/resources/views/admin/course/courseclass
mkdir
upload
Name
Size
Mode
Actions
edit.blade.php
27176
0644
edit
dl
rm
index.blade.php
19318
0644
edit
dl
rm
Edit:
/home/techb158/ileadtechnology.com/resources/views/admin/course/courseclass/edit.blade.php
(27176B)
@extends('admin/layouts.master') @section('title', 'Edit Class - Admin') @section('body') <section class="content"> <div class="row"> <div class="col-md-7"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">{{ __('adminstaticword.Edit') }} {{ __('adminstaticword.CourseClass') }}</h3> </div> <div class="box-body"> <div class="form-group"> <form enctype="multipart/form-data" id="demo-form" method="post" action="{{url('courseclass/'.$cate->id)}}"data-parsley-validate class="form-horizontal form-label-left"> {{ csrf_field() }} {{ method_field('PUT') }} <select class="display-none" name="coursechapter" class="form-control col-md-7 col-xs-12"> @php $coursechapters = App\CourseChapter::all(); @endphp @foreach($coursechapters as $cat) <option {{ $cate->coursechapter_id == $cat->id ? 'selected' : "" }} value="{{ $cat->id }}">{{ $cat->chapter_name }}</option> @endforeach </select> <div class="row"> <div class="col-md-12"> <label for="exampleInputDetails">{{ __('adminstaticword.Title') }}:<sup class="redstar">*</sup></label> <input type="text" class="form-control " name="title" id="exampleInputTitle" value="{{$cate->title}}" required> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label for="type">{{ __('adminstaticword.CourseChapter') }}:</label> <select name="coursechapter_id" id="chapters" class="form-control"> @foreach($coursechapt as $chapters) <option value="{{ $chapters->id }}" {{ $cate->coursechapter_id==$chapters->id ? 'selected' : '' }}>{{ $chapters->chapter_name }}</option> @endforeach </select> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label for="exampleInputDetails">{{ __('adminstaticword.Detail') }}:</label> <textarea id="detail3" name="detail" rows="5" class="form-control" placeholder="Enter Your Details">{{ $cate->detail }}</textarea> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label for="type">{{ __('adminstaticword.Type') }}:</label> <select name="type" id="filetype" class="form-control"> <option value="{{ $cate->type }}">{{ $cate->type }}</option> </select> </div> </div> <br> @if($cate->type =="video") <div class="row"> <div class="col-md-12" id="videotype"> <input type="radio" name="checkVideo" id="ch1" value="url" {{ $cate->url !="" ? 'checked' : "" }}> {{ __('adminstaticword.URL') }}  <input type="radio" name="checkVideo" id="ch2" value="uploadvideo" {{ $cate->video !="" ? 'checked' : "" }}> {{ __('adminstaticword.UploadVideo') }}  <input type="radio" name="checkVideo" id="ch9" value="iframeurl" {{ $cate->iframe_url !="" ? 'checked' : "" }}> {{ __('adminstaticword.IframeURL') }}  <input type="radio" name="checkVideo" id="ch10" value="liveurl" {{ $cate->date_time !="" ? 'checked' : "" }}> {{ __('adminstaticword.LiveClass') }}  @if($gsetting->aws_enable == 1) <input type="radio" name="checkVideo" id="ch13" value="aws_upload" {{ $cate->aws_upload !="" ? 'checked' : "" }}> {{ __('adminstaticword.AWSUpload') }} @endif <br> </div> </div> <!-- aws edit --> @if($gsetting->aws_enable == 1) <div class="row"> <div class="col-md-12"> <div id="awsUpload" @if($cate->video !=NULL || $cate->iframe_url !=NULL || $cate->url) class="display-none" @endif > <label for="">{{ __('adminstaticword.AWSUpload') }}: </label> <input type="file" name="aws_upload" class="form-control"> @if($cate->aws_upload !="") <label for="">{{ __('adminstaticword.AWSFileName') }}:</label> <input disabled value="{{ $cate->aws_upload }}" class="form-control"> @endif </div> </div> </div> @endif <div class="row"> <div class="col-md-12"> <div id="videoURL" @if($cate->video !=NULL || $cate->iframe_url !=NULL || $cate->aws_upload !=NULL) class="display-none" @endif > <label for="">{{ __('adminstaticword.URL') }}: </label> <input type="text" value="{{ $cate->url }}" name="vidurl" class="form-control"> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div id="videoUpload" @if($cate->url !=NULL || $cate->iframe_url !=NULL || $cate->aws_upload !=NULL) class="display-none" @endif > <label for="">{{ __('adminstaticword.UploadVideo') }}: </label> <input type="file" name="video_upld" class="form-control"> @if($cate->video !="") <video src="{{ asset('video/class/'.$cate->video) }}" controls> </video> @endif </div> </div> </div> <div class="row"> <div class="col-md-12"> <div id="iframeURLBox" @if($cate->url !=NULL || $cate->video !=NULL || $cate->aws_upload !=NULL) class="display-none" @endif > <label for="">{{ __('adminstaticword.IframeURL') }}: </label> <input type="text" value="{{ $cate->iframe_url }}" name="iframe_url" class="form-control"> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div id="liveURLBox" @if($cate->iframe_url !=NULL || $cate->video !=NULL || $cate->aws_upload !=NULL || $cate->url !=NULL) class="display-none" @endif > <label for="appt">Select a Date & Time:</label> <input type="datetime-local" id="date_time" name="date_time" value="{{ $live_date }}" class="form-control"> </div> </div> </div> <div class="row"> <div class="col-md-12" id="duration"> <label for="">{{ __('adminstaticword.Duration') }} :</label> <input type="text" name="duration" value="{{ $cate->duration }}" class="form-control" placeholder="Enter class duration in (mins) Eg:160"> </div> </div> <br> @endif @if($cate->type =="audio") <div class="form-group"> <div class="col-md-12"> <input type="radio" name="checkAudio" id="ch11" value="audiourl" {{ $cate->url !="" ? 'checked' : "" }}> {{ __('adminstaticword.URL') }} <input type="radio" name="checkAudio" id="ch12" {{ $cate->audio !="" ? 'checked' : "" }} value="uploadaudio"> {{ __('adminstaticword.UploadAudio') }} </div> </div> <div class="form-group"> <div class="col-md-12"> <div id="audioURL" @if($cate->audio != "") class="display-none" @endif > <label for="">{{ __('adminstaticword.URL') }}: </label> <input type="text" value="{{ $cate->url }}" name="audiourl" class="form-control"> </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <div id="audioUpload" @if($cate->url !="") class="display-none" @endif > <label for="">{{ __('adminstaticword.UploadAudio') }}:</label> <input type="file" name="audio" class="form-control"> <br> @if($cate->audio !="") <label for="">{{ __('adminstaticword.AudioFileName') }}:</label> <input disabled value="{{ $cate->audio }}" class="form-control"> @endif </div> </div> </div> <div class="form-group"> <div class="col-md-12" id="duration"> <label for="">{{ __('adminstaticword.Duration') }} :</label> <input type="text" name="duration" value="{{ $cate->duration }}" class="form-control" placeholder="Enter class duration in (mins) Eg:160"> </div> </div> @endif @if($cate->type =="image") <div class="col-md-7" id="imagetype"> <input type="radio" name="checkImage" id="ch3" value="url" {{ $cate->url !="" ? 'checked' : "" }}> {{ __('adminstaticword.URL') }} <input type="radio" name="checkImage" id="ch4" {{ $cate->image !="" ? 'checked' : "" }} value="uploadimage"> {{ __('adminstaticword.UploadImage') }} </div> <div class="form-group"> <div class="col-md-12"> <div id="imageURL" @if($cate->image !="") class="display-none" @endif > <label for="">{{ __('adminstaticword.URL') }}: </label> <input type="text" value="{{ $cate->url }}" name="imgurl" class="form-control"> </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <div id="imageUpload" @if($cate->url !="") class="display-none" @endif > <label for="">{{ __('adminstaticword.UploadImage') }}:</label> <input type="file" name="image" class="form-control"> <br> @if($cate->image !="") <img src="{{ asset('images/class/'.$cate->image) }}" width="200" height="150" autoplay="no"> </img> @endif </div> </div> </div> <br> <div class="form-group"> <div class="col-md-12" id="size"> <label for="">{{ __('adminstaticword.Size') }}:</label> <input type="text" name="size" value="{{ $cate->size }}" class="form-control"> </div> </div> @endif @if($cate->type =="zip") <div class="form-group"> <div class="col-md-12" id="ziptype"> <input type="radio" name="checkZip" id="ch5" value="url" {{ $cate->url !="" ? 'checked' : "" }}> {{ __('adminstaticword.URL') }} <input type="radio" name="checkZip" id="ch6" {{ $cate->zip !="" ? 'checked' : "" }} value="uploadzip"> {{ __('adminstaticword.UploadZip') }} </div> </div> <div class="form-group"> <div class="col-md-12"> <div id="zipURL" @if($cate->zip !="") class="display-none" @endif > <label for=""> {{ __('adminstaticword.URL') }}: </label> <input type="text" value="{{ $cate->url }}" name="zipurl" class="form-control"> </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <div id="zipUpload" @if($cate->url !="") class="display-none" @endif> <label for="">{{ __('adminstaticword.UploadZip') }}:</label> <input type="file" name="zip" class="form-control"> <br> @if($cate->zip !="") <label for="">{{ __('adminstaticword.ZipFileName') }}:</label> <input disabled value="{{ $cate->zip }}" class="form-control"> @endif </div> </div> </div> <br> <div class="col-md-12" id="size"> <label for=""> {{ __('adminstaticword.Size') }}:</label> <input type="text" name="size" value="{{ $cate->size }}" class="form-control"> </div> @endif @if($cate->type =="pdf") <div class="col-md-12" id="pdftype"> <input type="radio" name="checkPdf" id="ch8" value="url" {{ $cate->url !="" ? 'checked' : "" }}> {{ __('adminstaticword.URL') }} <input type="radio" name="checkPdf" id="ch9" {{ $cate->pdf !="" ? 'checked' : "" }} value="uploadpdf"> {{ __('adminstaticword.UploadPdf') }} </div> <div class="form-group"> <div class="col-md-12" id="pdfURL" @if($cate->pdf !="") class="display-none" @endif > <div id="pdfURL" @if($cate->pdf !="") class="display-none" @endif > <label for=""> {{ __('adminstaticword.URL') }}: </label> <input type="text" value="{{ $cate->url }}" name="pdfurl" class="form-control"> </div> </div> </div> <div class="col-md-7" id="pdfUpload" @if($cate->url !="") class="display-none" @endif > <label for=""> {{ __('adminstaticword.UploadPdf') }}:</label> <input type="file" name="pdf" class="form-control"> <br> @if($cate->pdf !="") <label for="">{{ __('adminstaticword.PdfFileName') }}:</label> <input disabled value="{{ $cate->pdf }}" class="form-control"> @endif </div> <br> <br> <div class="col-md-12" id="size"> <label for="">{{ __('adminstaticword.Size') }}:</label> <input type="text" name="size" value="{{ $cate->size }}" class="form-control"> </div> @endif <!-- preview video --> @if($cate->type =="video") <div class="row"> <div class="col-md-12"> <label for="exampleInputDetails">{{ __('adminstaticword.PreviewVideo') }}:</label> <li class="tg-list-item"> <input name="preview_type" class="tgl tgl-skewed" id="previewvide" type="checkbox" > <label class="tgl-btn" data-tg-off="URL" data-tg-on="Upload" for="previewvide" ></label> </li> <input type="hidden" name="free" value="0" id="to"> <div @if($cate->preview_type =="url" ) class="display-none" @endif id="document11"> <label for="exampleInputSlug">Preview {{ __('adminstaticword.UploadVideo') }}: <sup class="redstar">*</sup></label> <input type="file" class="form-control" name="video" id="video" value="{{ $cate->video }}"> @if($cate->preview_video !="") <video src="{{ asset('video/class/preview/'.$cate->preview_video) }}" width="200" height="150" autoplay="no"> </video> @endif </div> <div @if($cate->preview_type =="video") class="display-none" @endif id="document22"> <label for="exampleInputSlug">Preview {{ __('adminstaticword.URL') }}: <sup class="redstar">*</sup></label> <input class="form-control" placeholder="Enter Your URL" name="preview_url" id="url" value="{{ $cate->preview_url }}"> </div> </div> </div> <br> @endif <div class="row"> <div class="col-md-12"> <label for="exampleInputDetails">{{ __('adminstaticword.LearningMaterial') }}</label> - <p class="inline info">eg: zip or pdf files</p> <br> <input type="file" name="file" value="{{ $cate->file }}" id="file2" class="{{ $errors->has('file') ? ' is-invalid' : '' }} inputfile inputfile-1"/> <label for="file2"><svg xmlns="http://www.w3.org/2000/svg" width="50" height="30" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> <span>{{ __('adminstaticword.Chooseafile') }}</span></label> <span class="text-danger invalid-feedback" role="alert"></span> @if($cate->file != NULL) <input disabled class="form-control" value="{{$cate->file}}"> @endif </div> </div> <br> <!-- end preview video --> <div class="row"> <div class="col-md-4"> <label for="exampleInputTit1e">{{ __('adminstaticword.Status') }}:</label> <li class="tg-list-item"> <input class="tgl tgl-skewed" id="status" type="checkbox" name="status" {{ $cate->status == '1' ? 'checked' : '' }} > <label class="tgl-btn" data-tg-off="Disable" data-tg-on="Enable" for="status"></label> </li> <input type="hidden" name="free" value="0" for="status" id="status"> <br> </div> <div class="col-md-4"> <label for="exampleInputTit1e">{{ __('adminstaticword.Featured') }}:</label> <li class="tg-list-item"> <input class="tgl tgl-skewed" id="featured" type="checkbox" name="featured" {{ $cate->featured == '1' ? 'checked' : '' }} > <label class="tgl-btn" data-tg-off="Disable" data-tg-on="Enable" for="featured"></label> </li> <input type="hidden" name="free" value="0" id="featured"> <br> </div> </div> <div class="box-footer"> <button type="submit" class="btn btn-lg col-md-4 btn-primary">{{ __('adminstaticword.Save') }}</button> </div> </form> </div> </div> </div> </div> @if($cate->type =="video") <div class="col-md-5"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">{{ __('adminstaticword.Subtitle') }}</h3> </div> <div class="box-body"> <a data-toggle="modal" data-target="#myModalSubtitle" href="#" class="btn btn-info btn-sm">+ {{ __('adminstaticword.Add') }} {{ __('adminstaticword.Subtitle') }}</a> <!--Model start--> <div class="modal fade" id="myModalSubtitle" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel"> {{ __('adminstaticword.Add') }}{{ __('adminstaticword.Subtitle') }}</h4> </div> <div class="box box-primary"> <div class="panel panel-sum"> <div class="modal-body"> <form enctype="multipart/form-data" id="demo-form2" method="post" action="{{ route('add.subtitle',$cate->id) }}" data-parsley-validate class="form-horizontal form-label-left"> {{ csrf_field() }} <div id="subtitle"> <label>{{ __('adminstaticword.Subtitle') }}:</label> <table class="table table-bordered" id="dynamic_field"> <tr> <td> <div class="{{ $errors->has('sub_t') ? ' has-error' : '' }} input-file-block"> <input type="file" name="sub_t[]"/> <p class="info">Choose subtitle file ex. subtitle.srt, or. txt</p> <small class="text-danger">{{ $errors->first('sub_t') }}</small> </div> </td> <td> <input type="text" name="sub_lang[]" placeholder="Subtitle Language" class="form-control name_list" /> </td> <td><button type="button" name="add" id="add" class="btn btn-xs btn-success"> <i class="fa fa-plus"></i> </button></td> </tr> </table> </div> <div class="box-footer"> <button type="submit" class="btn btn-lg col-md-3 btn-primary">{{ __('adminstaticword.Submit') }}</button> </div> </form> </div> </div> </div> </div> </div> </div> <table id="example1" class="table table-bordered table-striped"> <thead> <br> <br> <tr> <th>#</th> <th>{{ __('adminstaticword.SubtitleLanguage') }} </th> <th>{{ __('adminstaticword.Delete') }}</th> </tr> </thead> <tbody> <?php $i=0;?> @foreach($subtitles as $subtitle) <?php $i++;?> <tr> <td><?php echo $i;?></td> <td>{{$subtitle->sub_lang}}</td> <td> <form method="post" action="{{ route('del.subtitle',$subtitle->id) }}" data-parsley-validate class="form-horizontal form-label-left"> {{ csrf_field() }} <button type="submit" class="btn btn-danger display-inline"> <i class="fa fa-fw fa-trash-o"></i> </button> </form> </td> </tr> @endforeach </tbody> </table> </div> @endif </div> </section> @endsection @section('script') {{-- <script> (function($) { "use strict"; tinymce.init({selector:'textarea'}); })(jQuery); </script> --}} <script> $('#previewvide').on('change',function(){ if($('#previewvide').is(':checked')){ $('#document11').show('fast'); $('#document22').hide('fast'); }else{ $('#document22').show('fast'); $('#document11').hide('fast'); } }); </script> @if($cate->type =="video") <script> (function($) { "use strict"; $('#ch1').click(function(){ $('#videoURL').show(); $('#videoUpload').hide(); $('#iframeURLBox').hide(); $('#liveURLBox').hide(); $('#awsUpload').hide(); }); $('#ch2').click(function(){ $('#videoURL').hide(); $('#videoUpload').show(); $('#iframeURLBox').hide(); $('#liveURLBox').hide(); $('#awsUpload').hide(); }); $('#ch9').click(function(){ $('#iframeURLBox').show(); $('#videoURL').hide(); $('#videoUpload').hide(); $('#liveURLBox').hide(); $('#awsUpload').hide(); }); $('#ch10').click(function(){ $('#iframeURLBox').hide(); $('#videoURL').show(); $('#videoUpload').hide(); $('#liveURLBox').show(); $('#awsUpload').hide(); }); //aws checkbox $('#ch13').click(function(){ $('#awsUpload').show(); $('#iframeURLBox').hide(); $('#videoURL').hide(); $('#videoUpload').hide(); $('#liveURLBox').hide(); }); })(jQuery); </script> @endif @if($cate->type =="audio") <script> (function($) { "use strict"; $('#ch11').click(function(){ $('#audioURL').show(); $('#audioUpload').hide(); }); $('#ch12').click(function(){ $('#audioURL').hide(); $('#audioUpload').show(); }); })(jQuery); </script> @endif @if($cate->type =="image") <script> (function($) { "use strict"; $('#ch3').click(function(){ $('#imageURL').show(); $('#imageUpload').hide(); }); $('#ch4').click(function(){ $('#imageURL').hide(); $('#imageUpload').show(); }); })(jQuery); </script> @endif @if($cate->type =="zip") <script> (function($) { "use strict"; $('#ch5').click(function(){ $('#zipURL').show(); $('#zipUpload').hide(); }); $('#ch6').click(function(){ $('#zipURL').hide(); $('#zipUpload').show(); }); })(jQuery); </script> @endif @endsection
Save
cmd:
run