@@ -37,13 +37,13 @@ discard block |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function index_user() { |
| 40 | - if(\Auth::check()){ |
|
| 41 | - if(\Auth::user()->can('admin-games')){ |
|
| 40 | + if (\Auth::check()) { |
|
| 41 | + if (\Auth::user()->can('admin-games')) { |
|
| 42 | 42 | $ur = UserReport::all(); |
| 43 | - }else{ |
|
| 43 | + }else { |
|
| 44 | 44 | $ur = UserReport::whereUserId(\Auth::id()); |
| 45 | 45 | } |
| 46 | - }else{ |
|
| 46 | + }else { |
|
| 47 | 47 | $ur = null; |
| 48 | 48 | } |
| 49 | 49 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | ]); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - public function close_ticket($id){ |
|
| 55 | + public function close_ticket($id) { |
|
| 56 | 56 | $t = UserReport::whereId($id); |
| 57 | 57 | $t->closed = 1; |
| 58 | 58 | $t->closed_at = Carbon::now(); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | return redirect()->action('ReportController@index_user'); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - public function open_ticket($id){ |
|
| 65 | + public function open_ticket($id) { |
|
| 66 | 66 | $t = UserReport::whereId($id); |
| 67 | 67 | $t->closed = 0; |
| 68 | 68 | $t->closed_at = Carbon::now(); |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | return redirect()->action('ReportController@index_user'); |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - public function remark_ticket($id){ |
|
| 75 | + public function remark_ticket($id) { |
|
| 76 | 76 | |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -40,10 +40,10 @@ |
||
| 40 | 40 | if(\Auth::check()){ |
| 41 | 41 | if(\Auth::user()->can('admin-games')){ |
| 42 | 42 | $ur = UserReport::all(); |
| 43 | - }else{ |
|
| 43 | + } else{ |
|
| 44 | 44 | $ur = UserReport::whereUserId(\Auth::id()); |
| 45 | 45 | } |
| 46 | - }else{ |
|
| 46 | + } else{ |
|
| 47 | 47 | $ur = null; |
| 48 | 48 | } |
| 49 | 49 | |