Guest User

Untitled

a guest
Oct 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. @if($worldCup->rounds->count() == 0)
  2. <a type="button" style="margin-right: 3px;" class="btn btn-xs btn-info" href="{{action('WorldCupsController@resort_stage_1' ,$worldCup->id)}}"><i class="fa fa-connectdevelop"></i> Shuffle</a>
  3.  
  4. public function resort_stage_1(WorldCup $worldCup)
  5. {
  6. $worldCup->load('teams');
  7. return view('wc.admin.resort_stage_1',compact('worldCup'));
  8. }
  9.  
  10. Route::get( 'wc/{worldCups}/resort_stage_1',
  11. ['as' => 'admin.wc.resort.get',
  12. 'uses' => 'WorldCupsController@resort_stage_1']);
  13.  
  14. Route::get('wc/{worldCup}/resort_stage_1','WorldCupsController@resort_stage_1')
  15. ->name('admin.wc.resort.get');
Add Comment
Please, Sign In to add comment