diff --git a/app/Http/Controllers/KhazanahController.php b/app/Http/Controllers/KhazanahController.php index f69e9b6..2549bea 100644 --- a/app/Http/Controllers/KhazanahController.php +++ b/app/Http/Controllers/KhazanahController.php @@ -3508,8 +3508,10 @@ class KhazanahController extends Controller //Dashboardall $dashboard=Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url').'/api/Dashboard_all/'.$auth_user['cawangan'])->json(); - // dd($dashboard); - return view('khazanah.permohonanwang', compact('cawangan_info','api_url','getVault','tarikhsemasa','dashboard')); + $permohonan = Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url').'/admin/permohonan/get/'.$auth_user['cawangan'])->json(); + + + return view('khazanah.permohonanwang', compact('cawangan_info','api_url','getVault','tarikhsemasa','dashboard','permohonan')); } public function SimpanPermohonan(Request $request){ @@ -3534,5 +3536,19 @@ class KhazanahController extends Controller return redirect()->back()->with('error', 'Permohonan Tidak Berjaya!'); } } + + public function StatusPermohonan($mohonid){ + + $auth_user = Auth::user(); + $api_url = config('api.url'); + + $cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); + + $permohonan = Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url').'/admin/permohonan/get/'.$auth_user['cawangan'] .'/' . $mohonid)->json(); + + + return view('khazanah.status', compact('cawangan_info','api_url','permohonan')); + + } } diff --git a/public/img/approval.jpg b/public/img/approval.jpg new file mode 100644 index 0000000..c924cc6 Binary files /dev/null and b/public/img/approval.jpg differ diff --git a/public/img/chequetick.png b/public/img/chequetick.png new file mode 100644 index 0000000..8655ac0 Binary files /dev/null and b/public/img/chequetick.png differ diff --git a/public/img/leaderapproval.png b/public/img/leaderapproval.png new file mode 100644 index 0000000..4325529 Binary files /dev/null and b/public/img/leaderapproval.png differ diff --git a/public/img/money.png b/public/img/money.png new file mode 100644 index 0000000..b9422d0 Binary files /dev/null and b/public/img/money.png differ diff --git a/public/img/operasicek.png b/public/img/operasicek.png new file mode 100644 index 0000000..e3450d5 Binary files /dev/null and b/public/img/operasicek.png differ diff --git a/public/img/proposal.png b/public/img/proposal.png new file mode 100644 index 0000000..7ba83aa Binary files /dev/null and b/public/img/proposal.png differ diff --git a/resources/views/khazanah/permohonanwang.blade.php b/resources/views/khazanah/permohonanwang.blade.php index cbd5f42..882b7ed 100644 --- a/resources/views/khazanah/permohonanwang.blade.php +++ b/resources/views/khazanah/permohonanwang.blade.php @@ -44,19 +44,30 @@
- + - - - + + @foreach($permohonan as $mohon) + + + + + + + + + @endforeach +
Bil No Permohonan Tarikh Mohon Jumlah Mohon (RM)Bayaran Balik (RM)Status Jenis Permohonan Act
{{ $loop->iteration }}{{ $mohon['nopermohonan'] }}{{ $mohon['tarikh_permohonan'] }}{{ number_format($mohon['amaun_mohon'],2) }}{{ $mohon['jenismohon'] }} + +
diff --git a/resources/views/khazanah/status.blade.php b/resources/views/khazanah/status.blade.php new file mode 100644 index 0000000..d7ed307 --- /dev/null +++ b/resources/views/khazanah/status.blade.php @@ -0,0 +1,254 @@ +@extends('layouts.app') + +@section('content') + +
+
+
+
+ + + +
+ + +
+ +
+ +
NO PERMOHONAN : {{ $permohonan['nopermohonan'] }}
+ +
+ +
+ + + +
+ +
+ +
    + +
  • + +
  • + +
  • + +
  • + +
  • + +
  • + +
+ +
+ +
+ + + +
+ +
+ +
+ +

PPC / PC
Mohon Wang

+ +
+ +
+ +
+ +
+ +

Operasi
Mengesahkan
Permohonan

+ +
+ +
+ +
+ +
+ +

Akaun
Mengesahkan
Permohonan

+ +
+ +
+ +
+ +
+ +

PB
Mengesahkan
Permohonan

+ +
+ +
+ +
+ +
+ +

Akaun
Menghantar
Deposit

+ +
+ +
+ +
+ +
+ +

PPC / PC
Terima Wang

+ +
+ +
+ +
+ + +
+
+
+
+
+ +@endsection diff --git a/routes/web.php b/routes/web.php index 2aea6cc..0f51224 100644 --- a/routes/web.php +++ b/routes/web.php @@ -139,6 +139,7 @@ Route::get('/penebusankhazanah/{norujukan}',['as'=>'penebusan.khazanah','uses' = Route::get('/lelongankhazanah/{norujukan}',['as'=>'lelongan.khazanah','uses' => 'KhazanahController@lelongan'])->middleware('auth','khazanah'); Route::get('/permohonan',['as'=>'permohonan.index','uses' => 'KhazanahController@PaparanPermohonan'])->middleware('auth','khazanah'); Route::post('/permohonan/simpan',['as'=>'permohonan.simpan','uses' => 'KhazanahController@SimpanPermohonan'])->middleware('auth','khazanah'); +Route::get('/permohonan/status/{mohonid}',['as'=>'permohonan.status','uses' => 'KhazanahController@StatusPermohonan'])->middleware('auth','khazanah'); Route::post('/kakitangan/harian',['as'=>'kakitangan.harian','uses'=>'KakitanganController@kakitanganHarian'])->middleware('auth','khazanah'); Route::get('/lelong',['as'=>'lelong','uses'=>'LelongController@lelong']);