/
home
/
techb158
/
ileadtechnology.com
/
resources
/
views
/
admin
/
course
/
coursechapter
/
/home/techb158/ileadtechnology.com/resources/views/admin/course/coursechapter
mkdir
upload
Name
Size
Mode
Actions
edit.blade.php
3981
0644
edit
dl
rm
index.blade.php
6856
0644
edit
dl
rm
Edit:
/home/techb158/ileadtechnology.com/resources/views/admin/course/coursechapter/index.blade.php
(6856B)
<section class="content"> <div class="row"> <div class="col-md-12"> <a data-toggle="modal" data-target="#myModalp" href="#" class="btn btn-info btn-sm">+ {{ __('adminstaticword.Add') }}</a> <br> <br> <div class="table-responsive"> <table id="example1" class="table table-bordered table-striped db"> <thead> <tr> <th>#</th> <th>{{ __('adminstaticword.Course') }}</th> <th>{{ __('adminstaticword.ChapterName') }}</th> <th>{{ __('adminstaticword.Status') }}</th> <th>{{ __('adminstaticword.Edit') }}</th> <th>{{ __('adminstaticword.Delete') }}</th> </tr> </thead> <tbody> <?php $i=0;?> @foreach($coursechapter as $cat) <tr > <?php $i++;?> <td><?php echo $i;?></td> <td>{{$cat->courses->title}}</td> <td>{{$cat->chapter_name}}</td> <td> <form action="{{ route('Chapter.quick',$cat->id) }}" method="POST"> {{ csrf_field() }} <button type="Submit" class="btn btn-xs {{ $cat->status ==1 ? 'btn-success' : 'btn-danger' }}"> @if($cat->status ==1) {{ __('adminstaticword.Active') }} @else {{ __('adminstaticword.Deactive') }} @endif </button> </form> </td> <td> <a class="btn btn-success btn-sm" href="{{url('coursechapter/'.$cat->id)}}"><i class="glyphicon glyphicon-pencil"></i></a> </td> <td> <form method="post" action="{{url('coursechapter/'.$cat->id)}}" data-parsley-validate class="form-horizontal form-label-left"> {{ csrf_field() }} {{ method_field('DELETE') }} <button type="submit" class="btn btn-danger"><i class="fa fa-fw fa-trash-o"></i></button> </form> </td> </tr> @endforeach </tbody> </table> </div> </div> </div> <!--Model start--> <div class="modal fade" id="myModalp" 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.AddCourseChapter') }}</h4> </div> <div class="box box-primary"> <div class="panel panel-sum"> <div class="modal-body"> <form id="demo-form2" method="post" action="{{ route('coursechapter.store') }}" data-parsley-validate class="form-horizontal form-label-left" enctype="multipart/form-data"> {{ csrf_field() }} <select name="course_id" class="form-control display-none"> <option value="{{ $cor->id }}">{{ $cor->title }}</option> </select> <div class="row"> <div class="col-md-12"> <label for="exampleInputTit1e">{{ __('adminstaticword.ChapterName') }}:<span class="redstar">*</span> </label> <input type="text" placeholder="Enter Your Chapter Name" class="form-control " name="chapter_name" id="exampleInputTitle" value=""> </div> <div class="col-md-6"> </div> </div> <br> <div class="row"> <div class="col-md-6"> <label for="exampleInputDetails">{{ __('adminstaticword.LearningMaterial') }}</label> - <p class="inline info">eg: zip or pdf files</p> <br> <input type="file" name="file" id="file" class="{{ $errors->has('file') ? ' is-invalid' : '' }} inputfile inputfile-1"/> <label for="file"><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> </div> <div class="col-md-6"> <label for="exampleInputDetails">{{ __('adminstaticword.Status') }}:</label> <li class="tg-list-item"> <input class="tgl tgl-skewed" id="cb300" type="checkbox"/> <label class="tgl-btn" data-tg-off="Deactive" data-tg-on="Active" for="cb300"></label> </li> <input type="hidden" name="status" value="1" id="ram"> </div> </div> <br> <div class="box-footer"> <button type="submit" class="btn btn-md col-md-3 btn-primary">{{ __('adminstaticword.Submit') }}</button> </div> </form> </div> </div> </div> </div> </div> </div> <!--Model close --> </section> @section('script') <script> $( "#sortable" ).sortable({ items: "tr", cursor: 'move', opacity: 0.6, update: function() { sendOrderToServer(); } }); function sendOrderToServer() { var order = []; var token = $('meta[name="csrf-token"]').attr('content'); $('tr.row1').each(function(index,element) { order.push({ id: $(this).attr('data-id'), position: index+1 }); }); $.ajax({ type: "POST", dataType: "json", url: "{{ route('chapter-sort') }}", data: { order: order, _token: "{{ csrf_token() }}", }, success: function(response) { if (response.status == "success") { console.log(response); } else { console.log(response); } } }); } </script> @endsection
Save
cmd:
run