fixed user dashboard for store owner (store settings, store reports)/ fixed login/register page/

This commit is contained in:
Frank John Begornia
2019-09-24 19:52:38 +08:00
parent 502b13e793
commit 83f0624f07
45 changed files with 17655 additions and 373 deletions

View File

@@ -7,6 +7,7 @@ use Illuminate\Http\Request;
use App\Models\MainModel;
// use Illuminate\Support\Facades\Request;
use Analytics;
use Session;
class MainController extends Controller {
@@ -105,7 +106,21 @@ class MainController extends Controller {
// }
}
//call this from blade view
public static function getCountCart(){
$m = new MainModel;
if(Session::get('cartkey')){
$cartKey = Session::get('cartkey');
echo $i = $m->cartCount($cartKey);
}else{
echo 0;
}
}
public function countCart(Request $request){