
<body class="theme-primary">

	
	  <!-- Modal -->
	  <div class="modal fade" id="myModal" role="dialog">
		<div class="modal-dialog">
		
		  <!-- Modal content-->
		  <div class="modal-content">
			<div class="modal-header">
			  {{-- <button type="button" class="close" data-dismiss="modal">&times;</button> --}}
			  <h4 class="modal-title">Choose Location</h4>
			</div>
			<div class="modal-body ">
				
				<!-- cgee -->
				<div class="col-md-12 col-12 text-center" >

					<ul class="list-inline d-inline-block">
  
										
  <li class="ms-10 pe-10"><a href="#">  Select Location</a></li>
					  @if (!empty($locations))
					   <li class="me-10 ps-10 lng-drop">
  
							<select class="header-lang-bx selectpicker dd-order-location">
							  
								  
							  
							  @foreach ($locations as $location)
							  <option value="{{ $location['province_id'] }}" data-icon="flag-icon flag-icon-us">{{ $location['province_name'] }}</option>
  
							  {{-- <option data-icon="flag-icon flag-icon-gb">Brampton</option> --}}
							  @endforeach
							  
  
						  </select>
  
					   </li>
					   @endif 	
					   
  
					</ul>
  
				</div>
				<!-- end changes -->

			</div>
			<div class="modal-footer">
			  <button type="button" class="btn btn-sm btn-primary btn-close-location-modal" data-dismiss="modal">Save</button>
			</div>
		  </div>
		  
		</div>
	  </div>
	  <!-- end modal -->
	 

	<header class="top-bar left-menu">

		<div class="topbar bg-black {{ (request()->is('orders')) ? 'show' : 'hide' }}">

		  <a  href="{{ route('logout') }}" class="btn btn-info pull-right">logout</a>	

		  <div class="container">

			<div class="row justify-content-end">

			  

			  <div class="col-md-12 col-12 text-center" >

				  <ul class="list-inline d-inline-block">

									  
<li class="ms-10 pe-10"><a href="#">  Change Location</a></li>
					@if (!empty($locations))
					 <li class="me-10 ps-10 lng-drop">

					  	<select class="header-lang-bx selectpicker dd-order-location dd-form-location-id">
							
								
							
							@foreach ($locations as $location)
							<option {{ (session('location_id')==$location['province_id'])?'selected':'' }}  value="{{ $location['province_id'] }}" data-icon="flag-icon flag-icon-us">{{ $location['province_name'] }}</option>

							{{-- <option data-icon="flag-icon flag-icon-gb">Brampton</option> --}}
							@endforeach
							

						</select>

					 </li>
					 @endif 	
					 

				  </ul>

			  </div>

			   

			 </div>

		  </div>

		</div>



		<nav hidden class="nav-white nav-transparent">

			<div class="nav-header">

				<a href="index.html" class="brand d-lg-none d-block">

					<img src="{{ asset('frontend/images/logo.png') }}" alt=""/>

				</a>

				

				<div class="logo text-center">

				  	<center><a href="index.html" class="brand d-lg-block d-none">

						<img src="{{ asset('frontend/images/logo.png') }}" alt=""/>

					</a></center>

				  </div>

				 

			</div>								

			 

			<ul class="attributes">

				<li class="d-md-block d-none">

				<div class="logo text-center">

				  	<a href="index.html" class="brand d-lg-block d-none">

						<img src="{{ asset('frontend/images/logo-light-text2.png') }}" alt=""/>

					</a>

				  </div></li>

				 

				 

			</ul>



			 

		</nav>

	</header>