-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0f771f
commit 234ef59
Showing
3 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,23 @@ | ||
<div class="col-md-5"> | ||
<input type="text" name="" class="form-control rounded text-center position-relative" placeholder="Search Products"> | ||
<ul class="list-group position-absolute mt-2 ml-1 col-md-11"> | ||
<li class="list-group-item bg-primary border-bottom"> | ||
<a href="" class="d-flex justify-content-between text-decoration-none"> | ||
<span class="text-light mt-4 text-capitalize"> | ||
<h6 class="font-weight-bold" style="letter-spacing: 2px">Cakes</h6> | ||
</span> | ||
<img src="{{ asset('frontend/img/blog-thumbs/1.jpg') }}" style="width: 50px; height: 50px; border-radius: 100%;"> | ||
</a> | ||
</li> | ||
<li class="list-group-item bg-primary border-bottom"> | ||
<a href="" class="d-flex justify-content-between text-decoration-none"> | ||
<span class="text-light mt-4 text-capitalize"> | ||
<h6 class="font-weight-bold" style="letter-spacing: 2px">Cakes</h6> | ||
</span> | ||
<img src="{{ asset('frontend/img/blog-thumbs/1.jpg') }}" style="width: 50px; height: 50px; border-radius: 100%;"> | ||
</a> | ||
</li> | ||
<li class="list-group-item bg-primary border-bottom"> | ||
<a href="" class="d-flex justify-content-between text-decoration-none"> | ||
<span class="text-light mt-4 text-capitalize"> | ||
<h6 class="font-weight-bold" style="letter-spacing: 2px">Cakes</h6> | ||
</span> | ||
<img src="{{ asset('frontend/img/blog-thumbs/1.jpg') }}" style="width: 50px; height: 50px; border-radius: 100%;"> | ||
</a> | ||
</li> | ||
<li class="list-group-item bg-primary border-bottom"> | ||
<a href="" class="d-flex justify-content-between text-decoration-none"> | ||
<span class="text-light mt-4 text-capitalize"> | ||
<h6 class="font-weight-bold" style="letter-spacing: 2px">Cakes</h6> | ||
</span> | ||
<img src="{{ asset('frontend/img/blog-thumbs/1.jpg') }}" style="width: 50px; height: 50px; border-radius: 100%;"> | ||
</a> | ||
</li> | ||
</ul> | ||
<input wire:model="search" type="text" name="" class="form-control rounded text-center position-relative" placeholder="Search Products"> | ||
@if(strlen($search) > 2) | ||
@if($searchResults->count() > 0) | ||
<ul class="list-group position-absolute mt-2 ml-1 col-md-11"> | ||
@foreach($searchResults as $result) | ||
<li class="list-group-item bg-primary border-bottom"> | ||
<a href="{{ route('products.edit', $result->slug) }}" class="d-flex justify-content-between text-decoration-none"> | ||
<span class="text-light mt-4 text-capitalize"> | ||
<h6 class="font-weight-bold" style="letter-spacing: 2px">{{ $result->name }}</h6> | ||
</span> | ||
<img src="/storage/{{ $result->photos->first()->images }}" style="width: 50px; height: 50px; border-radius: 100%;"> | ||
</a> | ||
</li> | ||
@endforeach | ||
</ul> | ||
@else | ||
<div class="position-aboslute"> | ||
<span><strong>No results for {{ $search }}</strong></span> | ||
</div> | ||
@endif | ||
@endif | ||
</div> |