checkout, register, payment,
checkout correction, register wizard, payment packege,
This commit is contained in:
parent
6e3adac4d7
commit
446bc4561b
48 changed files with 2580 additions and 1493 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\SfGuardUser;
|
||||
use App\Models\ShoppingPayment;
|
||||
use App\User;
|
||||
use Auth;
|
||||
use Carbon\Carbon;
|
||||
|
|
@ -69,7 +69,7 @@ class HomeController extends Controller
|
|||
abort(404);
|
||||
}
|
||||
|
||||
public function checkLogin($identify, $token)
|
||||
/* public function checkLogin($identify, $token)
|
||||
{
|
||||
if($identify){
|
||||
//user find by $identify
|
||||
|
|
@ -110,6 +110,7 @@ class HomeController extends Controller
|
|||
}
|
||||
return abort(404);
|
||||
}
|
||||
*/
|
||||
|
||||
public function legalDataProtected()
|
||||
{
|
||||
|
|
@ -131,7 +132,9 @@ class HomeController extends Controller
|
|||
if ( ! $user)
|
||||
{
|
||||
|
||||
return redirect('/status/not/found');
|
||||
// return redirect('/status/not/found');
|
||||
return redirect('/home');
|
||||
|
||||
}
|
||||
|
||||
$user->confirmed = 1;
|
||||
|
|
@ -144,7 +147,7 @@ class HomeController extends Controller
|
|||
//Login!
|
||||
Auth::login($user);
|
||||
|
||||
return redirect('/status/verify');
|
||||
return redirect('/home');
|
||||
}
|
||||
|
||||
public function statusRegister(){
|
||||
|
|
@ -177,7 +180,27 @@ class HomeController extends Controller
|
|||
}
|
||||
}
|
||||
return json_encode(true);
|
||||
}
|
||||
|
||||
public function blocked()
|
||||
{
|
||||
return view('status.user_blocked');
|
||||
}
|
||||
|
||||
public function backToShop($reference = ""){
|
||||
|
||||
if($reference){
|
||||
$ShoppingPayment = ShoppingPayment::where('reference', $reference)->first();
|
||||
if($ShoppingPayment->status == 'success'){
|
||||
$user = Auth::user();
|
||||
$user->wizard = 4;
|
||||
$user->save();
|
||||
return redirect(route('wizard', [4]));
|
||||
}else{
|
||||
\Session()->flash('alert-error', "Es ist ein Fehler bei der Bestellung aufgetreten");
|
||||
return redirect(route('wizard'));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue