mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-25 12:37:23 +08:00
admin add claim
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<x-filament::page :widget-data="['record' => $record]" class="filament-resources-view-record-page">
|
||||
<div class="">
|
||||
<table class="table table-fixed text-left border-spacing-y-2 border-collapse divide-y w-full">
|
||||
<tbody>
|
||||
@foreach($cardData as $value)
|
||||
<tr class="">
|
||||
<th class="border-spacing-3">{{ $value['label'] }}</th>
|
||||
<td class="border-spacing-3">{!! $value['value'] !!}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@if (count($relationManagers = $this->getRelationManagers()))
|
||||
<x-filament::hr />
|
||||
|
||||
<x-filament::resources.relation-managers :active-manager="$activeRelationManager" :managers="$relationManagers" :owner-record="$record" />
|
||||
@endif
|
||||
</x-filament::page>
|
||||
@@ -0,0 +1,40 @@
|
||||
<x-filament::page :widget-data="['record' => $record]" class="filament-resources-view-record-page">
|
||||
<div class="flex flex-col md:flex-row justify-between">
|
||||
<table class="table text-left border-spacing-y-2 border-collapse divide-y w-full">
|
||||
<tbody>
|
||||
@foreach($cardData as $value)
|
||||
<tr class="">
|
||||
<th class="border-spacing-3">{{ $value['label'] }}</th>
|
||||
<td class="border-spacing-3">{!! $value['value'] !!}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table text-left border-spacing-y-2 border-collapse divide-y w-full">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('label.exam.index_required_label') }}</th>
|
||||
<th>{{ __('label.exam.index_required_value') }}</th>
|
||||
<th>{{ __('label.exam.index_current_value') }}</th>
|
||||
<th>{{ __('label.exam.index_result') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($record->progressFormatted as $index)
|
||||
<tr>
|
||||
<td>{{ $index['index_formatted'] }}</td>
|
||||
<td>{{ $index['require_value_formatted'] }}</td>
|
||||
<td>{{ $index['current_value_formatted'] }}</td>
|
||||
<td>{{ $index['passed'] ? __('admin.resources.exam_user.result_passed') : __('admin.resources.exam_user.result_not_passed') }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@if (count($relationManagers = $this->getRelationManagers()))
|
||||
<x-filament::hr />
|
||||
|
||||
<x-filament::resources.relation-managers :active-manager="$activeRelationManager" :managers="$relationManagers" :owner-record="$record" />
|
||||
@endif
|
||||
</x-filament::page>
|
||||
+84
-90
@@ -1,95 +1,89 @@
|
||||
<x-filament::page>
|
||||
<div class="flex">
|
||||
<div class="w-full">
|
||||
<table class="table w-full text-left border-spacing-y-2 border-collapse divide-y">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>UID</th>
|
||||
<td>{{$record->id}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<td>{{$record->username}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Email</th>
|
||||
<td>{{$record->email}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Status</th>
|
||||
<td>{{$record->status}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Enabled</th>
|
||||
<td>{{$record->enabled}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Added</th>
|
||||
<td>{{$record->added}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Last access</th>
|
||||
<td>{{$record->last_access}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Class</th>
|
||||
<td>{{$record->classText}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Invite by</th>
|
||||
<td>{{$record->inviter->username ?? ''}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tow-step authentication</th>
|
||||
<td>{{$record->two_step_secret ? 'Enabled' : 'Disabled'}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Seed points</th>
|
||||
<td>{{$record->seed_points}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Attendance card</th>
|
||||
<td>{{$record->attendance_card}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Invites</th>
|
||||
<td>{{$record->invites}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Uploaded</th>
|
||||
<td>{{$record->uploadedText}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Downloaded</th>
|
||||
<td>{{$record->downloadedText}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Bonus</th>
|
||||
<td>{{$record->seedbonus}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="w-full">
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table w-full text-left border-spacing-y-2 border-collapse divide-y w-full">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>UID</th>
|
||||
<td>{{$record->id}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{__('label.user.username')}}</th>
|
||||
<td>{{$record->username}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{__('label.email')}}</th>
|
||||
<td>{{$record->email}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{__('label.status')}}</th>
|
||||
<td>{{$record->status}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{__('label.enabled')}}</th>
|
||||
<td>{{$record->enabled}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{__('label.added')}}</th>
|
||||
<td>{{$record->added}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{__('label.last_access')}}</th>
|
||||
<td>{{$record->last_access}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{__('label.user.class')}}</th>
|
||||
<td>{{$record->classText}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{__('label.user.invite_by')}}</th>
|
||||
<td>{{$record->inviter->username ?? ''}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{__('label.user.two_step_authentication')}}</th>
|
||||
<td>{{$record->two_step_secret ? 'Enabled' : 'Disabled'}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{__('label.user.seed_points')}}</th>
|
||||
<td>{{$record->seed_points}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('label.user.attendance_card') }}</th>
|
||||
<td>{{$record->attendance_card}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('label.user.invites') }}</th>
|
||||
<td>{{$record->invites}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('label.uploaded') }}</th>
|
||||
<td>{{$record->uploadedText}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('label.downloaded') }}</th>
|
||||
<td>{{$record->downloadedText}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('label.user.seedbonus') }}</th>
|
||||
<td>{{$record->seedbonus}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@if (count($relationManagers = $this->getRelationManagers()))
|
||||
|
||||
Reference in New Issue
Block a user