add_destination.blade.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @extends('modal_pages.base')
  2. <style>
  3. .listFlag{
  4. height: 20px;
  5. border-radius: 50%;
  6. width: 20px;
  7. margin-right: 5px;
  8. }
  9. </style>
  10. @section('main')
  11. <div class="container mt-3" style="background-color: white; border-radius: 6px;">
  12. <div class="row">
  13. <div class="co-md-12 p-3">
  14. <div class="form-icon position-relative" style="display:flex;">
  15. <i class="fa fa-search ms-3" style="position: absolute; margin-top: 14px; font-size: 13px;"></i>
  16. <input type="text" class="form-control search-box" id="search_add" placeholder="Search" name="" required="" style="padding: 0.4rem 0.9rem 0.4rem 2.5rem !important; background: linear-gradient(to bottom, #FFF 0%,#FFF 55%,#eeedf1 80%,#f5f5f5 100%); font-size: 13px;">
  17. </div>
  18. <div class="load_list_add"></div>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="container">
  23. <div class="col-md-12 text-end">
  24. <button type="button" class="btn btn1 mt-3 done_btn" data-dismiss="modal" style="padding: 3px 18px;">Done</button>
  25. </div>
  26. </div>
  27. <input type="hidden" value="{{url('/')}}" id="base">
  28. <script>
  29. $(function(){
  30. // $('.select2').select2();
  31. $('#modal_page_footer').hide();
  32. $(document).ready(function(){
  33. load_list_add(0);
  34. });
  35. $('#search_add').on('keyup', function(){
  36. var search = encodeURIComponent($('#search_add').val().trim());
  37. if(search.length == 0){
  38. load_list_add(0);
  39. }else{
  40. load_list_add(search);
  41. }
  42. });
  43. function load_list_add(text){
  44. var base = $('#base').val();
  45. $.get(base+'/admin/dashboard/load_country_list/'+text, function(data) {
  46. $('.load_list_add').html(data);
  47. });
  48. }
  49. });
  50. $(document).ready(function(){
  51. $('.done_btn').on('click', function(text){
  52. window.location.reload(base+'/admin/dashboard');
  53. //load_list_add(0);
  54. });
  55. });
  56. </script>
  57. @endsection