AddUser.php 592 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Community\Actions\Docter;
  3. use Encore\Admin\Admin;
  4. use Encore\Admin\Grid\Tools\AbstractTool;
  5. use Illuminate\Support\Facades\Request;
  6. class AddUser extends AbstractTool
  7. {
  8. protected $url;
  9. protected $icon;
  10. protected $text;
  11. function __construct($url,$icon,$text='')
  12. {
  13. $this->url = $url;
  14. $this->icon = $icon;
  15. $this->text = $text;
  16. }
  17. public function render()
  18. {
  19. $url = $this->url;
  20. $icon = $this->icon;
  21. $text = $this->text;
  22. return view('cdms.button', compact('url','icon','text'));
  23. }
  24. }