sarga theme

This commit is contained in:
merdan 2023-02-24 15:20:59 +05:00
parent 93c24c4c94
commit bd6957c916
1 changed files with 22 additions and 8 deletions

View File

@ -2,6 +2,28 @@
<div class="footer-content">
<div class="footer-list-container">
<?php
$categories = [];
foreach (app('Webkul\Category\Repositories\CategoryRepository')->getVisibleCategoryTree(core()->getCurrentChannel()->root_category_id) as $category){
if ($category->slug)
array_push($categories, $category);
}
?>
@if (count($categories))
<div class="list-container">
<span class="list-heading">Categories</span>
<ul class="list-group">
@foreach ($categories as $key => $category)
<li>
<a href="{{ route('shop.productOrCategory.index', $category->slug) }}">{{ $category->name }}</a>
</li>
@endforeach
</ul>
</div>
@endif
{!! DbView::make(core()->getCurrentChannel())->field('footer_content')->render() !!}
@ -19,14 +41,6 @@
</div>
@endif
<?php
$term = request()->input('term');
if (! is_null($term)) {
$serachQuery = 'term='.request()->input('term');
}
?>
<label class="list-heading" for="locale-switcher">{{ __('shop::app.footer.locale') }}</label>
<div class="form-container">
<div class="control-group">