OwlCyberSecurity - MANAGER
Edit File: StoreController.php
<?php namespace App\Http\Controllers; use App\Sportpesa\Modules\Prediction\Model\Prediction; use Illuminate\Http\Request; class StoreController extends Controller { public $prediction; public function __construct(Prediction $prediction) { $this->prediction = $prediction; } public function getOver15() { $yy = $this->prediction->yesterdayGame()->where('oneFiveGoals', 'Over 1.5')->get(); $tt = $this->prediction->todayGame()->where('oneFiveGoals', 'Over 1.5')->get(); $tm = $this->prediction->today1Game()->where('oneFiveGoals', 'Over 1.5')->get(); $title = 'Over 1.5 Goals'; $keys = 'o15'; return view('stores.overUnder', compact('title', 'keys', 'yy', 'tt', 'tm')); } public function getOver25() { $yy = $this->prediction->yesterdayGame()->where('twoFiveGoals', '!=', 'None')->get(); $tt = $this->prediction->todayGame()->where('twoFiveGoals', '!=', 'None')->get(); $tm = $this->prediction->today1Game()->where('twoFiveGoals', '!=', 'None')->get(); $title = 'Over & Under 2.5 Goals'; $keys = 'ou25'; return view('stores.overUnder', compact('title', 'keys', 'yy', 'tt', 'tm')); } public function getOver05() { $yy = $this->prediction->yesterdayGame()->where('overZeroFiveHT', '!=', 'None')->get(); $tt = $this->prediction->todayGame()->where('overZeroFiveHT', '!=', 'None')->get(); $tm = $this->prediction->today1Game()->where('overZeroFiveHT', '!=', 'None')->get(); $title = 'Over 0.5 Goals HT'; $keys = 'ou05HT'; return view('stores.overUnder', compact('title', 'keys', 'yy', 'tt', 'tm')); } public function getDoubleChance() { $yy = $this->prediction->yesterdayGame()->where('doubleChance', '!=', 'None')->get(); $tt = $this->prediction->todayGame()->where('doubleChance', '!=', 'None')->get(); $tm = $this->prediction->today1Game()->where('doubleChance', '!=', 'None')->get(); $title = 'Double Chance'; $keys = 'dc'; return view('stores.overUnder', compact('title', 'keys', 'yy', 'tt', 'tm')); } public function getDirectWins() { $yy = $this->prediction->yesterdayGame()->where('directWins', '!=', '')->get(); $tt = $this->prediction->todayGame()->where('directWins', '!=', '')->get(); $tm = $this->prediction->today1Game()->where('directWins', '!=', '')->get(); $title = 'Direct Wins'; $keys = 'dwin'; return view('stores.overUnder', compact('title', 'keys', 'yy', 'tt', 'tm')); } public function getBTTS() { $yy1 = $this->prediction->yesterday1Game()->where('BTTS', '!=', 'No')->get(); $yy = $this->prediction->yesterdayGame()->where('BTTS', '!=', 'No')->get(); $tt = $this->prediction->todayGame()->where('BTTS', '!=', 'No')->get(); $tm = $this->prediction->today1Game()->where('BTTS', '!=', 'No')->get(); $tm1 = $this->prediction->today2Game()->where('BTTS', '!=', 'No')->get(); $title = 'BTTS/GG'; $keys = 'btts'; return view('stores.overUnder', compact('title', 'keys', 'yy1', 'yy', 'tt', 'tm', 'tm1')); } public function getCorners() { $yy = $this->prediction->yesterdayGame()->where('matchCorners', '!=', '')->get(); $tt = $this->prediction->todayGame()->where('matchCorners', '!=', '')->get(); $tm = $this->prediction->today1Game()->where('matchCorners', '!=', '')->get(); $title = 'Match Corners'; $keys = 'mc'; return view('stores.overUnder', compact('title', 'keys', 'yy', 'tt', 'tm')); } // VIP Methods public function getHTFT() { $yy = $this->prediction->yesterdayGame()->where('HTFT', '!=', 'None')->get(); $tt = $this->prediction->todayGame()->where('HTFT', '!=', 'None')->get(); $tm = $this->prediction->today1Game()->where('HTFT', '!=', 'None')->get(); $title = 'HT/FT VIP Tips'; $keys = 'htft'; return view('account.vip.games', compact('title', 'keys', 'yy', 'tt', 'tm')); } public function getSuper() { $yy = $this->prediction->yesterdayGame()->where('super', 'Yes')->get(); $tt = $this->prediction->todayGame()->where('super', 'Yes')->get(); $tm = $this->prediction->today1Game()->where('super', 'Yes')->get(); $title = 'Super VIP Tips'; $keys = 'super'; return view('account.vip.games', compact('title', 'keys', 'yy', 'tt', 'tm')); } public function getMultibet1() { $yy = $this->prediction->yesterdayGame()->where('multiBetOne', 'Yes')->get(); $tt = $this->prediction->todayGame()->where('multiBetOne', 'Yes')->get(); $tm = $this->prediction->today1Game()->where('multiBetOne', 'Yes')->get(); $title = 'Premium Multibet 1 Tips'; $keys = 'multibet1'; return view('account.vip.games', compact('title', 'keys', 'yy', 'tt', 'tm')); } public function getMultibet2() { $yy = $this->prediction->yesterdayGame()->where('multiBetTwo', 'Yes')->get(); $tt = $this->prediction->todayGame()->where('multiBetTwo', 'Yes')->get(); $tm = $this->prediction->today1Game()->where('multiBetTwo', 'Yes')->get(); $title = 'Premium Multibet 2 Tips'; $keys = 'multibet2'; return view('account.vip.games', compact('title', 'keys', 'yy', 'tt', 'tm')); } public function getMultibet3() { $yy = $this->prediction->yesterdayGame()->where('multiBetThree', 'Yes')->get(); $tt = $this->prediction->todayGame()->where('multiBetThree', 'Yes')->get(); $tm = $this->prediction->today1Game()->where('multiBetThree', 'Yes')->get(); $title = 'Premium Multibet 3 Tips'; $keys = 'multibet3'; return view('account.vip.games', compact('title', 'keys', 'yy', 'tt', 'tm')); } public function getMega() { // $yy = $this->prediction->yesterdayGame()->where('mega', 'Yes')->get(); $tt = $this->prediction->todayGame()->where('mega', 'Yes')->get(); // $tm = $this->prediction->today1Game()->where('mega', 'Yes')->get(); $title = 'Mega Jackpot VIP Tips'; $keys = 'mega'; return view('account.vip.jackpot', compact('title', 'keys', 'yy', 'tt', 'tm')); } public function getMidweek() { // $yy = $this->prediction->yesterdayGame()->where('midWeek', 'Yes')->get(); $tt = $this->prediction->todayGame()->where('midWeek', 'Yes')->get(); // $tm = $this->prediction->today1Game()->where('midWeek', 'Yes')->get(); $title = 'Midweek Jackpot VIP Tips'; $keys = 'midWeek'; return view('account.vip.jackpot', compact('title', 'keys', 'yy', 'tt', 'tm')); } }