|
@@ -18,55 +18,81 @@
|
|
|
<td style="font-size: 11px;">{{cn($row,'country.name','')}}</td>
|
|
|
<td style="font-size: 11px;">{{$row->name}}</td>
|
|
|
<td style="font-size: 11px;">{{$row->web_address}}</td>
|
|
|
- <td style="font-size: 11px; text-align: center;">
|
|
|
- {{-- <a role="" data-bs-toggle="collapse" data-bs-parent="#collapse" href="#collapse1" aria-expanded="true" aria-controls="collapse1"> --}}
|
|
|
- <i class="fa fa-edit" data-toggle="" data-target=""></i>
|
|
|
- {{-- </a> --}}
|
|
|
- <i class="fa fa-trash ms-1"></i>
|
|
|
+ <td style="font-size: 11px; text-align: center;">
|
|
|
+ <span class="edit_uni_info" data-id="{{$row->id}}" style="cursor: pointer;"><i class="fa fa-edit" ></i></span>
|
|
|
+ <span class="delete_uni_info" data-id="{{$row->id}}" style="cursor: pointer;"><i class="fa fa-trash ms-1" ></i></span>
|
|
|
+
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php
|
|
|
+ $edit_cls_name = "edit_cls_".$row->id;
|
|
|
+ ?>
|
|
|
+ <tr class="edit_data {{$edit_cls_name}} d-none">
|
|
|
+ <td colspan="5">
|
|
|
+ <div class="edit_university_load"></div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@endforeach
|
|
|
</tbody>
|
|
|
</table>
|
|
|
-{{-- <div class="col-md-12">
|
|
|
- <div id="demo1" class="collapse">
|
|
|
- <div class="panel-body mb-2" style="padding:10px; background-color: #16183f69; border: 1px solid #e9e5e5; border-radius: 5px;">
|
|
|
- <form method="POST" action="" id="">
|
|
|
- <div class="row">
|
|
|
- <div class="col-md-4">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="form-label config">Destination</label>
|
|
|
- <div class="form-icon position-relative">
|
|
|
- <select name="country_id" id="country_id" class="form-control" required="" style="font-size: 13px;">
|
|
|
- <option value="" selected disabled>Select</option>
|
|
|
- @foreach($market_countries as $row)
|
|
|
- <option value="{{$row->country_id}}">{{ cn($row, 'country.name','')}}</option>
|
|
|
- @endforeach
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="col-md-4">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="form-label config">University Name</label>
|
|
|
- <div class="form-icon position-relative">
|
|
|
- <input type="text" class="form-control" placeholder="University Name" id="university_name" name="university_name" required="" style="font-size: 13px;">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="col-md-4">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="form-label config">University Website</label>
|
|
|
- <div class="form-icon position-relative">
|
|
|
- <input type="text" class="form-control" placeholder="University Website" id="university_website" name="university_website" required="" style="font-size: 13px;">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-</div> --}}
|
|
|
@endif
|
|
|
|
|
|
-@endsection
|
|
|
+@endsection
|
|
|
+
|
|
|
+<script>
|
|
|
+ $(function(){
|
|
|
+ $('.edit_uni_info').on('click', function(){
|
|
|
+
|
|
|
+ $('.edit_university_load').empty();
|
|
|
+ var self = $(this);
|
|
|
+ var id = self.attr("data-id");
|
|
|
+ var edit_cls = "edit_cls_"+id;
|
|
|
+ $('.edit_data').addClass('d-none');
|
|
|
+ $("."+edit_cls).removeClass('d-none');
|
|
|
+ var edit_university_load = self.closest('tbody').find('.edit_university_load');
|
|
|
+
|
|
|
+ fetch_sub_content(
|
|
|
+ edit_university_load,
|
|
|
+ "{!! route('sub-content', ['name'=>'edit_university_load','action'=>'edit']) !!}&edit_id="+id
|
|
|
+ );
|
|
|
+ });
|
|
|
+
|
|
|
+ $('.delete_uni_info').on('click', function(){
|
|
|
+ var id = $(this).attr("data-id");
|
|
|
+ var form_data={
|
|
|
+ _token: "{{ csrf_token() }}",
|
|
|
+ delete_id: id,
|
|
|
+ }
|
|
|
+ swal({
|
|
|
+ title: "Are you sure?",
|
|
|
+ text: "You will not be able to recover this data!",
|
|
|
+ type: "warning",
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonClass: "btn-danger",
|
|
|
+ cancelButtonClass: "btn-info",
|
|
|
+ confirmButtonText: "Yes, delete!",
|
|
|
+ cancelButtonText: "No, cancel!",
|
|
|
+
|
|
|
+ }, function(isConfirm){
|
|
|
+
|
|
|
+ if(isConfirm){
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'delete_university_info']) }}",form_data
|
|
|
+ ).done(function(res){
|
|
|
+
|
|
|
+ pop_up_msg(res.msg);
|
|
|
+
|
|
|
+ $('#country_wise_university').empty();
|
|
|
+ fetch_sub_content(
|
|
|
+ '#country_wise_university',
|
|
|
+ "{{ route('sub-content', ['name'=>'country_wise_university']) }}"
|
|
|
+ );
|
|
|
+
|
|
|
+ }).fail(function(err){
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
+ });
|
|
|
+</script>
|