WithdrawReview.php 829 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Admin\Actions\Grid;
  3. use Dcat\Admin\Form\AbstractTool;
  4. use Dcat\Admin\Widgets\Modal;
  5. class WithdrawReview extends AbstractTool
  6. {
  7. /**
  8. * @return string
  9. */
  10. protected $title = '提现审核';
  11. protected $model;
  12. public function __construct(string $model = null, $id = 0, $status = 0)
  13. {
  14. $this->model = $model;
  15. $this->title = '<i class="feather icon-check-square"></i> ' . $this->title;
  16. $this->id = $id;
  17. $this->status = $status;
  18. }
  19. public function render()
  20. {
  21. $form = \App\Admin\Actions\Form\WithdrawReview::make()->payload(['id' => $this->id, 'status' => $this->status]);
  22. return Modal::make()
  23. ->lg()
  24. ->title($this->title)
  25. ->body($form)
  26. ->button($this->title);
  27. }
  28. }