|
@@ -48,6 +48,11 @@
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="{{asset('web/css/datepicker.min.css')}}">
|
|
<link rel="stylesheet" href="{{asset('web/css/datepicker.min.css')}}">
|
|
<link rel="stylesheet" href="{{asset('web/css/sweetalert/sweetalert.css')}}">
|
|
<link rel="stylesheet" href="{{asset('web/css/sweetalert/sweetalert.css')}}">
|
|
|
|
+ {{-- Ajax Form Submit --}}
|
|
|
|
+ <link href="{{ asset('css/noty/lib/noty.css') }}" rel="stylesheet" type="text/css">
|
|
|
|
+ <link href="{{ asset('css/noty/lib/themes/sunset.css') }}" rel="stylesheet" type="text/css">
|
|
|
|
+ <link href="{{ asset('css/flatpickr/dist/flatpickr.min.css') }}" rel="stylesheet" type="text/css">
|
|
|
|
+ <link href="{{ asset('css/wait-me/waitMe.min.css')}}" rel="stylesheet" type="text/css">
|
|
</head>
|
|
</head>
|
|
<style>
|
|
<style>
|
|
|
|
|
|
@@ -518,34 +523,55 @@ tbody, td, tfoot, th, thead, tr {
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
|
|
+ @if(count($register_teachers_list) > 0)
|
|
|
|
+ @foreach($register_teachers_list as $key=>$row)
|
|
<tr>
|
|
<tr>
|
|
- <td style="font-size: 11px;">1</td>
|
|
|
|
- <td style="font-size: 11px;">name<br>
|
|
|
|
- <span>designation</span><br>
|
|
|
|
- <span>email</span>
|
|
|
|
|
|
+ <td style="font-size: 11px;">{{++$key}}</td>
|
|
|
|
+ <td style="font-size: 11px;">{{$row->first_name }} {{$row->last_name }}<br>
|
|
|
|
+ <span>{{$row->designation}}</span><br>
|
|
|
|
+ <span>{{$row->email}}</span>
|
|
</td>
|
|
</td>
|
|
- <td style="font-size: 11px;">uni name<br>
|
|
|
|
- <span>website</span>
|
|
|
|
|
|
+ <td style="font-size: 11px;">{{$row->university_name}}<br>
|
|
|
|
+ <span>{{$row->uni_website}}</span>
|
|
</td>
|
|
</td>
|
|
- <td style="font-size: 11px;">test</td>
|
|
|
|
|
|
+ <td style="font-size: 11px;">{{$row->department}}</td>
|
|
<td style="font-size: 11px; width: 9%;">
|
|
<td style="font-size: 11px; width: 9%;">
|
|
<div class="single_glance_row mt-1" style="display: flex;">
|
|
<div class="single_glance_row mt-1" style="display: flex;">
|
|
<div class="top_part_status" style="position: relative; width: fit-content; margin-left: 10px;">
|
|
<div class="top_part_status" style="position: relative; width: fit-content; margin-left: 10px;">
|
|
<span class="top_part_status_name" style="background: #dcdcdc; color: #8c9094;">
|
|
<span class="top_part_status_name" style="background: #dcdcdc; color: #8c9094;">
|
|
|
|
+ @if($row->status==1)
|
|
Active
|
|
Active
|
|
|
|
+ @endif
|
|
|
|
+ @if($row->status==0)
|
|
|
|
+ In active
|
|
|
|
+ @endif
|
|
|
|
+ @if($row->status==2)
|
|
|
|
+ Suspend
|
|
|
|
+ @endif
|
|
|
|
+
|
|
</span>
|
|
</span>
|
|
<div class="dropdown" style="top: 0.4px; position: absolute; right: 9px;">
|
|
<div class="dropdown" style="top: 0.4px; position: absolute; right: 9px;">
|
|
<i class="fa fa-caret-down dropdown-toggle add_hover tooltips" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" data-original-title="Change Status" style="color: #8c9094;"></i>
|
|
<i class="fa fa-caret-down dropdown-toggle add_hover tooltips" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" data-original-title="Change Status" style="color: #8c9094;"></i>
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; transform: translate3d(10px, 13px, 0px); top: 0px; left: 0px; will-change: transform; margin-left: -75px; z-index: 2; margin-top: 10px;">
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; transform: translate3d(10px, 13px, 0px); top: 0px; left: 0px; will-change: transform; margin-left: -75px; z-index: 2; margin-top: 10px;">
|
|
- <a class="dropdown-item document_review_status_change" data-sval="3" name="sublead_status" href="#">Active</a>
|
|
|
|
- <a class="dropdown-item document_review_status_change" data-sval="3" name="sublead_status" href="#">In active</a>
|
|
|
|
- <a class="dropdown-item document_review_status_change" data-sval="3" name="sublead_status" href="#">Suspend</a>
|
|
|
|
|
|
+ <a class="dropdown-item status_change" data-value="1" data-id={{$row->id}}>Active</a>
|
|
|
|
+ <a class="dropdown-item status_change" data-value="0" data-id={{$row->id}}>In active</a>
|
|
|
|
+ <a class="dropdown-item status_change" data-value="2" data-id={{$row->id}}>Suspend</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
- </tr>
|
|
|
|
|
|
+ </tr>
|
|
|
|
+ @endforeach
|
|
|
|
+ @else
|
|
|
|
+
|
|
|
|
+ <tr>
|
|
|
|
+ <td colspan="5" class="text-center">
|
|
|
|
+ <span class="text-danger">No data found!</span>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+
|
|
|
|
+ @endif
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@@ -568,34 +594,55 @@ tbody, td, tfoot, th, thead, tr {
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
|
|
+ @if(count($active_teachers_list) > 0)
|
|
|
|
+ @foreach($active_teachers_list as $key=>$row)
|
|
<tr>
|
|
<tr>
|
|
- <td style="font-size: 11px;">1</td>
|
|
|
|
- <td style="font-size: 11px;">name<br>
|
|
|
|
- <span>designation</span><br>
|
|
|
|
- <span>email</span>
|
|
|
|
|
|
+ <td style="font-size: 11px;">{{++$key}}</td>
|
|
|
|
+ <td style="font-size: 11px;">{{$row->first_name }} {{$row->last_name }}<br>
|
|
|
|
+ <span>{{$row->designation}}</span><br>
|
|
|
|
+ <span>{{$row->email}}</span>
|
|
</td>
|
|
</td>
|
|
- <td style="font-size: 11px;">uni name<br>
|
|
|
|
- <span>website</span>
|
|
|
|
|
|
+ <td style="font-size: 11px;">{{$row->university_name}}<br>
|
|
|
|
+ <span>{{$row->uni_website}}</span>
|
|
</td>
|
|
</td>
|
|
- <td style="font-size: 11px;">test</td>
|
|
|
|
|
|
+ <td style="font-size: 11px;">{{$row->department}}</td>
|
|
<td style="font-size: 11px; width: 9%;">
|
|
<td style="font-size: 11px; width: 9%;">
|
|
<div class="single_glance_row mt-1" style="display: flex;">
|
|
<div class="single_glance_row mt-1" style="display: flex;">
|
|
<div class="top_part_status" style="position: relative; width: fit-content; margin-left: 10px;">
|
|
<div class="top_part_status" style="position: relative; width: fit-content; margin-left: 10px;">
|
|
<span class="top_part_status_name" style="background: #dcdcdc; color: #8c9094;">
|
|
<span class="top_part_status_name" style="background: #dcdcdc; color: #8c9094;">
|
|
- Pending
|
|
|
|
|
|
+ @if($row->status==1)
|
|
|
|
+ Active
|
|
|
|
+ @endif
|
|
|
|
+ @if($row->status==0)
|
|
|
|
+ In active
|
|
|
|
+ @endif
|
|
|
|
+ @if($row->status==2)
|
|
|
|
+ Suspend
|
|
|
|
+ @endif
|
|
|
|
+
|
|
</span>
|
|
</span>
|
|
<div class="dropdown" style="top: 0.4px; position: absolute; right: 9px;">
|
|
<div class="dropdown" style="top: 0.4px; position: absolute; right: 9px;">
|
|
<i class="fa fa-caret-down dropdown-toggle add_hover tooltips" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" data-original-title="Change Status" style="color: #8c9094;"></i>
|
|
<i class="fa fa-caret-down dropdown-toggle add_hover tooltips" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" data-original-title="Change Status" style="color: #8c9094;"></i>
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; transform: translate3d(10px, 13px, 0px); top: 0px; left: 0px; will-change: transform; margin-left: -75px; z-index: 2; margin-top: 10px;">
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; transform: translate3d(10px, 13px, 0px); top: 0px; left: 0px; will-change: transform; margin-left: -75px; z-index: 2; margin-top: 10px;">
|
|
- <a class="dropdown-item document_review_status_change" data-sval="3" name="sublead_status" href="#">Pending</a>
|
|
|
|
- <a class="dropdown-item document_review_status_change" data-sval="3" name="sublead_status" href="#">Approved</a>
|
|
|
|
- <a class="dropdown-item document_review_status_change" data-sval="3" name="sublead_status" href="#">Terminate</a>
|
|
|
|
|
|
+ <a class="dropdown-item status_change" data-value="1" data-id={{$row->id}}>Active</a>
|
|
|
|
+ <a class="dropdown-item status_change" data-value="0" data-id={{$row->id}}>In active</a>
|
|
|
|
+ <a class="dropdown-item status_change" data-value="2" data-id={{$row->id}}>Suspend</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
- </tr>
|
|
|
|
|
|
+ </tr>
|
|
|
|
+ @endforeach
|
|
|
|
+ @else
|
|
|
|
+
|
|
|
|
+ <tr>
|
|
|
|
+ <td colspan="5" class="text-center">
|
|
|
|
+ <span class="text-danger">No data found!</span>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+
|
|
|
|
+ @endif
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@@ -640,6 +687,80 @@ tbody, td, tfoot, th, thead, tr {
|
|
<script src="{{asset('web/js/plugins.init.js')}}"></script>
|
|
<script src="{{asset('web/js/plugins.init.js')}}"></script>
|
|
<script src="{{asset('web/js/app.js')}}"></script>
|
|
<script src="{{asset('web/js/app.js')}}"></script>
|
|
<script src="{{asset('web/css/sweetalert/sweetalert.min.js')}}"></script>
|
|
<script src="{{asset('web/css/sweetalert/sweetalert.min.js')}}"></script>
|
|
- <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
|
|
|
|
|
|
+ {{-- <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> --}}
|
|
|
|
+ <script src="{{ asset('css/jquery.min.js') }}"></script>
|
|
|
|
+ <script src="{{ asset('css/jquery-form/dist/jquery.form.min.js') }}"></script>
|
|
|
|
+ <script src="{{ asset('css/noty/lib/noty.min.js') }}"></script>
|
|
|
|
+ <script src="{{ asset('css/flatpickr/dist/flatpickr.min.js') }}"></script>
|
|
|
|
+ <script src="{{ asset('css/wait-me/waitMe.min.js')}}"></script>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <script>
|
|
|
|
+ function pop_up_msg(msg='No message specified', type='success', callback=null){
|
|
|
|
+ new Noty({
|
|
|
|
+ theme:'sunset',
|
|
|
|
+ text: msg,
|
|
|
|
+ type: type,
|
|
|
|
+ timeout:1500,
|
|
|
|
+ callbacks:{
|
|
|
|
+ afterClose: callback
|
|
|
|
+ }
|
|
|
|
+ }).show();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function err_msg(err){
|
|
|
|
+
|
|
|
|
+ var msg="Request failed to process, try again later.";
|
|
|
|
+
|
|
|
|
+ if(err.responseJSON && err.responseJSON.msg){
|
|
|
|
+ msg=err.responseJSON.msg;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return msg;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $(function(){
|
|
|
|
+ $('.status_change').on('click', function(e){
|
|
|
|
+ var self =$(this);
|
|
|
|
+ var id =$(this).data('id');
|
|
|
|
+ var value =$(this).data('value');
|
|
|
|
+
|
|
|
|
+ var form_data={
|
|
|
|
+ _token:"{{ csrf_token() }}",
|
|
|
|
+ 'id':id,
|
|
|
|
+ 'status':value
|
|
|
|
+ }
|
|
|
|
+ swal({
|
|
|
|
+ title: "Are you sure?",
|
|
|
|
+ text: "Do you want to change this status?",
|
|
|
|
+ type: "warning",
|
|
|
|
+ showCancelButton: true,
|
|
|
|
+ confirmButtonClass: "btn btn-md btn-success",
|
|
|
|
+ cancelButtonClass: 'btn btn-md btn-danger',
|
|
|
|
+ confirmButtonText: "Yes"
|
|
|
|
+ }, function(isConfirm){
|
|
|
|
+
|
|
|
|
+ if(isConfirm) {
|
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'teacher_user_status_change'])}}" ,form_data).done(function(res){
|
|
|
|
+
|
|
|
|
+ pop_up_msg(res.msg);
|
|
|
|
+ window.location.reload();
|
|
|
|
+
|
|
|
|
+ }).fail(function(error){
|
|
|
|
+
|
|
|
|
+ let msg='Sorry!, form submission failed try again later.';
|
|
|
|
+
|
|
|
|
+ if(error.responseJSON.msg){
|
|
|
|
+ msg=error.responseJSON.msg;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ pop_up_msg(msg, 'error');
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ </script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|