CustomerController.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Http\Response;
  5. use Illuminate\Support\Facades\Gate;
  6. class CustomerController extends Controller
  7. {
  8. /**
  9. * Display a listing of the resource.
  10. *
  11. * @return Response
  12. */
  13. public function projectReport()
  14. {
  15. if(!Gate::allows('客户管理-项目-报表')){ return redirect('denied'); }
  16. return response()->view('customer.project.report');
  17. }
  18. public function projectIndex()
  19. {
  20. if(!Gate::allows('客户管理-项目-查询')){ return redirect('denied'); }
  21. return response()->view('customer.project.index');
  22. }
  23. public function projectCreate()
  24. {
  25. if(!Gate::allows('客户管理-项目-录入')){ return redirect('denied'); }
  26. return response()->view('customer.project.create');
  27. }
  28. public function projectArea()
  29. {
  30. if(!Gate::allows('客户管理-项目-面积')){ return redirect('denied'); }
  31. return response()->view('customer.project.area');
  32. }
  33. public function financeInstantBill()
  34. {
  35. if(!Gate::allows('客户管理-财务-即时账单')){ return redirect('denied'); }
  36. return response()->view('customer.finance.instantBill');
  37. }
  38. public function financeBillConfirmation()
  39. {
  40. if(!Gate::allows('客户管理-财务-账单确认')){ return redirect('denied'); }
  41. return response()->view('customer.finance.billConfirmation');
  42. }
  43. }