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

26 lines
583 B
PHP

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