mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
fix searching closet
This commit is contained in:
parent
ad159c7f20
commit
10a9397fd0
@ -60,7 +60,7 @@ class ClosetController extends Controller
|
||||
->with('page', $page)
|
||||
->with('q', $q)
|
||||
->with('category', $category)
|
||||
->with('total_pages', max($total_pages))
|
||||
->with('total_pages', $total_pages ? max($total_pages) : 0)
|
||||
->with('user', app('user.current'));
|
||||
}
|
||||
|
||||
|
@ -40,11 +40,11 @@
|
||||
</ul>
|
||||
<div class="tab-content no-padding">
|
||||
<div class="tab-pane active box-body" id="skin-category">
|
||||
@include('vendor.closet-items', ['items' => $items['skin']])
|
||||
@include('vendor.closet-items', ['items' => (array)array_get($items, 'skin')])
|
||||
</div>
|
||||
|
||||
<div class="tab-pane box-body" id="cape-category">
|
||||
@include('vendor.closet-items', ['items' => $items['cape']])
|
||||
@include('vendor.closet-items', ['items' => (array)array_get($items, 'cape')])
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
|
Loading…
Reference in New Issue
Block a user