diff --git a/app/Http/Controllers/CustomersController.php b/app/Http/Controllers/CustomersController.php index 2eb084f..dfcc8ea 100644 --- a/app/Http/Controllers/CustomersController.php +++ b/app/Http/Controllers/CustomersController.php @@ -152,4 +152,14 @@ class CustomersController extends Controller $response = Http::get('http://localhost:8000/api/customers'); dd($response->json()); } + + + public function getOTP() + { + $auth_user = Auth::user(); + $api_url = config('api.url'); + $cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); + + return view('onetimepassword.home',compact('cawangan_info','api_url')); + } } diff --git a/resources/views/onetimepassword/home.blade.php b/resources/views/onetimepassword/home.blade.php new file mode 100644 index 0000000..eb4471c --- /dev/null +++ b/resources/views/onetimepassword/home.blade.php @@ -0,0 +1,192 @@ +@extends('layouts.app') + +@section('content') + + +
+ +