This repository has been archived on 2021-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pingan_unionpay/app/Admin/Renderable/Log/OutData.php
2020-10-20 08:34:40 +08:00

25 lines
559 B
PHP

<?php
namespace App\Admin\Renderable\Log;
use App\Models\Log;
use Encore\Admin\Widgets\Table;
use Illuminate\Contracts\Support\Renderable;
class OutData implements Renderable
{
public function render($key = null)
{
$log = Log::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();
}
}
}