Skip to content

Commit

Permalink
feat: 投稿審核顯示 UA
Browse files Browse the repository at this point in the history
  • Loading branch information
Kantai235 committed Jul 5, 2024
1 parent 6c54e09 commit 1f54bef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Livewire/Frontend/SocialCardsReviewTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function columns(): array
Column::make(__('Picture')),
Column::make(__('Content'), 'content')
->sortable(),
Column::make(__('Request')),
Column::make(__('Vote')),
Column::make(__('Created At'), 'created_at')
->sortable(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
</a>
</x-livewire-tables::bs5.table.cell>

<x-livewire-tables::bs5.table.cell style="width: 480px; min-width: 480px;">
{{-- IP Address、User Agent --}}
<a href="{{ route('frontend.social.cards.show', ['id' => $row->id]) }}">
<p class="mb-2">IP Address: {{ $row->ip_address ?? 'None' }}</p>
<p class="mb-0">User-Agent: {{ $row->user_agent ?? 'None' }}</p>
</a>
</x-livewire-tables::bs5.table.cell>

<x-livewire-tables::bs5.table.cell style="width: 160px; min-width: 160px;">
{{-- 投票 Vue 元件 --}}
@if ($logged_in_user->isAdmin())
Expand Down

0 comments on commit 1f54bef

Please sign in to comment.