| 
					
					
						
							
						
					
					
				 | 
				@ -2,6 +2,8 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				namespace App\Admin\Controllers; | 
				 | 
				 | 
				namespace App\Admin\Controllers; | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				use App\Admin\Lazys\AlipayLazys; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				use App\Admin\Lazys\BankLazys; | 
			
		
		
	
		
			
				 | 
				 | 
				use App\Admin\Repositories\Withdrawal; | 
				 | 
				 | 
				use App\Admin\Repositories\Withdrawal; | 
			
		
		
	
		
			
				 | 
				 | 
				use App\Traits\WithdrawalTraits; | 
				 | 
				 | 
				use App\Traits\WithdrawalTraits; | 
			
		
		
	
		
			
				 | 
				 | 
				use Dcat\Admin\Admin; | 
				 | 
				 | 
				use Dcat\Admin\Admin; | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -26,6 +28,20 @@ class WithdrawalController extends AdminController | 
			
		
		
	
		
			
				 | 
				 | 
							$grid->column('price','提现金额'); | 
				 | 
				 | 
							$grid->column('price','提现金额'); | 
			
		
		
	
		
			
				 | 
				 | 
							$grid->column('user.name','用户名称'); | 
				 | 
				 | 
							$grid->column('user.name','用户名称'); | 
			
		
		
	
		
			
				 | 
				 | 
							$grid->column('pay_type','提现方式')->using(WithdrawalTraits::$userTypeText); | 
				 | 
				 | 
							$grid->column('pay_type','提现方式')->using(WithdrawalTraits::$userTypeText); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							$grid->column('detail','提现信息') | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								->display('查看') | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								->if(fn() => $this->pay_type == WithdrawalTraits::$userType[0]) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								->then(function ($column) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									$column->modal('',function () { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										return AlipayLazys::make(); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									}); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								->if(fn() => $this->pay_type == WithdrawalTraits::$userType[1]) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								->then(function ($column) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									$column->modal('',function () { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										return BankLazys::make(); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
									}); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								}); | 
			
		
		
	
		
			
				 | 
				 | 
							$grid->column('status','状态') | 
				 | 
				 | 
							$grid->column('status','状态') | 
			
		
		
	
		
			
				 | 
				 | 
								->if(fn() => $this->status == WithdrawalTraits::$state[0]) | 
				 | 
				 | 
								->if(fn() => $this->status == WithdrawalTraits::$state[0]) | 
			
		
		
	
		
			
				 | 
				 | 
								->display('') | 
				 | 
				 | 
								->display('') | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |