@forelse($this->plugins as $plugin)
{{-- 头部:图标 + 标题 + 元信息 + 状态 --}}

{{ $plugin['title'] }}

{{ $plugin['vendor'] }}.{{ $plugin['name'] }} · v{{ $plugin['version'] }}

@if($plugin['enabled']) 已启用 @else 已停用 @endif
{{-- 描述 --}}

{{ $plugin['description'] }}

@if(! empty($plugin['usage']))
使用说明
{{ $plugin['usage'] }}
@endif {{-- 依赖状态 --}} @if(! empty($plugin['dependencies']))
依赖: @foreach($plugin['dependencies'] as $dep) {{ $dep['title'] }}@if(! $dep['ok'])({{ $dep['reason'] }})@endif @endforeach
@endif {{-- 操作区 --}}
@if($plugin['enabled']) 停用 @elseif(empty($plugin['dependency_errors'])) 启用 @else 依赖未满足,无法启用 @endif @if(! in_array($plugin['key'], config('plugins.enabled', []), true)) 卸载 @endif
@empty

暂无插件

@endforelse
@error('zip')

{{ $message }}

@enderror
安装
刷新市场
@forelse($marketItems as $index => $item) @php $marketPaid = $item['price'] > 0; @endphp

{{ $item['title'] ?? $item['name'] }}

{{ $item['version'] ?? '' }}@if(! empty($item['author'])) · {{ $item['author'] }}@endif

@if($marketPaid) ¥{{ number_format($item['price'] / 100, 2) }} @else 免费 @endif

{{ $item['description'] ?? '' }}

@if($marketPaid && ! $this->isMarketPurchased($index)) 购买 @elseif($marketPaid) 已购买 @endif 安装
@empty

点击「刷新市场」拉取可用插件

@endforelse