<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
      <title>@yield('title')</title>
      @yield('meta-data')
      <link rel="icon" href="{{asset('public/img').'/'.$setting->favicon}}" type="image/x-icon">
      <link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap" rel="stylesheet">
      <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap" rel="stylesheet">
      <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.11.3/css/jquery.dataTables.min.css">
      <link href="{{asset('public/front/Docpro/assets/css/font-awesome-all.css')}}" rel="stylesheet">
      <link href="{{asset('public/front/Docpro/assets/css/flaticon.css')}}" rel="stylesheet">
      <link href="{{asset('public/front/Docpro/assets/css/owl.css')}}" rel="stylesheet">
      <link href="{{asset('public/front/Docpro/assets/css/bootstrap.css')}}" rel="stylesheet">
      <link href="{{asset('public/front/Docpro/assets/css/jquery.fancybox.min.css')}}" rel="stylesheet">
      <link href="{{asset('public/front/Docpro/assets/css/animate.css')}}" rel="stylesheet">
      <link href="{{asset('public/front/Docpro/assets/css/color.css')}}" rel="stylesheet">
      <link href="{{asset('public/front/Docpro/assets/css/nice-select.css')}}" rel="stylesheet">
     
     <!--model -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
        
      @if($setting->is_rtl==1)
         <link href="{{ asset('public/front/Docpro/assets/css/app-rtl.min.css?v=123') }}" rel="stylesheet" />
      @else
         <link href="{{asset('public/front/Docpro/assets/css/style.css?v=2323')}}" rel="stylesheet">
      @endif       
      <link href="{{asset('public/front/Docpro/assets/css/responsive.css')}}" rel="stylesheet">
      <link rel="stylesheet" href="//code.jquery.com/ui/1.13.0/themes/base/jquery-ui.css">  
      @include('front.cssclass')
      <meta name="csrf-token" content="{{ csrf_token() }}">
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.min.css">
  <style>
   .nice-select .list {
                           max-height: 200px;
                           overflow-y: auto;
                      }
