6
0
Fork 0
jiqu-library-server/app/Admin/Actions/Show/DealerWalletRefuse.php

33 lines
832 B
PHP

<?php
namespace App\Admin\Actions\Show;
use App\Admin\Forms\DealerWalletRefuse as DealerWalletRefuseForm;
use Dcat\Admin\Show\AbstractTool;
use Dcat\Admin\Widgets\Modal;
class DealerWalletRefuse extends AbstractTool
{
/**
* @return string
*/
protected $title = '<i class="feather icon-file-text"></i>&nbsp;拒绝';
/**
* 按钮样式定义,默认 btn btn-white waves-effect
*
* @var string
*/
protected $style = 'btn-warning';
public function render()
{
$form = DealerWalletRefuseForm::make()->payload(['id'=>$this->getKey()]);
return Modal::make()
->lg()
->title($this->title)
->body($form)
->button("<a href=\"javascript:void(0)\" class=\"btn btn-sm {$this->style}\">{$this->title}</a>&nbsp;&nbsp;");
}
}