PATH:
home
/
lab2454c
/
netxzero.com
/
carbon-credit
/
resources
/
views
/
frontend
/
homeSections
<div class="product__filter__sec"> <div class="filter-header"> <h3>filtes</h3> </div> <ul class="filter-menu"> <li class="dropdown"> <button class="btn btn-default filter_btn" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: auto;"> Project type </button> <ul class="dropdown-menu" style="max-height: 390px; overflow-y: auto;"> @foreach($projectTypes as $projectType) <li> <a href="{{ route('home', array_merge(Request::except(['page','type']))) .((isset($search) OR Request::has('sorting')) ? '&' : '?').'type='.$projectType['name'] }}"> {{ $projectType['name'] }} </a> </li> @endforeach </ul> </li> {{-- <li class="dropdown"> <button class="btn btn-default filter_btn" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> Country </button> <ul class="dropdown-menu"> <li><a href="#" > Argentina </a></li> <li><a href="#" > Brazil </a></li> <li><a href="#" > China </a></li> </ul> </li> --}} </ul> @if(Request::has('type')) <a class="btn btn-success btn-sm me-2" style="width: auto;" href="#"> {{Request::get('type')}} </a> @endif @if(Request::except(['page'])) <a class="btn btn-secondary btn-sm" style="width: auto;" href="{{ route('home') }}"> <i class="las la-times"></i> Clear All Filters </a> @endif <div class="sorting"> <h5 class="visible-md-block visible-lg-block">Sort by</h5> <div class="dropdown"> <button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown"> {{-- @if(Request::has('sorting')) --}} @if(Request::get('sorting') == 101) Random @elseif(Request::get('sorting') == 102) Price Ascending @elseif(Request::get('sorting') == 103) Price Descending @else Sort By @endif {{-- @endif --}} </button> <ul class="dropdown-menu"> <li> <a class="dropdown-item" href="{{ route('home', array_merge(Request::except(['page','sorting']))) .((isset($search) OR Request::has('type')) ? '&' : '?').'sorting=101' }}"> Random </a> </li> <li> <a class="dropdown-item" href="{{ route('home', array_merge(Request::except(['page','sorting']))) .((isset($search) OR Request::has('type')) ? '&' : '?').'sorting=102' }}"> Price Ascending </a> </li> <li> <a class="dropdown-item" href="{{ route('home', array_merge(Request::except(['page','sorting']))) .((isset($search) OR Request::has('type')) ? '&' : '?').'sorting=103' }}"> Price Descending </a> </li> </ul> </div> </div> </div>
[+]
..
[-] search.blade.php
[edit]
[-] filters.blade.php
[edit]