.icon-Trust-1 {
   display: none;
    color: black;
}
.check:checked + label .icon-Trust-1 {
   padding-left:30px ;
   font-size: 20px;
   display: inline-block;
    color: #5cb85c;
}
/* .nice-select{
   display: none;
} */
  </style>
   </head>
   <body>     
      <div class="boxed_wrapper">
         <div class="preloader"></div>
         <header class="main-header style-two">
            <div class="header-top">
              
               <div class="outer-container">
                  <div class="top-inner clearfix">
                     @if($setting->is_rtl==1)
                     <div class="top-left pull-right">
                        @else
                        <div class="top-left pull-left">
                        @endif
                        <ul class="info clearfix">
                           <li><i class="fas fa-map-marker-alt"></i>{{$setting->address}}</li>
                           <li><i class="fas fa-phone"></i><a href="javascript::void(0)">{{$setting->phone}}</a></li>
                        </ul>
                     </div>
                     @if($setting->is_rtl==1)

                     <div class="top-right pull-left">
                        @else
                         <div class="top-right pull-right">
                        @endif
                        <ul class="info clearfix">
                           @if(Auth::id())
                              @if(Auth::id() != 1)
                                 <li><a href="{{route('dashboard')}}">{{__('message.My Account')}}</a></li>
                             @else
                                 <li><a href="{{route('user-login')}}">{{__('message.Sign In')}}</a></li>
                             @endif
                           @else
                             <li><a href="{{route('user-login')}}">{{__('message.Sign In')}}</a></li>
                           @endif
                           <?php $cartCollection = Cart::getContent();?>
                           @if(Session::has("user"))
                           <li><a href="{{route('checkout')}}"><i class="fa fa-shopping-cart"></i><div class="e-nav-cricle"><h1 id="totalcart">{{isset($totalcartmember)?$totalcartmember:''}}</h1></div></a></li>
                        
                           @else
                            <!--<li><a><i type="button" data-toggle="modal" data-target="#myModal" class="fa fa-shopping-cart"></i><div class="e-nav-cricle"><h1 id="totalcart">{{isset($totalcartmember)?$totalcartmember:''}}</h1></div></a></li>-->
                        
                           @endif
                        </ul>
                     </div>
                  </div>
               </div>
            </div>
            
            <div class="header-lower">
               <div class="outer-container">
                  <div class="outer-box">
                     <div class="logo-box">
                        <figure class="logo"><a href="{{route('home')}}"><img src="{{asset('public/img').'/'.$setting->logo}}" alt=""></a></figure>
                     </div>
                     <div class="menu-area">
                        <div class="mobile-nav-toggler">
                           <i class="icon-bar"></i>
                           <i class="icon-bar"></i>
                           <i class="icon-bar"></i>
                        </div>
                        <nav class="main-menu navbar-expand-md navbar-light">
                           <div class="collapse navbar-collapse show clearfix" id="navbarSupportedContent">
                              <ul class="navigation clearfix">
                                 <li class="<?=Session::get("active_menu")==1?'current':''?>"><a href="{{route('home')}}">{{__('message.Home')}}</a></li>
                                 <li class="<?=Session::get("active_menu")==2?'current':''?>"><a href="{{route('aboutus')}}">{{__('message.About Us')}}</a></li>
                                 <li class="<?=Session::get("active_menu")==3?'current':''?>"><a href="{{route('service')}}">{{__('message.Service')}}</a></li>
                                 <li class="dropdown <?=Session::get("active_menu")==4?'current':''?>">
                                    <a href="#">{{__('message.Popular Package')}}</a>
                                    <ul>
                                       @foreach($popular_package as $p)
                                          <li>
                                             @if($p->type==1)
                                                <a href="{{ route('package-detail', ['id' => $p->type_id ]) }}">
                                             @elseif($p->type==2)
                                                 <a href="{{ route('parameter-detail', ['id' => $p->type_id ]) }}">
                                             @elseif($p->type==3)
                                                <a href="{{ route('profile-detail', ['id' => $p->type_id ]) }}">
                                             @endif
                                                {{$p->name}}
                                              </a>
                                          </li>
                                       @endforeach
                                    </ul>
                                 </li>
                                 <li class="<?=Session::get("active_menu")==5?'current':''?>">
                                    <a href="{{route('category-list')}}">{{__('message.Category')}}</a>
                                    
                                 </li>
                                 <li class="<?=Session::get("active_menu")==6?'current':''?>"><a href="{{route('contact-us')}}">{{__('message.Contact Us')}}</a></li>
                              </ul>
                           </div>
                        </nav>
                     </div>
                     {{-- <div class="btn-box"><a href="{{route('user-register')}}" class="theme-btn-one"><i class="icon-image"></i>{{__('message.Join Now')}}</a></div> --}}
                     @if(Auth::id())
                        @if(Auth::id() != 1)
                           <div class="btn-box"><a href="{{route('dashboard')}}" class="theme-btn-one"><i class="icon-image"></i>{{__('message.My Account')}}</a></div>
                        @else
                           <div class="btn-box"> <a href="{{route('user-register')}}" class="theme-btn-one"><i class="icon-image"></i>{{__('message.Join Now')}}</a></div>
                        @endif
                     @else
                     <div class="btn-box"> <a href="{{route('user-register')}}" class="theme-btn-one"><i class="icon-image"></i>{{__('message.Join Now')}}</a></div>
                     @endif
                  </div>
               </div>
            </div>
            <div class="sticky-header">
               <div class="auto-container">
                  <div class="outer-box">
                     <div class="logo-box">
                        <figure class="logo"><a href="{{route('home')}}"><img src="{{asset('public/img').'/'.$setting->logo}}" alt=""></a></figure>
                     </div>
                     <div class="menu-area">
                        <nav class="main-menu clearfix">
                        </nav>
                     </div>
                     {{-- <div class="btn-box"><a href="{{route('user-register')}}" class="theme-btn-one"><i class="icon-image"></i>{{__('message.Join Now')}}</a></div> --}}
                     @if(Auth::id())
                        @if(Auth::id() != 1)
                           <div class="btn-box"><a href="{{route('dashboard')}}" class="theme-btn-one"><i class="icon-image"></i>{{__('message.My Account')}}</a></div>
                        @else
                           <div class="btn-box"> <a href="{{route('user-register')}}" class="theme-btn-one"><i class="icon-image"></i>{{__('message.Join Now')}}</a></div>
                        @endif
                     @else
                     <div class="btn-box"> <a href="{{route('user-register')}}" class="theme-btn-one"><i class="icon-image"></i>{{__('message.Join Now')}}</a></div>
                     @endif
                  </div>
               </div>
            </div>
         </header>
         <div class="mobile-menu">
            <div class="menu-backdrop"></div>
            <div class="close-btn"><i class="fas fa-times"></i></div>
            <nav class="menu-box">
               <div class="nav-logo"><a href="#"><img src="{{asset('public/img').'/'.$setting->logo}}" alt="" title=""></a></div>
               <div class="menu-outer">
               </div>
               <div class="contact-info">
                  <h4>{{__('message.Contact Info')}}</h4>
                  <ul>
                     <li>{{$setting->address}}</li>
                     <li><a href="javascript::void(0)">{{$setting->phone}}</a></li>
                     <li><a href="javascript::void(0)">{{$setting->email}}</a></li>
                  </ul>
               </div>
               <div class="social-links">
                  <ul class="clearfix">
                     <li><a href="#"><span class="fab fa-twitter"></span></a></li>
                     <li><a href="#"><span class="fab fa-facebook-square"></span></a></li>
                     <li><a href="#"><span class="fab fa-pinterest-p"></span></a></li>
                     <li><a href="#"><span class="fab fa-instagram"></span></a></li>
                     <li><a href="#"><span class="fab fa-youtube"></span></a></li>
                  </ul>
               </div>
            </nav>
         </div>
          @yield('content')
         <section class="agent-section">
            <div class="auto-container">
               <div class="inner-container bg-color-2">
                  <div class="row clearfix">
                     <div class="col-lg-6 col-md-12 col-sm-12 left-column">
                        <div class="content_block_3">
                           <div class="content-box">
                              <h3>{{__('message.Emergency call')}}</h3>
                              <div class="support-box">
                                 <div class="icon-box"><i class="fas fa-phone"></i></div>
                                 <span>{{__('message.Telephone')}}</span>
                                 <h3><a href="javascript::void(0)">{{$setting->phone}}</a></h3>
                              </div>
                           </div>
                        </div>
                     </div>
                     <div class="col-lg-6 col-md-12 col-sm-12 right-column">
                        <div class="content_block_4">
                           <div class="content-box">
                              <h3>{{__('message.Sign up for Email')}}</h3>
                              <form action="#" method="post" class="subscribe-form">
                                 <div class="form-group">
                                    <input type="email" name="email" id="emailnews" placeholder="{{__('message.Enter Email')}}" required="">
                                    <button type="button" onclick="addnewsletter()" class="theme-btn-one">{{__('message.Submit now')}}<i class="icon-Arrow-Right"></i></button>
                                 </div>
                              </form>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </section>
         <footer class="main-footer">
            <div class="footer-top">
               <div class="pattern-layer">
                  <?php 
                     $sharp30 = asset('public/front/Docpro/assets/images/shape/shape-30.png');
                     $sharp31 = asset('public/front/Docpro/assets/images/shape/shape-31.png');
                     ?>
                  <div class="pattern-1" style="background-image: url('{{$sharp30}}');"></div>
                  <div class="pattern-2" style="background-image: url('{{$sharp31}}');"></div>
               </div>
               <div class="auto-container">
                  <div class="widget-section">
                     <div class="row clearfix">
                        <div class="col-lg-4 col-md-6 col-sm-12 footer-column">
                           <div class="footer-widget logo-widget">
                              <figure class="footer-logo"><a href="#"><img src="{{asset('public/img').'/'.$setting->footer_logo}}" alt=""></a></figure>
                              <div class="text">
                                 <p>{{__('message.footer text')}}</p>
                              </div>
                           </div>
                        </div>
                        <div class="col-lg-2 col-md-6 col-sm-12 footer-column">
                           <div class="footer-widget links-widget">
                              <div class="widget-title">
                                 <h3>About</h3>
                              </div>
                              <div class="widget-content">
                                 <ul class="links clearfix">
                                    <li><a href="{{route('aboutus')}}">{{__('message.About Us')}}</a></li>
                                    <li><a href="{{route('service')}}">{{__('message.Our Services')}}</a></li>
                                    <li><a href="{{route('contact-us')}}">{{__('message.Contact Us')}}</a></li>                                   
                                    <li><a href="{{url('/#download_app')}}">{{__('message.Download apps')}}</a></li>
                                 </ul>
                              </div>
                           </div>
                        </div>
                        <div class="col-lg-3 col-md-6 col-sm-12 footer-column">
                           <div class="footer-widget links-widget">
                              <div class="widget-title">
                                 <h3>{{__('message.Useful Links')}}</h3>
                              </div>
                              <div class="widget-content">
                                 <ul class="links clearfix">
                                    <li><a href="{{route('show-package-list')}}">{{__('message.Popular Package')}}</a></li>
                                    <li><a href="{{url('categorylist')}}">{{__('message.Category')}}</a></li>
                                    {{-- <li><a href="{{route('dashboard')}}">{{__('message.My Account')}}</a></li> --}}
                                    @if(Auth::id())
                                       <li><a href="{{route('dashboard')}}">{{__('message.My Account')}}</a></li>
                                    @else
                                       <li><a href="{{route('user-login')}}">{{__('message.Sign In')}}</a></li>
                                    @endif
                                    <li><a href="{{route('checkout')}}">{{__('message.CheckOut')}}</a></li>
                                 </ul>
                              </div>
                           </div>
                        </div>
                        <div class="col-lg-3 col-md-6 col-sm-12 footer-column">
                           <div class="footer-widget contact-widget">
                              <div class="widget-title">
                                 <h3>{{__('message.Contacts')}}</h3>
                              </div>
                              <div class="widget-content">
                                 <ul class="info-list clearfix">
                                    <li><i class="fas fa-map-marker-alt"></i>
                                       {{$setting->address}}
                                    </li>
                                    <li><i class="fas fa-microphone"></i>
                                       <a href="javascript::void(0)">{{$setting->phone}}</a>
                                    </li>
                                    <li><i class="fas fa-envelope"></i>
                                       <a href="javascript::void(0)">{{$setting->email}}</a>
                                    </li>
                                 </ul>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="footer-bottom">
               <div class="auto-container">
                  <div class="inner-box clearfix">
                     <div class="copyright pull-left">
                        <p><a href="#">{{__("message.site_name")}}</a> &copy; {{date('Y')}} {{__("message.All Right Reserved")}}</p>
                     </div>
                     <ul class="footer-nav pull-right clearfix">
                        <li><a href="{{route('terms_user')}}">{{__("message.Terms of Service")}}</a></li>
                        <li><a href="#">{{__("message.Privacy Policy")}}</a></li>
                     </ul>
                  </div>
               </div>
            </div>
         </footer>
         <button class="scroll-top scroll-to-target" data-target="html">
         <span class="fa fa-arrow-up"></span>
         </button>
      </div>
      <div class="modal" id="addaddress">
         <div class="modal-dialog modal-lg">
            <div class="modal-content" id="member_list">
               <!-- Modal Header -->
               <div class="modal-header">
                  <h4 class="modal-title">{{__("message.Select Member")}}</h4>
                  <button type="button" class="close" data-dismiss="modal">&times;</button>
               </div>
               <!-- Modal body -->
               <div class="modal-body" id="memeber_list">
                  <button type="button" id="address_submit_button" onclick="closecontent('member_list','add_member')" class="btn btn-success mb-3">{{__("message.Add Member")}}</button>
                  <form action="{{route('add-cart-member')}}" method="post" id="user_address" class="registration-form boxed">
                     {{csrf_field()}}
                     <input type="hidden" name="type" id="book_type" value="">
                     <input type="hidden" name="type_id" id="book_type_id" value="">
                     <input type="hidden" name="mrp" id="book_mrp" value="">
                     <input type="hidden" name="price" id="book_price" value="">
                     <input type="hidden" name="parameter" id="book_parameter" value="">
                     <div id="member_list_div">
                  @if(isset($member_list))
                    @foreach($member_list as $ml)
                       <input type="checkbox" id="member_{{$ml->id}}" name="member[]" value="{{$ml->id}}" class="check">
                        <label for="member_{{$ml->id}}">{{$ml->name}} <i class="icon-Trust-1"></i> </br> <p>{{$ml->relation}}</p>
                                                   <p>{{$ml->gender}} | {{$ml->age}}</p></label>
                    @endforeach
                  @endif
               </div>
               </div>

               <div class="modal-footer">
                  {{-- <button type="button" id="address_submit_button" onclick="closecontent('member_list','add_member')" class="btn btn-success">{{__("message.Add Member")}}</button> --}}
               <button type="submit" id="address_submit_button" class="btn btn-success">{{__("message.Book Now")}}</button>
               <button type="button" class="btn btn-danger" data-dismiss="modal" >{{__("message.Close")}}</button>
               </div>
               </form>
            </div>
             <div class="modal-content" id="add_member" style="display: none;">
               <!-- Modal Header -->
               <div class="modal-header">
                  <h4 class="modal-title">{{__("message.Add New Family Member")}}</h4>
                  <button type="button" class="close" data-dismiss="modal">&times;</button>
               </div>
               <form action="#" method="post" id="member_form" class="registration-form">
               <!-- Modal body -->
               <div class="modal-body">
                     <div class="row clearfix">
                        <div class="col-lg-4 col-md-6 col-sm-12 form-group">
                           <label>{{__("message.Relation")}}<span class="error">*</span></label>
                           <select  name="relation" id="relation1" required="" style="display: none;">
                              <option value="">{{__("message.Select Relation")}}</option>
                              <option value="Self">{{__("message.Self")}}</option>
                              <option value="Spouse">{{__("message.Spouse")}}</option>
                              <option value="Child">{{__("message.Child")}}</option>
                              <option value="Parent">{{__("message.Parent")}}</option>
                              <option value="Grand Parent">{{__("message.Grand Parent")}}</option>
                              <option value="Sibling">{{__("message.Sibling")}}</option>
                              <option value="Friend">{{__("message.Friend")}}</option>
                              <option value="Relative">{{__("message.Relative")}}</option>
                              <option value="Neighbour">{{__("message.Neighbour")}}</option>
                              <option value="Colleague">{{__("message.Colleague")}}</option>
                              <option value="Others">{{__("message.Others")}}</option>
                           </select>
                           <span id="error_relation" class="error"></span>
                        </div>
                        <div class="col-lg-4 col-md-6 col-sm-12 form-group">
                           <label>{{__("message.Name")}}<span class="error">*</span></label>
                           <input type="text" name="name" id="member_name" placeholder="{{__('message.Enter Name')}}" required="">
                           <span id="error_name" class="error"></span>
                        </div>
                        <div class="col-lg-4 col-md-12 col-sm-12 form-group">
                           <label>{{__("message.email")}}<span class="error">*</span></label>
                           <input type="email" name="email" id="member_email" placeholder="{{__('message.Enter Email')}}" required="">
                           <span id="error_email" class="error"></span>
                        </div>
                        <div class="col-lg-4 col-md-6 col-sm-12 form-group">
                           <label>{{__("message.Phone")}}<span class="error">*</span></label>
                           <input type="text" name="phone" id="member_phone" placeholder="{{__('message.Enter Phone')}}" required="">
                           <span id="error_phone" class="error"></span>
                        </div>
                        <div class="col-lg-4 col-md-6 col-sm-12 form-group">
                           <label>{{__("message.Age")}}<span class="error">*</span></label>
                           <input type="number" name="age" id="member_age" placeholder="{{__('message.Enter Age')}}" required="">
                           <span id="error_age" class="error"></span>
                        </div>
                        <div class="col-lg-4 col-md-6 col-sm-12 form-group">
                           <label>{{__("message.DOB")}}<span class="error">*</span></label>
                           <input type="date" name="dob" id="member_dob"  required="">
                           <span id="error_dob" class="error"></span>
                        </div>
                        <div class="col-lg-4 col-md-6 col-sm-12 form-group">
                           <label>{{__("message.Gender")}}<span class="error">*</span></label>
                           <div class="custom-check-box">
                              <div class="custom-controls-stacked">
                                 <label class="custom-control material-checkbox">
                                 <input type="radio" name="gender" id="gender_1" value="Male" class="material-control-input">
                                 <span class="material-control-indicator"></span>
                                 <span class="description">{{__("message.Male")}}</span>
                                 </label>
                              </div>
                           </div>
                           <div class="custom-check-box">
                              <div class="custom-controls-stacked">
                                 <label class="custom-control material-checkbox">
                                 <input type="radio" name="gender" id="gender_2" value="Female" class="material-control-input">
                                 <span class="material-control-indicator"></span>
                                 <span class="description">{{__("message.Female")}}</span>
                                 </label>
                              </div>
                           </div>
                           <span id="error_gender" class="error"></span>
                        </div>
                     </div>
               </div>
               <!-- Modal footer -->
               <div class="modal-footer">
               <button type="button" class="btn btn-success" onclick="addmemberdata()">{{__("message.Add Member")}}</button>
               <button type="button" class="btn btn-success" onclick="closecontent('add_member','member_list')">{{__("message.Back to list")}}</button>
               <button type="button" class="btn btn-danger" data-dismiss="modal" >{{__("message.Close")}}</button>
               </div>
               </form>
            </div>
         </div>
      </div>
      <input type="hidden" id="url_path" value="{{url('/')}}">
      
      <input type="hidden" name="password_match_error" id="password_match_error" value="{{__('message.Password and Confirm Password Must Be Same')}}">

      <input type="hidden" name="package_add_cart" id="package_add_cart" value="{{__('message.Package Add Into Cart Successfully')}}">
      
      <input type="hidden" name="email_enter_error" id="email_enter_error" value="{{__('message.Please Enter Your Email')}}">

      <input type="hidden" name="thanks_msg" id="thanks_msg" value="{{__('message.Thank you for getting in touch!')}}">

      <input type="hidden" name="email_invalid_err" id="email_invalid_err" value="{{__('message.Email Id Is Invaild')}}">

      <input type="hidden" name="delete_member_err" id="delete_member_err" value="{{__('message.Are You Sure Want To Delete This Member')}}?">

      <input type="hidden" name="delete_address_err" id="delete_address_err" value="{{__('message.Are You Sure Want To Delete This Address')}}?">

      <input type="hidden" name="currect_pass_err" id="currect_pass_err" value="{{__('message.Please Enter Correct Currect Password')}}">

      <input type="hidden" name="new_con_pass_err" id="new_con_pass_err" value="{{__('message.New Password And Re-enter Password Must Be Same')}}">
      
      <script type="text/javascript" src='https://maps.google.com/maps/api/js?key={{Config::get("mapdetail.key")}}&sensor=false&libraries=places'></script>
        <script src="https://code.jquery.com/jquery-3.6.0.js"></script>

      <script src="{{asset('public/front/Docpro/assets/js/jquery.js')}}"></script>
      <script src="{{asset('public/front/Docpro/assets/js/popper.min.js')}}"></script>
      <script src="{{asset('public/front/Docpro/assets/js/bootstrap.min.js')}}"></script>
      <script src="{{asset('public/front/Docpro/assets/js/owl.js')}}"></script>
      <script src="{{asset('public/front/Docpro/assets/js/wow.js')}}"></script>
      <script src="{{asset('public/front/Docpro/assets/js/validation.js')}}"></script>
      <script src="{{asset('public/front/Docpro/assets/js/jquery.fancybox.js')}}"></script>
      <script src="{{asset('public/front/Docpro/assets/js/appear.js')}}"></script>
      <script src="{{asset('public/front/Docpro/assets/js/scrollbar.js')}}"></script>
      <script src="{{asset('public/front/Docpro/assets/js/tilt.jquery.js')}}"></script>
      <script src="{{asset('public/front/Docpro/assets/js/jquery.paroller.min.js')}}"></script>
      <script src="{{asset('public/front/Docpro/assets/js/jquery.nice-select.min.js')}}"></script>
      @if($setting->is_rtl==1)
      <script src="{{asset('public/front/Docpro/assets/js/script_rtl.js')}}"></script>
      @else
      <script src="{{asset('public/front/Docpro/assets/js/script.js')}}"></script>
      @endif
      <script src="{{asset('public/locationpicker.js')}}"></script>
      <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.0/sweetalert.min.js"></script>
      <script src="https://code.jquery.com/ui/1.13.0/jquery-ui.js"></script>
      <script type="text/javascript" src="//cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js"></script>
      
      <script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.all.min.js"></script>
      <script src="{{asset('public/front.js')}}"></script>
      
      <script>
          function showmember(id,mrp,price,parameter,type){
        // alert(parameter);
         $("#book_type_id").val(id);
         $("#book_mrp").val(mrp);
         $("#book_price").val(price);
         $("#book_parameter").val(parameter);
         $("#book_type").val(type);
    }
      $(document).on('click', '#link', function(e) {
          swal({
            title: "Please login with your account", 
            text: "", 
            type: "warning",
            confirmButtonText: "Login",
            showCancelButton: true
          })
            .then((result) => {
               if (result.value) {
                   window.location = $("#url_path").val()+'/login';
               } else if (result.dismiss === 'cancel') {
                   swal(
                     'Cancelled',
                     'Your stay here :)',
                     'error'
                   )
               }
            })
      });

      function closecontent(close,open){
         $("#"+close).css("display","none");
         $("#"+open).css("display","block");
      }
      
        function addmemberdata(){
            var relation = $("#relation").val();
            var name = $("#member_name").val();
            var email = $("#member_email").val();
            var phone = $("#member_phone").val();
            var age = $("#member_age").val();
            var dob = $("#member_dob").val();
            var gender = $('input[name=gender]:checked').val();
            var msg = "";
             if(relation==""){
                 $("#error_relation").html("Please Select Relation");
               msg=1;
             }
             if(name==""){
                 $("#error_name").html("Please Add Member Name");
               msg=1;
             }
             if(email==""){
                 $("#error_email").html("Please Enter Your Email");
               msg=1;
             }else{
               if (!validateEmail(email)) {
                  $("#error_email").html("Please Enter Vaild Email");
                  msg=1;
                 }
             }
             if(phone==""){
               $("#error_phone").html("Please Enter Phone no");
               msg=1;
            }
            if(age==""){
               $("#error_age").html("Please Enter Member Age");
               msg=1;
            }
            if($("#dob").val()==""){
               $("#error_dob").html("Please Enter DOB");
               msg=1;
             }
             if(gender==""){
               $("#error_gender").html("Please Select Gender");
               msg=1;
               }
   
               if(msg==""){
                  $.ajaxSetup({
                     headers: {
                              'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                           }
                  });
                  $.ajax({
                           url: $("#url_path").val()+'/save_member_detail',
                           method: 'post',
                           data: $('#member_form').serialize(),
                           success: function(response){
                                             $("#relation").val("");
                                             $("#member_name").val("");
                                             $("#member_email").val("");
                                             $("#member_phone").val("");
                                             $("#member_age").val("");
                                             $("#member_dob").val("");
                                               $("#error_relation").html("");
                                               $("#error_name").html("");
                                               $("#error_email").html("");
                                               $("#error_phone").html("");
                                               $("#error_age").html("");
                                               $("#error_dob").html("");
                                               $("#error_gender").html("");
                                               $("#gender").attr("checked",true);
                                               $("#gender").attr("checked",false);
                                               var txt = ' <input type="checkbox" id="member_'+response+'" name="member[]" value="'+response+'"><label for="member_'+response+'">'+name+'</br> <p>'+relation+'</p><p>'+gender+' | '+age+'</p></label>';
                                               $("#member_list_div").append(txt);
                                               $("#add_member").css("display","none");
                                               $("#member_list").css("display","block");

                                }
                    });
                }
      }

        var showBtns = document.querySelectorAll('.show-btn');
    
        showBtns.forEach(function(btn) {
        
            btn.addEventListener('click', function() {
                
                this.nextElementSibling.classList.toggle('active');
            });
        });
    

      </script>
      @yield('footer')

   </body>
</html>