up
This commit is contained in:
@@ -40,6 +40,12 @@ class ShowRecarga extends Component
|
||||
public function render()
|
||||
{
|
||||
// $this->fechaActual = date('d/m/Y');
|
||||
$estadoUsuario = auth()->user()->estado;
|
||||
if ($estadoUsuario !== null && $estadoUsuario !== 'activo') {
|
||||
Auth::logout();
|
||||
return redirect()->route('login')->with('error', 'Tu cuenta está cerrada o inactiva.');
|
||||
}
|
||||
|
||||
if (auth()->user()->rol->nombre == "super" || auth()->user()->rol->nombre == "administrador" || auth()->user()->rol->nombre == "distribuidor") {
|
||||
$this->cobrar = true;
|
||||
$this->monto = "500";
|
||||
@@ -57,6 +63,14 @@ class ShowRecarga extends Component
|
||||
|
||||
public function pagar(){
|
||||
|
||||
$estadoUsuario = auth()->user()->estado;
|
||||
if ($estadoUsuario !== null && $estadoUsuario !== 'activo') {
|
||||
$this->alert('error', 'Tu cuenta está cerrada o inactiva. No puedes realizar recargas.', [
|
||||
'position' => 'top'
|
||||
]);
|
||||
return;
|
||||
}
|
||||
|
||||
//auth2.0
|
||||
$client_id='5ml5b35ijjk13f4q99utnsm97e';
|
||||
$client_secret='1b3703aq0o6t1rrfti13q7uf7f42glik3gsf81s0d783shblmt8l';
|
||||
|
||||
Reference in New Issue
Block a user