|
|
@ -0,0 +1,84 @@ |
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
namespace App\Admin\Controllers; |
|
|
|
|
|
|
|
|
|
|
|
use App\Admin\Repositories\LanzuMpWithdraw; |
|
|
|
|
|
use Dcat\Admin\Form; |
|
|
|
|
|
use Dcat\Admin\Grid; |
|
|
|
|
|
use Dcat\Admin\Show; |
|
|
|
|
|
use Dcat\Admin\Controllers\AdminController; |
|
|
|
|
|
|
|
|
|
|
|
class LanzuMpWithdrawController extends AdminController |
|
|
|
|
|
{ |
|
|
|
|
|
/** |
|
|
|
|
|
* Make a grid builder. |
|
|
|
|
|
* |
|
|
|
|
|
* @return Grid |
|
|
|
|
|
*/ |
|
|
|
|
|
protected function grid() |
|
|
|
|
|
{ |
|
|
|
|
|
return Grid::make(new LanzuMpWithdraw(), function (Grid $grid) { |
|
|
|
|
|
$grid->id->sortable(); |
|
|
|
|
|
$grid->mp_id; |
|
|
|
|
|
$grid->money; |
|
|
|
|
|
$grid->status; |
|
|
|
|
|
$grid->created_at; |
|
|
|
|
|
$grid->updated_at->sortable(); |
|
|
|
|
|
|
|
|
|
|
|
$grid->filter(function (Grid\Filter $filter) { |
|
|
|
|
|
$filter->equal('id'); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Make a show builder. |
|
|
|
|
|
* |
|
|
|
|
|
* @param mixed $id |
|
|
|
|
|
* |
|
|
|
|
|
* @return Show |
|
|
|
|
|
*/ |
|
|
|
|
|
protected function detail($id) |
|
|
|
|
|
{ |
|
|
|
|
|
return Show::make($id, new LanzuMpWithdraw(), function (Show $show) { |
|
|
|
|
|
$show->id; |
|
|
|
|
|
$show->mp_id; |
|
|
|
|
|
$show->money; |
|
|
|
|
|
$show->status; |
|
|
|
|
|
$show->created_at; |
|
|
|
|
|
$show->updated_at; |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Make a form builder. |
|
|
|
|
|
* |
|
|
|
|
|
* @return Form |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
public function mpForm(){ |
|
|
|
|
|
|
|
|
|
|
|
return Form::make(new LanzuMpWithdraw(), function (Form $form) { |
|
|
|
|
|
$form->display('id'); |
|
|
|
|
|
$form->text('mp_id'); |
|
|
|
|
|
$form->text('money'); |
|
|
|
|
|
$form->text('status'); |
|
|
|
|
|
|
|
|
|
|
|
$form->display('created_at'); |
|
|
|
|
|
$form->display('updated_at'); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
protected function form() |
|
|
|
|
|
{ |
|
|
|
|
|
return Form::make(new LanzuMpWithdraw(), function (Form $form) { |
|
|
|
|
|
$form->display('id'); |
|
|
|
|
|
$form->text('mp_id'); |
|
|
|
|
|
$form->text('money'); |
|
|
|
|
|
$form->text('status'); |
|
|
|
|
|
|
|
|
|
|
|
$form->display('created_at'); |
|
|
|
|
|
$form->display('updated_at'); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
} |