added download manual pengguna arrahnpay
This commit is contained in:
@@ -42,6 +42,11 @@ return [
|
|||||||
'visibility' => 'public',
|
'visibility' => 'public',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'miscellaneous' => [
|
||||||
|
'driver' => 'local',
|
||||||
|
'root' => storage_path('miscellaneous'),
|
||||||
|
],
|
||||||
|
|
||||||
's3' => [
|
's3' => [
|
||||||
'driver' => 's3',
|
'driver' => 's3',
|
||||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||||
|
|||||||
@@ -102,6 +102,12 @@
|
|||||||
<p class="d-inline text-sm z-index-1 font-weight-bold" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Tetapan Profile">{{ auth()->user()->name }}</p>
|
<p class="d-inline text-sm z-index-1 font-weight-bold" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Tetapan Profile">{{ auth()->user()->name }}</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item ms-lg-auto">
|
||||||
|
<a class="nav-link nav-link-icon me-2" href="{{ route('miscellaneous.manualpengguna') }}">
|
||||||
|
<i class="fa fa-download"></i>
|
||||||
|
<p class="d-inline text-sm z-index-1 font-weight-bold" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Manual Pengguna">Manual Pengguna</p>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li class="nav-item my-auto ms-3 ms-lg-0">
|
<li class="nav-item my-auto ms-3 ms-lg-0">
|
||||||
<a href="{{ route('logout') }}" class="btn btn-sm bg-white border mb-0 me-1 mt-2 mt-md-0" onclick="event.preventDefault();document.getElementById('logout-form').submit();">
|
<a href="{{ route('logout') }}" class="btn btn-sm bg-white border mb-0 me-1 mt-2 mt-md-0" onclick="event.preventDefault();document.getElementById('logout-form').submit();">
|
||||||
<span>{{ __('LOG KELUAR') }}</span>
|
<span>{{ __('LOG KELUAR') }}</span>
|
||||||
|
|||||||
+8
-144
@@ -17,9 +17,6 @@ Route::get('/test', function(){
|
|||||||
return view('testconfig');
|
return view('testconfig');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Route::get('/', function () {
|
|
||||||
// return view('welcome');
|
|
||||||
// });
|
|
||||||
Route::get('/email', function () {
|
Route::get('/email', function () {
|
||||||
return view('/email/test');
|
return view('/email/test');
|
||||||
});
|
});
|
||||||
@@ -35,69 +32,7 @@ Route::get('/firsttime', function () {
|
|||||||
Route::get('/forgetemail', function () {
|
Route::get('/forgetemail', function () {
|
||||||
return view('/includes/login/forgetemail');
|
return view('/includes/login/forgetemail');
|
||||||
});
|
});
|
||||||
// Route::get('/portalhome', function () {
|
|
||||||
// $auth_user = Auth::user();
|
|
||||||
|
|
||||||
// $harga_emas = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/harga_emas/')->json();
|
|
||||||
|
|
||||||
// $hargaemasterdahulu = array();
|
|
||||||
|
|
||||||
// foreach($harga_emas as $index=>$harga)
|
|
||||||
// {
|
|
||||||
// $hargaemassandaran = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/harga_emas/rekod/sandaran',['karat' => $harga['karat']])->json();
|
|
||||||
|
|
||||||
// $percentnaik = (floatval($harga['harga']) - floatval($hargaemassandaran[1]['harga'])) / ($hargaemassandaran[1]['harga']) * 100;
|
|
||||||
|
|
||||||
// array_push($hargaemasterdahulu,['karat' => $harga['karat'],'hargasemasa' => $harga['harga'], 'hargadahulu' => $hargaemassandaran[1]['harga'],'percent' => $percentnaik]);
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
// $CustomerInfo = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/portal/customer/info',['ic' => $auth_user['icno']])->json();
|
|
||||||
|
|
||||||
// $total = 0.00;
|
|
||||||
// $sixmonths = 0;
|
|
||||||
// $bilangan = 0;
|
|
||||||
// foreach($CustomerInfo['gadai'] as $index=>$gadai)
|
|
||||||
// {
|
|
||||||
// $bilangan++;
|
|
||||||
// $total += $gadai['pinjaman'];
|
|
||||||
|
|
||||||
// if($gadai['tempoh'] >= 6)
|
|
||||||
// {
|
|
||||||
// $sixmonths++;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// $bilanganlelong = 0;
|
|
||||||
// foreach($CustomerInfo['lelong'] as $index1=>$lelong)
|
|
||||||
// {
|
|
||||||
// $bilanganlelong += 1;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// $arraysag = [];
|
|
||||||
|
|
||||||
// $belum_tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $auth_user['icno'] . '/gadai/' . 'belum_tebus')->json();
|
|
||||||
|
|
||||||
// if(is_array($belum_tebus))
|
|
||||||
// {
|
|
||||||
// if(sizeof($belum_tebus) > 0)
|
|
||||||
// {
|
|
||||||
// foreach($belum_tebus as $index=>$bt)
|
|
||||||
// {
|
|
||||||
// foreach($bt as $index1=>$bet)
|
|
||||||
// {
|
|
||||||
// array_push($arraysag,$bet);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// $belum_tebus = $arraysag;
|
|
||||||
// $api_url = config('api.url');
|
|
||||||
|
|
||||||
|
|
||||||
// return view('includes.home',compact('api_url','hargaemasterdahulu','bilangan','sixmonths','total','bilanganlelong','belumtebus'));
|
|
||||||
// });
|
|
||||||
Route::get('/portalprofile', function () {
|
Route::get('/portalprofile', function () {
|
||||||
return view('/includes/profile');
|
return view('/includes/profile');
|
||||||
});
|
});
|
||||||
@@ -120,78 +55,11 @@ Route::get('/bayarsag', function () {
|
|||||||
Route::get('logs', [\Rap2hpoutre\LaravelLogViewer\LogViewerController::class, 'index']);
|
Route::get('logs', [\Rap2hpoutre\LaravelLogViewer\LogViewerController::class, 'index']);
|
||||||
|
|
||||||
|
|
||||||
// Route::get('/', function () {
|
|
||||||
// // return view('dashboard');
|
|
||||||
// $auth_user = Auth::user();
|
|
||||||
|
|
||||||
// $harga_emas = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/harga_emas/')->json();
|
|
||||||
|
|
||||||
// $hargaemasterdahulu = array();
|
|
||||||
|
|
||||||
// foreach($harga_emas as $index=>$harga)
|
|
||||||
// {
|
|
||||||
// $hargaemassandaran = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/harga_emas/rekod/sandaran',['karat' => $harga['karat']])->json();
|
|
||||||
|
|
||||||
// $percentnaik = (floatval($harga['harga']) - floatval($hargaemassandaran[1]['harga'])) / ($hargaemassandaran[1]['harga']) * 100;
|
|
||||||
|
|
||||||
// array_push($hargaemasterdahulu,['karat' => $harga['karat'],'hargasemasa' => $harga['harga'], 'hargadahulu' => $hargaemassandaran[1]['harga'],'percent' => $percentnaik]);
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
// $CustomerInfo = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/portal/customer/info',['ic' => $auth_user['icno']])->json();
|
|
||||||
|
|
||||||
// $total = 0.00;
|
|
||||||
// $sixmonths = 0;
|
|
||||||
// $bilangan = 0;
|
|
||||||
// foreach($CustomerInfo['gadai'] as $index=>$gadai)
|
|
||||||
// {
|
|
||||||
// $bilangan++;
|
|
||||||
// $total += $gadai['pinjaman'];
|
|
||||||
|
|
||||||
// if($gadai['tempoh'] >= 6)
|
|
||||||
// {
|
|
||||||
// $sixmonths++;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// $bilanganlelong = 0;
|
|
||||||
// foreach($CustomerInfo['lelong'] as $index1=>$lelong)
|
|
||||||
// {
|
|
||||||
// $bilanganlelong += 1;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// $arraysag = [];
|
|
||||||
// $belum_tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $auth_user['icno'] . '/gadai/' . 'belum_tebus')->json();
|
|
||||||
|
|
||||||
// if(is_array($belum_tebus))
|
|
||||||
// {
|
|
||||||
// if(sizeof($belum_tebus) > 0)
|
|
||||||
// {
|
|
||||||
// foreach($belum_tebus as $index=>$bt)
|
|
||||||
// {
|
|
||||||
// foreach($bt as $index1=>$bet)
|
|
||||||
// {
|
|
||||||
// array_push($arraysag,$bet);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// $belum_tebus = $arraysag;
|
|
||||||
|
|
||||||
// $api_url = config('api.url');
|
|
||||||
|
|
||||||
// return view('includes.home',compact('api_url','hargaemasterdahulu','bilangan','sixmonths','total','bilanganlelong','belum_tebus'));
|
|
||||||
// })->middleware(['auth','verified']);
|
|
||||||
|
|
||||||
// Route::get('/home', 'HomeController@index');
|
|
||||||
|
|
||||||
Route::get('/', [App\Http\Controllers\HomeController::class, 'buffer'])->name('buffer');
|
Route::get('/', [App\Http\Controllers\HomeController::class, 'buffer'])->name('buffer');
|
||||||
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
|
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
|
||||||
|
|
||||||
Auth::routes(['verify' => true]);
|
Auth::routes(['verify' => true]);
|
||||||
|
|
||||||
// Route::get('/home', 'App\Http\Controllers\HomeController@index')->name('home');
|
|
||||||
|
|
||||||
Route::group(['middleware' => 'auth'], function () {
|
Route::group(['middleware' => 'auth'], function () {
|
||||||
Route::resource('user', 'App\Http\Controllers\UserController', ['except' => ['show']]);
|
Route::resource('user', 'App\Http\Controllers\UserController', ['except' => ['show']]);
|
||||||
@@ -252,19 +120,15 @@ Route::group(['middleware' => 'auth','verified'], function () {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('send-mail', function () {
|
|
||||||
|
|
||||||
$details = [
|
|
||||||
'title' => 'Mail from ItSolutionStuff.com',
|
|
||||||
'body' => 'This is for testing email using smtp'
|
|
||||||
];
|
|
||||||
|
|
||||||
\Mail::to('your_receiver_email@gmail.com')->send(new \App\Mail\BayaranMail($details));
|
|
||||||
|
|
||||||
dd("Email is Sent.");
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::get('/requestic', 'App\Http\Controllers\TacController@requestKadPengenalan')->name('requestic');
|
Route::get('/requestic', 'App\Http\Controllers\TacController@requestKadPengenalan')->name('requestic');
|
||||||
Route::get('/requesticfe', 'App\Http\Controllers\TacController@requestKadPengenalanfe')->name('requesticfe');
|
Route::get('/requesticfe', 'App\Http\Controllers\TacController@requestKadPengenalanfe')->name('requesticfe');
|
||||||
Route::get('/requesttac', 'App\Http\Controllers\TacController@TACrequest')->name('requesttac');
|
Route::get('/requesttac', 'App\Http\Controllers\TacController@TACrequest')->name('requesttac');
|
||||||
Route::get('/requesttacfe', 'App\Http\Controllers\TacController@TACrequestfe')->name('requesttacfe');
|
Route::get('/requesttacfe', 'App\Http\Controllers\TacController@TACrequestfe')->name('requesttacfe');
|
||||||
|
|
||||||
|
|
||||||
|
Route::get('download/manualpengguna',['as'=>'miscellaneous.manualpengguna', function(){
|
||||||
|
if (Storage::disk('miscellaneous')->exists('Manual_Pengguna.pdf')) {
|
||||||
|
return Storage::disk('miscellaneous')->download('Manual_Pengguna.pdf');
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}]);
|
||||||
Binary file not shown.
Reference in New Issue
Block a user