|
|
|
@ -17,17 +17,20 @@ class LanzuServiceSpeakerController extends AdminController |
|
|
|
*/ |
|
|
|
protected function grid() |
|
|
|
{ |
|
|
|
return Grid::make(new LanzuServiceSpeaker(), function (Grid $grid) { |
|
|
|
return Grid::make(new LanzuServiceSpeaker(['store']), function (Grid $grid) { |
|
|
|
$grid->id->sortable(); |
|
|
|
$grid->device_name; |
|
|
|
$grid->store_id; |
|
|
|
$grid->column('store.name'); |
|
|
|
$grid->column('is_bind') |
|
|
|
->using([0=>'未绑定',1=>'已绑定']) |
|
|
|
->label([0=>'danger',1=>'success']); |
|
|
|
|
|
|
|
$grid->created_at; |
|
|
|
$grid->updated_at->sortable(); |
|
|
|
|
|
|
|
$grid->filter(function (Grid\Filter $filter) { |
|
|
|
$filter->equal('id'); |
|
|
|
|
|
|
|
$filter->equal('store_id'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|