fix skit2

This commit is contained in:
hafifierahman
2022-03-21 16:38:41 +08:00
parent f78de2340b
commit 80f4636a83
10 changed files with 288 additions and 6 deletions
+18 -2
View File
@@ -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'));
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

@@ -44,19 +44,30 @@
<div class="row">
<div class="col-md-12">
<table class="table table-striped table-hover" id="permohonantable">
<thead class="thead-dark">
<thead class="thead-dark text-center">
<tr>
<th>Bil</th>
<th>No Permohonan</th>
<th>Tarikh Mohon</th>
<th>Jumlah Mohon (RM)</th>
<th>Bayaran Balik (RM)</th>
<th>Status</th>
<th>Jenis Permohonan</th>
<th>Act</th>
</tr>
</thead>
<tbody>
@foreach($permohonan as $mohon)
<tr class="text-center">
<td>{{ $loop->iteration }}</td>
<td>{{ $mohon['nopermohonan'] }}</td>
<td>{{ $mohon['tarikh_permohonan'] }}</td>
<td>{{ number_format($mohon['amaun_mohon'],2) }}</td>
<td>{{ $mohon['jenismohon'] }}</td>
<td>
<a href="{{ route('permohonan.status', ['mohonid' => $mohon['mohonid']]) }}" class="btn btn-info"><i class="fas fa-eye"></i></a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
+254
View File
@@ -0,0 +1,254 @@
@extends('layouts.app')
<style>
.card {
z-index: 0;
background-color: #ECEFF1;
padding-bottom: 20px;
margin-top: 90px;
margin-bottom: 90px;
border-radius: 10px
}
.top {
padding-top: 40px;
padding-left: 13% !important;
padding-right: 13% !important
}
#progressbar {
margin-bottom: 30px;
overflow: hidden;
color: #455A64;
padding-left: 0px;
margin-top: 30px;
}
#progressbar li {
list-style-type: none;
font-size: 13px;
width: 17%;
float: left;
position: relative;
font-weight: 400;
z-index: 1;
}
#progressbar .step0:before {
/* font-family: FontAwesome; */
content: '\f057';
font-family: "Font Awesome 5 Free";
color: #fff;
}
#progressbar li:before {
width: 40px;
height: 40px;
line-height: 45px;
display: block;
font-size: 20px;
background: #C5CAE9;
border-radius: 50%;
margin: auto;
padding: 0px;
}
#progressbar li:after {
content: '';
width: 100%;
height: 12px;
background: #c5cae9e8;
position: absolute;
left: 0;
top: 16px;
z-index: -1;
}
#progressbar li:last-child:after {
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
position: absolute;
/* left: -50%; */
width: 50%;
}
/* #progressbar li:nth-child(2):after,
#progressbar li:nth-child(3):after,
#progressbar li:nth-child(4):after {
left: -50%
} */
#progressbar li:first-child:after {
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
position: absolute;
left: 50%;
}
#progressbar li:last-child:after {
border-top-right-radius: 10px;
border-bottom-right-radius: 10px
}
#progressbar li:first-child:after {
border-top-left-radius: 10px;
border-bottom-left-radius: 10px
}
#progressbar li.active:before,
#progressbar li.active:after {
background: #e67e22
}
#progressbar li.active:before {
/* font-family: FontAwesome; */
/* content: "\f095"; */
content: '\f058';
font-family: "Font Awesome 5 Free";
}
.icon {
width: 60px;
height: 60px;
/* margin-right: 15px */
}
.icon-content {
padding-bottom: 20px
}
@media screen and (max-width: 992px) {
.icon-content {
width: 50%
}
}
</style>
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
<nav aria-label="breadcrumb">
<ol class="breadcrumb pb-3">
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
<li class="breadcrumb-item"><a href="{{ route('permohonan.index') }}">Permohonan</a></li>
<li class="breadcrumb-item active" aria-current="page">Status</li>
</ol>
</nav>
<div class="card-body mx-auto col-12">
<div class="row d-flex justify-content-between px-3 top">
<div class="d-flex">
<h5>NO PERMOHONAN : <span class="text-primary font-weight-bold">{{ $permohonan['nopermohonan'] }}</span></h5>
</div>
</div>
<!-- Add class 'active' to progress -->
<div class="row d-flex justify-center">
<div class="col-12">
<ul id="progressbar" class="text-center flex">
<li class="{{ ($permohonan[0]) ? 'active' : '' }} step0 col-2"></li>
<li class="{{ ($permohonan[1]) ? 'active' : '' }} step0 col-2"></li>
<li class="{{ ($permohonan[2]) ? 'active' : '' }} step0 col-2"></li>
<li class="{{ ($permohonan[3]) ? 'active' : '' }} step0 col-2"></li>
<li class="{{ ($permohonan[4]) ? 'active' : '' }} step0 col-2"></li>
<li class="{{ ($permohonan[5]) ? 'active' : '' }} step0 col-2"></li>
</ul>
</div>
</div>
<div class="d-flex col-12">
<div class="text-center icon-content col-2"> <img class="icon mx-auto" src="{{ asset('img/proposal.png') }}">
<div class="flex flex-column">
<p class="font-weight-bold text-center">PPC / PC<br>Mohon Wang</p>
</div>
</div>
<div class="justify-center text-center icon-content col-2"> <img class="icon mx-auto" src="{{ asset('img/operasicek.png') }}">
<div class="flex flex-column">
<p class="font-weight-bold text-center">Operasi <br> Mengesahkan <br> Permohonan</p>
</div>
</div>
<div class="flex flex-col text-center icon-content col-2"> <img class="icon mx-auto" src="{{ asset('img/operasicek.png') }}">
<div class="d-flex flex-column">
<p class="font-weight-bold text-center">Akaun <br> Mengesahkan<br> Permohonan</p>
</div>
</div>
<div class="flex flex-col text-center icon-content col-2"> <img class="icon mx-auto" src="{{ asset('img/leaderapproval.png') }}">
<div class="d-flex flex-column">
<p class="font-weight-bold text-center">PB <br> Mengesahkan <br> Permohonan</p>
</div>
</div>
<div class="flex flex-col text-center icon-content col-2"> <img class="icon mx-auto" src="{{ asset('img/chequetick.png') }}">
<div class="d-flex flex-column">
<p class="font-weight-bold text-center">Akaun <br> Menghantar <br> Deposit</p>
</div>
</div>
<div class="flex flex-col text-center icon-content col-2"> <img class="icon mx-auto" src="{{ asset('img/money.png') }}">
<div class="d-flex flex-column">
<p class="font-weight-bold text-center">PPC / PC <br> Terima Wang</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
</script>
@endsection
+1
View File
@@ -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']);