Commit 4a0f9ec5 by Arpit Jain

working on locater

parent 2151058b
APP_NAME=Laravel APP_NAME=Laravel
APP_ENV=local APP_ENV=local
APP_KEY= APP_KEY=base64:2kDJX8vA8rSrjKqeAcSXbhvA8/sbc79XUOFLWV/naSI=
APP_DEBUG=true APP_DEBUG=true
APP_URL=http://localhost APP_URL=http://localhost
LOG_CHANNEL=stack LOG_CHANNEL=stack
DB_CONNECTION=mysql DB_CONNECTIN=mysql
DB_HOST=127.0.0.1 DB_HOST=mysql
DB_PORT=3306 DB_PORT=3306
DB_DATABASE=homestead DB_DATABASE=locator
DB_USERNAME=homestead DB_USERNAME=root
DB_PASSWORD=secret DB_PASSWORD=envigo@123
BROADCAST_DRIVER=log BROADCAST_DRIVER=log
CACHE_DRIVER=file CACHE_DRIVER=file
...@@ -42,3 +42,9 @@ PUSHER_APP_CLUSTER=mt1 ...@@ -42,3 +42,9 @@ PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
API_KEY = eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjdlNDUxMWRiZjg2NDgwMDk5MmE3ZjE4MDk2ZDUwOTY1ZjJmMDNmMGVjOGYzYzhjMTQwNGRkOTZmZGUxY2RmNjllZWY3OGE4ZmU3MTIzYTU0In0.eyJhdWQiOiIxIiwianRpIjoiN2U0NTExZGJmODY0ODAwOTkyYTdmMTgwOTZkNTA5NjVmMmYwM2YwZWM4ZjNjOGMxNDA0ZGQ5NmZkZTFjZGY2OWVlZjc4YThmZTcxMjNhNTQiLCJpYXQiOjE1NjIxNDYyOTUsIm5iZiI6MTU2MjE0NjI5NSwiZXhwIjoxNTYzNDQyMjk1LCJzdWIiOiIiLCJzY29wZXMiOlsicmVhZC1sb2NhdGlvbiJdfQ.RcGybPTQUPHMAA5y7nclG01hgaa7e8imF6x0q0SR9PqIMFQ9yVjXJCu4Hx4i3-AwVv27FE6RQ84-EpzPO1XmCHpuqLg6F4OWyn8Xv6pceLSxAzSKvrsYeS2W1uqCxFxeBaQmx4Uq5xdf0wQ9Ao-3914XrFTnWMYh1Rd94o4mPmlyeBB8H2e1nIM4Vtuh98-oDMxclhh_1A1XXUOe7L4TILqBMjyQlaRIDBTnVdA_fNYK7ZPWDy6j-t_yQpf4NOXWXGbldpZ0KAu2Fb1llsnizE0Ryd310z1zUZPtgbqdkC7mCBpXQf9wmE3GUihLj84Vyh7Q-dnKZw0HlZDdRWasFxTpss0wcEDDcLM1u7Sgl2wT83Sq7h61hfShhM18fqHwQL5TKKDyQ3pv6z4-AVhcwV5IOPMJPyZLfrydezTEn6cNf8q-gAvTMFqayQEoKLtMlXWQ1Oy81UQIo9_3LTGaKrS2qz8lNNY132qFaXb6NwRsv73MWb1DkZdEBj9CoV5UncYeCVDHephaAQxKZva5HGoi1-Gvd2ltY_S64zuOZORpcyCMHwyTHKOc8w7dGrJpT1uXHDtF73KB5XXNFRu66HWS0V1WniBtxYzB8cG_eDlU_Ak9QnywlXTcIkq10pbnad7hnsRdmSDL3ksA7yVLMAZ9MAyR-T7giAw_BTslM5I
API_LIST = https://anitadongre.concr.in/api/v1/locations/list?keyword=
API_LOCATION = https://anitadongre.concr.in/api/v1/locations/
API_SEARCH = https://anitadongre.concr.in/api/v1/locations/search?keyword=
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
<section class="container address-box"> <section class="container address-box">
<section class="address-box_inner"> <section class="address-box_inner">
<h2 class="title">{{ $locationDeatilAPIdata->data->name }}</h2> <h2 class="title">{{ $locationDetailAPIdata->data->name }}</h2>
<span class="ratings"> <span class="ratings">
<i class="mdi mdi-star"></i> <i class="mdi mdi-star"></i>
<i class="mdi mdi-star"></i> <i class="mdi mdi-star"></i>
<i class="mdi mdi-star"></i> <i class="mdi mdi-star"></i>
<i class="mdi mdi-star"></i> <i class="mdi mdi-star"></i>
<i class="mdi mdi-star-outline"></i> <i class="mdi mdi-star-outline"></i>
<span class="counts">{{ $locationDeatilAPIdata->data->averageRating }}</span> <span class="counts">{{ $locationDetailAPIdata->data->averageRating }}</span>
</span> </span>
<div class="share dropdown"> <div class="share dropdown">
<span class="share-btn" id="address-box_social" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="mdi mdi-share-variant icon-grey"></i></span> <span class="share-btn" id="address-box_social" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="mdi mdi-share-variant icon-grey"></i></span>
...@@ -34,24 +34,24 @@ ...@@ -34,24 +34,24 @@
<div class="row"> <div class="row">
<div class="col-md-5"> <div class="col-md-5">
<p> <p>
{{ $locationDeatilAPIdata->data->fullAddress->addressLines[0] }} {{ $locationDetailAPIdata->data->fullAddress->addressLines[0] }}
<br> <br>
{{ $locationDeatilAPIdata->data->fullAddress->addressLines[1] }} {{ $locationDetailAPIdata->data->fullAddress->addressLines[1] }}
@if(!empty($locationDeatilAPIdata->data->fullAddress->addressLines[2])) @if(!empty($locationDetailAPIdata->data->fullAddress->addressLines[2]))
<br> <br>
{{ $locationDeatilAPIdata->data->fullAddress->addressLines[2] }} {{ $locationDetailAPIdata->data->fullAddress->addressLines[2] }}
@endif @endif
</p> </p>
</div> </div>
<div class="col-md-3 "> <div class="col-md-3 ">
<p class="d-flex align-items-center"><i class="mdi mdi-phone icon-grey mr-3"></i> <p class="d-flex align-items-center"><i class="mdi mdi-phone icon-grey mr-3"></i>
{{ $locationDeatilAPIdata->data->phone }}</p> {{ $locationDetailAPIdata->data->phone }}</p>
</div> </div>
<div class="col-md-4 "> <div class="col-md-4 ">
<p class="dropdown d-flex align-items-center" id="address-box_openinghours" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="mdi mdi-clock icon-grey mr-3"></i>Open Now<i class="mdi mdi-chevron-down icon-grey ml-2"></i></p> <p class="dropdown d-flex align-items-center" id="address-box_openinghours" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="mdi mdi-clock icon-grey mr-3"></i>Open Now<i class="mdi mdi-chevron-down icon-grey ml-2"></i></p>
<div class="openinghours dropdown-menu" aria-labelledby="address-box_openinghours"> <div class="openinghours dropdown-menu" aria-labelledby="address-box_openinghours">
<ul> <ul>
@foreach($locationDeatilAPIdata->data->regularHours as $regularHours) @foreach($locationDetailAPIdata->data->regularHours as $regularHours)
<li> <li>
<span>{{ $regularHours->openDay }}</span> <span>{{ $regularHours->openDay }}</span>
{{ $regularHours->openTime }} am - {{ $regularHours->closeTime }} pm {{ $regularHours->openTime }} am - {{ $regularHours->closeTime }} pm
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<input type="text" class="form-control" placeholder="Location"> <input type="text" class="form-control" placeholder="Location">
</div> </div>
<div class="action"> <div class="action">
<input type="submit" value="Submit" class="btn btn-primary"> <input type="button" id="searchbutton" value="Submit" class="btn btn-primary">
</div> </div>
</div> </div>
</form> </form>
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</div> </div>
<!--location listing start--> <!--location listing start-->
<div class="row no-gutters"> <div class="row no-gutters">
<div class=" mt-4 location_data-listing"> <div class=" mt-4 location_data-listing" id="searchlocaterid">
<?php <?php
foreach($locatorApiData->data as $key=>$data){ foreach($locatorApiData->data as $key=>$data){
$link = ''; $link = '';
...@@ -316,6 +316,7 @@ ...@@ -316,6 +316,7 @@
</section> </section>
<script type="text/javascript"> <script type="text/javascript">
/*var path = "{{ route('autocomplete') }}"; /*var path = "{{ route('autocomplete') }}";
$('input.locality').typeahead({ $('input.locality').typeahead({
source: function (query, process) { source: function (query, process) {
...@@ -350,6 +351,20 @@ ...@@ -350,6 +351,20 @@
$('.locality').focusout(function(){ $('.locality').focusout(function(){
$('#localitylist').fadeOut('slow'); $('#localitylist').fadeOut('slow');
}); });
$(function () {
$('#searchbutton').on('click', function (e) {
e.preventDefault();
$.ajax({
type: 'post',
url: "{{route('searchlocator')}}",
data: $('form').serialize(),
success: function (datanew) {
$( "#searchlocaterid" ).html( datanew );
}
});
});
});
</script> </script>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
});*/ });*/
Route::any('/', 'SearchController@index')->name('search'); Route::any('/', 'SearchController@index')->name('search');
Route::any('/searchlocator', 'SearchController@searchlocator')->name('searchlocator');
Route::get('autocomplete', 'SearchController@autocomplete')->name('autocomplete'); Route::get('autocomplete', 'SearchController@autocomplete')->name('autocomplete');
Route::any('/detail/{slug}', 'SearchController@detail')->name('detail'); Route::any('/detail/{slug}', 'SearchController@detail')->name('detail');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment