6
0
Fork 0

批零提现详情,显示管理者

release
李静 2022-04-24 10:12:58 +08:00
parent 2fcd925831
commit 3ea9612ae5
1 changed files with 8 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class DealerWalletToBankLogController extends AdminController
*/
protected function detail($id)
{
$builder = DealerWalletToBankLog::with(['user']);
$builder = DealerWalletToBankLog::with(['user', 'managerUserInfo']);
return Show::make($id, $builder, function (Show $show) {
$show->field('id');
$show->field('user.phone');
@ -91,6 +91,13 @@ class DealerWalletToBankLogController extends AdminController
$show->field('rate')->append('%');
$show->field('service_amount')->prepend('¥');
$show->field('account_amount')->prepend('¥');
$show->field('manager_id')->unescape()->as(function () {
if ($this->managerUserInfo) {
$href = admin_route('dealers.show', ['dealer_user' => $this->manager_id]);
return "<a href=\"{$href}\" target=\"_blank\">{$this->managerUserInfo->nickname}</a>";
}
});
$show->field('status')->unescape()->as(function ($v) {
$text = $this->status->text();
$background = $this->status->color();