|
1 | 1 | <div class="row row-cards">
|
2 | 2 |
|
3 | 3 | @if($user->options->qq && $user->options->wx && $user->options->website && $user->options->email)
|
4 |
| - <div class="col-12"> |
5 |
| - <div class="border-0 card card-body"> |
6 |
| - <dl class="row"> |
7 |
| - @if($user->options->qq) |
8 |
| - <dt class="col-sm-3">{{ __('user.QQ') }}:</dt> |
9 |
| - <dd class="col-sm-9">{{ $user->options->qq }}</dd> |
10 |
| - @endif |
11 |
| - @if($user->options->wx) |
12 |
| - <dt class="col-sm-3">{{ __('user.wechat') }}:</dt> |
13 |
| - <dd class="col-sm-9">{{ $user->options->wx }}</dd> |
14 |
| - @endif |
15 |
| - @if($user->options->website) |
16 |
| - <dt class="col-sm-3">{{ __('user.website') }}:</dt> |
17 |
| - <dd class="col-sm-9"><a href="{{ $user->options->website }}">{{ $user->options->website }}</a></dd> |
18 |
| - @endif |
19 |
| - @if($user->options->email) |
20 |
| - <dt class="col-sm-3">{{ __('user.email') }}:</dt> |
21 |
| - <dd class="col-sm-9"><a href="mailto:{{ $user->options->email }}">{{ $user->options->email }}</a> |
22 |
| - </dd> |
23 |
| - @endif |
24 |
| - </dl> |
| 4 | + <div class="col-12"> |
| 5 | + <div class="border-0 card card-body"> |
| 6 | + <dl class="row"> |
| 7 | + @if($user->options->qq) |
| 8 | + <dt class="col-sm-3">{{ __('user.QQ') }}:</dt> |
| 9 | + <dd class="col-sm-9">{{ $user->options->qq }}</dd> |
| 10 | + @endif |
| 11 | + @if($user->options->wx) |
| 12 | + <dt class="col-sm-3">{{ __('user.wechat') }}:</dt> |
| 13 | + <dd class="col-sm-9">{{ $user->options->wx }}</dd> |
| 14 | + @endif |
| 15 | + @if($user->options->website) |
| 16 | + <dt class="col-sm-3">{{ __('user.website') }}:</dt> |
| 17 | + <dd class="col-sm-9"><a href="{{ $user->options->website }}">{{ $user->options->website }}</a> |
| 18 | + </dd> |
| 19 | + @endif |
| 20 | + @if($user->options->email) |
| 21 | + <dt class="col-sm-3">{{ __('user.email') }}:</dt> |
| 22 | + <dd class="col-sm-9"><a |
| 23 | + href="mailto:{{ $user->options->email }}">{{ $user->options->email }}</a> |
| 24 | + </dd> |
| 25 | + @endif |
| 26 | + </dl> |
| 27 | + </div> |
25 | 28 | </div>
|
26 |
| - </div> |
27 | 29 | @endif
|
28 | 30 |
|
29 |
| - <div class="col-12"> |
| 31 | + @if(auth()->id() ===(int)$user->id) |
| 32 | + <div class="col-12"> |
30 | 33 |
|
31 |
| - <div class="border-0 card card-body"> |
32 |
| - <h3 class="card-title">{{__("user.wealth")}}</h3> |
33 |
| - <div class="row row-cards"> |
| 34 | + <div class="border-0 card card-body"> |
| 35 | + <h3 class="card-title">{{__("user.wealth")}}</h3> |
| 36 | + <div class="row row-cards"> |
34 | 37 |
|
35 |
| - <div class="col-12 col-md-6 col-lg-3"> |
36 |
| - <a href="/user/asset/money" class="card card-sm"> |
37 |
| - <div class="card-body"> |
38 |
| - <div class="row align-items-center"> |
39 |
| - <div class="col-auto"> |
| 38 | + <div class="col-12 col-md-6 col-lg-3"> |
| 39 | + <a href="/user/asset/money" class="card card-sm"> |
| 40 | + <div class="card-body"> |
| 41 | + <div class="row align-items-center"> |
| 42 | + <div class="col-auto"> |
40 | 43 | <span class="bg-orange-lt text-white avatar"><!-- Download SVG icon from http://tabler-icons.io/i/heart -->
|
41 |
| - <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-currency-dollar" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 44 | + <svg xmlns="http://www.w3.org/2000/svg" |
| 45 | + class="icon icon-tabler icon-tabler-currency-dollar" width="24" height="24" |
| 46 | + viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" |
| 47 | + stroke-linecap="round" stroke-linejoin="round"> |
42 | 48 | <desc>Download more icon variants from https://tabler-icons.io/i/currency-dollar</desc>
|
43 | 49 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
44 | 50 | <path d="M16.7 8a3 3 0 0 0 -2.7 -2h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1 -2.7 -2"></path>
|
45 | 51 | <path d="M12 3v3m0 12v3"></path>
|
46 | 52 | </svg>
|
47 | 53 | </span>
|
48 |
| - </div> |
49 |
| - <div class="col"> |
50 |
| - <div class="font-weight-medium"> |
51 |
| - <span>{{$user->options->money}}</span> |
52 | 54 | </div>
|
53 |
| - <div class="text-muted"> |
54 |
| - {{get_options('wealth_money_name','余额')}} |
| 55 | + <div class="col"> |
| 56 | + <div class="font-weight-medium"> |
| 57 | + <span>{{$user->options->money}}</span> |
| 58 | + </div> |
| 59 | + <div class="text-muted"> |
| 60 | + {{get_options('wealth_money_name','余额')}} |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + <div class="col-auto"> |
55 | 64 | </div>
|
56 |
| - </div> |
57 |
| - <div class="col-auto"> |
58 | 65 | </div>
|
59 | 66 | </div>
|
60 |
| - </div> |
61 |
| - </a> |
62 |
| - </div> |
| 67 | + </a> |
| 68 | + </div> |
63 | 69 |
|
64 |
| - <div class="col-12 col-md-6 col-lg-3"> |
65 |
| - <div class="card card-sm"> |
66 |
| - <div class="card-body"> |
67 |
| - <div class="row align-items-center"> |
68 |
| - <div class="col-auto"> |
| 70 | + <div class="col-12 col-md-6 col-lg-3"> |
| 71 | + <div class="card card-sm"> |
| 72 | + <div class="card-body"> |
| 73 | + <div class="row align-items-center"> |
| 74 | + <div class="col-auto"> |
69 | 75 | <span class="bg-yellow-lt text-white avatar"><!-- Download SVG icon from http://tabler-icons.io/i/heart -->
|
70 |
| - <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-credit-card" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 76 | + <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-credit-card" |
| 77 | + width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" |
| 78 | + fill="none" stroke-linecap="round" stroke-linejoin="round"> |
71 | 79 | <desc>Download more icon variants from https://tabler-icons.io/i/credit-card</desc>
|
72 | 80 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
73 | 81 | <rect x="3" y="5" width="18" height="14" rx="3"></rect>
|
|
76 | 84 | <line x1="11" y1="15" x2="13" y2="15"></line>
|
77 | 85 | </svg>
|
78 | 86 | </span>
|
79 |
| - </div> |
80 |
| - <div class="col"> |
81 |
| - <div class="font-weight-medium"> |
82 |
| - <span>{{$user->options->credits}}</span> |
83 | 87 | </div>
|
84 |
| - <div class="text-muted"> |
85 |
| - {{get_options('wealth_credit_name','积分')}} |
| 88 | + <div class="col"> |
| 89 | + <div class="font-weight-medium"> |
| 90 | + <span>{{$user->options->credits}}</span> |
| 91 | + </div> |
| 92 | + <div class="text-muted"> |
| 93 | + {{get_options('wealth_credit_name','积分')}} |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + <div class="col-auto"> |
86 | 97 | </div>
|
87 |
| - </div> |
88 |
| - <div class="col-auto"> |
89 | 98 | </div>
|
90 | 99 | </div>
|
91 | 100 | </div>
|
92 | 101 | </div>
|
93 |
| - </div> |
94 | 102 |
|
95 |
| - <div class="col-12 col-md-6 col-lg-3"> |
96 |
| - <div class="card card-sm"> |
97 |
| - <div class="card-body"> |
98 |
| - <div class="row align-items-center"> |
99 |
| - <div class="col-auto"> |
| 103 | + <div class="col-12 col-md-6 col-lg-3"> |
| 104 | + <div class="card card-sm"> |
| 105 | + <div class="card-body"> |
| 106 | + <div class="row align-items-center"> |
| 107 | + <div class="col-auto"> |
100 | 108 | <span class="bg-cyan-lt text-white avatar"><!-- Download SVG icon from http://tabler-icons.io/i/heart -->
|
101 |
| - <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-coin" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 109 | + <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-coin" |
| 110 | + width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" |
| 111 | + fill="none" stroke-linecap="round" stroke-linejoin="round"> |
102 | 112 | <desc>Download more icon variants from https://tabler-icons.io/i/coin</desc>
|
103 | 113 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
104 | 114 | <circle cx="12" cy="12" r="9"></circle>
|
105 | 115 | <path d="M14.8 9a2 2 0 0 0 -1.8 -1h-2a2 2 0 0 0 0 4h2a2 2 0 0 1 0 4h-2a2 2 0 0 1 -1.8 -1"></path>
|
106 | 116 | <path d="M12 6v2m0 8v2"></path>
|
107 | 117 | </svg>
|
108 | 118 | </span>
|
109 |
| - </div> |
110 |
| - <div class="col"> |
111 |
| - <div class="font-weight-medium"> |
112 |
| - <span>{{$user->options->golds}}</span> |
113 | 119 | </div>
|
114 |
| - <div class="text-muted"> |
115 |
| - {{get_options('wealth_golds_name','金币')}} |
| 120 | + <div class="col"> |
| 121 | + <div class="font-weight-medium"> |
| 122 | + <span>{{$user->options->golds}}</span> |
| 123 | + </div> |
| 124 | + <div class="text-muted"> |
| 125 | + {{get_options('wealth_golds_name','金币')}} |
| 126 | + </div> |
| 127 | + </div> |
| 128 | + <div class="col-auto"> |
116 | 129 | </div>
|
117 |
| - </div> |
118 |
| - <div class="col-auto"> |
119 | 130 | </div>
|
120 | 131 | </div>
|
121 | 132 | </div>
|
122 | 133 | </div>
|
123 |
| - </div> |
124 | 134 |
|
125 | 135 |
|
126 |
| - <div class="col-12 col-md-6 col-lg-3"> |
127 |
| - <div class="card card-sm"> |
128 |
| - <div class="card-body"> |
129 |
| - <div class="row align-items-center"> |
130 |
| - <div class="col-auto"> |
| 136 | + <div class="col-12 col-md-6 col-lg-3"> |
| 137 | + <div class="card card-sm"> |
| 138 | + <div class="card-body"> |
| 139 | + <div class="row align-items-center"> |
| 140 | + <div class="col-auto"> |
131 | 141 | <span class="bg-azure-lt text-white avatar"><!-- Download SVG icon from http://tabler-icons.io/i/heart -->
|
132 |
| - <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-activity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 142 | + <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-activity" |
| 143 | + width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" |
| 144 | + fill="none" stroke-linecap="round" stroke-linejoin="round"> |
133 | 145 | <desc>Download more icon variants from https://tabler-icons.io/i/activity</desc>
|
134 | 146 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
135 | 147 | <path d="M3 12h4l3 8l4 -16l3 8h4"></path>
|
136 | 148 | </svg>
|
137 | 149 | </span>
|
138 |
| - </div> |
139 |
| - <div class="col"> |
140 |
| - <div class="font-weight-medium"> |
141 |
| - <span>{{$user->options->exp}}</span> |
142 | 150 | </div>
|
143 |
| - <div class="text-muted"> |
144 |
| - {{get_options('wealth_exp_name','经验')}} |
| 151 | + <div class="col"> |
| 152 | + <div class="font-weight-medium"> |
| 153 | + <span>{{$user->options->exp}}</span> |
| 154 | + </div> |
| 155 | + <div class="text-muted"> |
| 156 | + {{get_options('wealth_exp_name','经验')}} |
| 157 | + </div> |
| 158 | + </div> |
| 159 | + <div class="col-auto"> |
145 | 160 | </div>
|
146 |
| - </div> |
147 |
| - <div class="col-auto"> |
148 | 161 | </div>
|
149 | 162 | </div>
|
150 | 163 | </div>
|
151 | 164 | </div>
|
152 |
| - </div> |
153 | 165 |
|
154 | 166 |
|
| 167 | + </div> |
155 | 168 | </div>
|
156 |
| - </div> |
157 | 169 |
|
158 |
| - </div> |
| 170 | + </div> |
| 171 | + @endif |
159 | 172 |
|
160 | 173 | <div class="col-12">
|
161 | 174 | <div class="border-0 card card-body">
|
|
0 commit comments