IncomeWidget.php 763 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 2017/3/6
  6. * Time: 上午11:32
  7. */
  8. namespace app\backend\widgets\finance;
  9. use app\backend\modules\withdraw\models\WithdrawRichText;
  10. use app\common\components\Widget;
  11. use app\common\facades\Setting;
  12. class IncomeWidget extends Widget
  13. {
  14. public function run()
  15. {
  16. $set = Setting::get('withdraw.income');
  17. $withdraw_rich_text = WithdrawRichText::uniacid()->first();
  18. $set['servicetax'] = array_values($set['servicetax']);
  19. return view('finance.withdraw.withdraw-income', [
  20. 'set' => $set,
  21. 'income_count' => count($set['servicetax']),
  22. 'withdraw_rich_text' => $withdraw_rich_text,
  23. ])->render();
  24. }
  25. }