@extends('panel::layouts.app') @section('body-class', 'page-plugins-market') @section('title', __('panel/common.market_plugin')) @section('content') @include('plugin::shared._token_info') @if(session('error') || isset($error)) @endif
@if(request()->get('search')) @endif
@foreach(request()->except(['search', 'page']) as $key => $value) @endforeach
@if($categories['data'] ?? []) @php $categoryList = $categories['data'] ?? []; $maxVisible = 8; // 默认显示前8个分类 $hasMore = count($categoryList) > $maxVisible; @endphp
{{ __('panel/common.category') }}:
{{ __('panel/common.all') }} @foreach($categoryList as $index => $category) {{ $category['translation']['name'] ?? $category['name'] ?? '' }} @endforeach @if($hasMore) @endif
@endif
@if(isset($products['meta']))

{{ __('panel/common.total_records', ['total' => $products['meta']['total'] ?? 0, 'current' => $products['meta']['current_page'] ?? 1, 'last' => $products['meta']['last_page'] ?? 1]) }}

@endif
@if(empty($products['data']))

{{ __('panel/common.no_data') }}

@else
@foreach ($products['data'] ?? [] as $product)
@include('plugin::plugin_market._item')
@endforeach
@if(isset($products['meta']) && $products['meta']['last_page'] > 1) @endif @endif
@endsection @push('footer') @endpush