diff --git a/resources/views/filament/pages/plugins.blade.php b/resources/views/filament/pages/plugins.blade.php index 4ad3be5..45e89ee 100644 --- a/resources/views/filament/pages/plugins.blade.php +++ b/resources/views/filament/pages/plugins.blade.php @@ -1,32 +1,41 @@ -
+
@forelse($this->plugins as $plugin) - -
-
- - @if($plugin['enabled']) - 已启用 - @else - 已停用 - @endif + +
+ {{-- 头部:图标 + 标题 + 元信息 + 状态 --}} +
+
+ +
+
+

{{ $plugin['title'] }}

+

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

+
+
+ @if($plugin['enabled']) + 已启用 + @else + 已停用 + @endif +
-

{{ $plugin['title'] }}

-

{{ $plugin['description'] }}

-

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

+ {{-- 描述 --}} +

{{ $plugin['description'] }}

@if(! empty($plugin['usage'])) -
- 使用说明 -
{{ $plugin['usage'] }}
+
+ 使用说明 +
{{ $plugin['usage'] }}
@endif + {{-- 依赖状态 --}} @if(! empty($plugin['dependencies'])) -
- 依赖: +
+ 依赖: @foreach($plugin['dependencies'] as $dep) {{ $dep['title'] }}@if(! $dep['ok'])({{ $dep['reason'] }})@endif @@ -35,7 +44,8 @@
@endif -
+ {{-- 操作区 --}} +
@if($plugin['enabled']) 停用 @elseif(empty($plugin['dependency_errors'])) @@ -50,7 +60,7 @@
@empty -

暂无插件

+

暂无插件

@endforelse
@@ -71,23 +81,31 @@
刷新市场
-
+
@forelse($marketItems as $index => $item) @php $marketPaid = $item['price'] > 0; @endphp - -
-
- - @if($marketPaid) - ¥{{ number_format($item['price'] / 100, 2) }} - @else - 免费 - @endif + +
+
+
+ +
+
+

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

+

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

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

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

-

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

-

{{ $item['version'] ?? '' }} · {{ $item['author'] ?? '' }}

-
+ +

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

+ +
@if($marketPaid && ! $this->isMarketPurchased($index)) 购买 @elseif($marketPaid) @@ -98,7 +116,7 @@
@empty -

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

+

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

@endforelse