批零提现详情,显示管理者
parent
2fcd925831
commit
3ea9612ae5
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue