card list
This commit is contained in:
parent
dd28eadf79
commit
de31005f1a
@ -25,7 +25,15 @@ $table = new ListEloquentTable(new EloquentDataProvider(Card::query()->orderBy("
|
||||
'currentPage' => $page_number,
|
||||
'perPage' => 8,
|
||||
'params' => ["class" => "table table-bordered", "border" => "2"],
|
||||
'baseUrl' => "/admin/card"
|
||||
'baseUrl' => "/admin/card",
|
||||
'fillable' => [
|
||||
'user_id',
|
||||
'balance',
|
||||
'username',
|
||||
'card_template_id',
|
||||
'card_file_id',
|
||||
'status',
|
||||
],
|
||||
]));
|
||||
|
||||
$table->columns([
|
||||
@ -39,6 +47,11 @@ $table->columns([
|
||||
return \kernel\app_modules\card\models\CardTemplate::find($data)->title;
|
||||
}
|
||||
],
|
||||
"username" => [
|
||||
"filter" => [
|
||||
"class" => \Itguild\Tables\Filter\InputTextFilter::class
|
||||
]
|
||||
],
|
||||
'card_file_id' => [
|
||||
'value' => function ($data) {
|
||||
$file = \kernel\app_modules\card\models\CardFile::find($data)->file;
|
||||
|
Loading…
x
Reference in New Issue
Block a user