add_destination.blade.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. {{-- <table class="table table-bordered list_table mt-3">
  20. <thead>
  21. <tr>
  22. <th class="text-center" style="width: 13%;">Sl</th>
  23. <th>Country</th>
  24. <th class="text-center"><i class="fa fa-cog"></i></th>
  25. </tr>
  26. </thead>
  27. <tbody style="border-style: dashed;">
  28. <tr>
  29. <td class="text-center" style="font-size: 11px;">1</td>
  30. <td style="font-size: 11px;">
  31. <img src="{{ asset('web/images/au.svg') }}" alt="" style="height: 20px; border-radius: 50%; width: 20px; margin: 3px;">
  32. Australia
  33. </td>
  34. <td class="text-center" style="font-size: 11px;">
  35. <div class="form-check form-switch" id="">
  36. <input class="form-check-input" type="checkbox" name="" value="" style="height:18px; width: 30px; position: absolute;">
  37. <label class="form-check-label" for=""></label>
  38. </div>
  39. </td>
  40. </tr>
  41. </tbody>
  42. </table> --}}
  43. </div>
  44. </div>
  45. </div>
  46. <div class="container">
  47. <div class="col-md-12 text-end">
  48. <button type="button" class="btn btn1 mt-3 done_btn" data-dismiss="modal" style="padding: 3px 18px;">Done</button>
  49. </div>
  50. </div>
  51. <input type="hidden" value="{{url('/')}}" id="base">
  52. <script>
  53. $(function(){
  54. // $('.select2').select2();
  55. $('#modal_page_footer').hide();
  56. $(document).ready(function(){
  57. load_list_add(0);
  58. });
  59. $('#search_add').on('keyup', function(){
  60. var search = encodeURIComponent($('#search_add').val().trim());
  61. if(search.length == 0){
  62. load_list_add(0);
  63. }else{
  64. load_list_add(search);
  65. }
  66. });
  67. function load_list_add(text){
  68. var base = $('#base').val();
  69. $.get(base+'/admin/dashboard/load_country_list/'+text, function(data) {
  70. $('.load_list_add').html(data);
  71. });
  72. }
  73. });
  74. $(document).ready(function(){
  75. $('.done_btn').on('click', function(text){
  76. window.location.reload(base+'/admin/dashboard');
  77. //load_list_add(0);
  78. });
  79. });
  80. </script>
  81. @endsection