[admin] add grant props

This commit is contained in:
xiaomlove
2022-08-11 17:12:36 +08:00
parent 72908e38f4
commit 9332b676b4
18 changed files with 156 additions and 18 deletions
+4
View File
@@ -62,6 +62,10 @@ return [
'confirm_btn' => 'Confirm',
'disable_download_privileges_btn' => 'Enable download',
'enable_download_privileges_btn' => 'Disable download',
'grant_prop_btn' => 'Grant prop',
'grant_prop_form_prop' => 'Select prop',
'grant_prop_form_duration' => 'Duration',
'grant_prop_form_duration_help' => 'Unit: days. If left blank, the user has it permanently. Note: There is no time limit for Name Change Card, ignore this value.' ,
]
],
'exam_user' => [
+1
View File
@@ -27,6 +27,7 @@ return [
'description' => 'Description',
'price' => 'Price',
'deadline' => 'Deadline',
'permanent' => 'Permanent',
'operator' => 'Operator',
'setting' => [
'nav_text' => 'Setting',
+1
View File
@@ -15,6 +15,7 @@ return [
'downloaded' => 'Downloaded',
'invites' => 'Invites',
'attendance_card' => 'Attend card',
'props' => 'Props',
],
'class_name' => [
\App\Models\User::CLASS_VIP => 'Vip',
+4
View File
@@ -62,6 +62,10 @@ return [
'confirm_btn' => '确认',
'disable_download_privileges_btn' => '禁用下载权限',
'enable_download_privileges_btn' => '启用下载权限',
'grant_prop_btn' => '授予道具',
'grant_prop_form_prop' => '选择道具',
'grant_prop_form_duration' => '有效时长',
'grant_prop_form_duration_help' => '单位:天。如果留空,用户永久拥有。注:改名卡没有时间限制,忽略该值。',
]
],
'exam_user' => [
+1
View File
@@ -27,6 +27,7 @@ return [
'description' => '描述',
'price' => '价格',
'deadline' => '截止时间',
'permanent' => '永久有效',
'operator' => '操作者',
'setting' => [
'nav_text' => '设置',
+1
View File
@@ -15,6 +15,7 @@ return [
'downloaded' => '下载量',
'invites' => '邀请',
'attendance_card' => '补签卡',
'props' => '道具',
],
'class_names' => [
\App\Models\User::CLASS_VIP => '贵宾',
+4
View File
@@ -62,6 +62,10 @@ return [
'confirm_btn' => '確認',
'disable_download_privileges_btn' => '禁用下載權限',
'enable_download_privileges_btn' => '啟用下載權限',
'grant_prop_btn' => '授予道具',
'grant_prop_form_prop' => '選擇道具',
'grant_prop_form_duration' => '有效時長',
'grant_prop_form_duration_help' => '單位:天。如果留空,用戶永久擁有。註:改名卡沒有時間限製,忽略該值。',
]
],
'exam_user' => [
+1
View File
@@ -27,6 +27,7 @@ return [
'description' => '描述',
'price' => '價格',
'deadline' => '截止時間',
'permanent' => '永久有效',
'operator' => '操作者',
'setting' => [
'nav_text' => '設置',
+1
View File
@@ -15,6 +15,7 @@ return [
'downloaded' => '下載量',
'invites' => '邀請',
'attendance_card' => '補簽卡',
'props' => '道具',
],
'class_name' => [
\App\Models\User::CLASS_VIP => '貴賓',
@@ -9,7 +9,7 @@
</tr>
<tr>
<th>{{__('label.user.username')}}</th>
<td>{{$record->username}}</td>
<td>{!! get_username($record->id, false, true, true, true) !!}</td>
<td></td>
</tr>
<tr>
@@ -42,6 +42,13 @@
<td>{{$record->classText}}</td>
<td></td>
</tr>
@if($props)
<tr>
<th>{{__('user.labels.props')}}</th>
<td><div style="display: flex">{!! implode('&nbsp;|&nbsp;', $props) !!}</div></td>
<td></td>
</tr>
@endif
<tr>
<th>{{__('label.user.invite_by')}}</th>
<td>{{$record->inviter->username ?? ''}}</td>