33 lines
863 B
PHP
33 lines
863 B
PHP
<?php
|
|
|
|
namespace App\Admin\Actions\Show;
|
|
|
|
use App\Admin\Forms\AfterSaleShippingFail as AfterSaleShippingFailForm;
|
|
use Dcat\Admin\Show\AbstractTool;
|
|
use Dcat\Admin\Widgets\Modal;
|
|
|
|
class AfterSaleShippingFail extends AbstractTool
|
|
{
|
|
/**
|
|
* @return string
|
|
*/
|
|
protected $title = '<i class="fa fa-reply icon-shuffle"></i> 拒绝确认';
|
|
|
|
/**
|
|
* 按钮样式定义,默认 btn btn-white waves-effect
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $style = 'btn btn-sm btn-danger';
|
|
|
|
public function render()
|
|
{
|
|
$form = AfterSaleShippingFailForm::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> ");
|
|
}
|
|
}
|