Files
pingan_new/app/Admin/Renderable/Unionpay/OutData.php
2020-10-14 16:42:50 +08:00

25 lines
580 B
PHP

<?php
namespace App\Admin\Renderable\Unionpay;
use App\Models\UnionpayLog;
use Encore\Admin\Widgets\Table;
use Illuminate\Contracts\Support\Renderable;
class OutData implements Renderable
{
public function render($key = null)
{
$log = UnionpayLog::find($key);
$out_source = $log->out_source;
if (is_array($out_source) && count($out_source) > 1) {
unset($out_source['sign']);
$table = new Table(['名称', '值'], $out_source, ['panel ', 'panel-success']);
return $table->render();
}
}
}