ll
This commit is contained in:
parent
c8c2687d9e
commit
90c8c5e2bf
@ -22,9 +22,17 @@ class HomeController extends Controller {
|
|||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
|
$values = Cookie::get('trophee');
|
||||||
|
if ($values === false)
|
||||||
|
$values = [0, 0, 0];
|
||||||
|
|
||||||
|
$nbOr = $values[2];
|
||||||
|
$nbArgent = $values[1];
|
||||||
|
$nbBronze = $values[0];
|
||||||
|
|
||||||
$idRef = Cookie::get('referent');
|
$idRef = Cookie::get('referent');
|
||||||
$ref = Referent::find($idRef);
|
$ref = Referent::find($idRef);
|
||||||
return view('frontend/games', ['ref' => $ref]);
|
return view('frontend/games', ['ref' => $ref], 'nbOr' => $nbOr, 'nbArgent' => $nbArgent, 'nbBronze' => $nbBronze);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function choisirRef()
|
public function choisirRef()
|
||||||
|
Reference in New Issue
Block a user