coinwind/app/Admin/Tools/RequestBalance.php

29 lines
532 B
PHP

<?php
namespace App\Admin\Tools;
use Encore\Admin\Grid\Tools\AbstractTool;
class RequestBalance extends AbstractTool
{
protected $url;
protected $icon;
protected $text;
function __construct($url, $icon, $text)
{
$this->url = $url;
$this->icon = $icon;
$this->text = $text;
}
public function render()
{
$url = $this->url;
$icon = $this->icon;
$text = $this->text;
return view('admin.tools.button', compact('url', 'icon', 'text'));
}
}