diff --git a/app/CawanganAR.php b/app/CawanganAR.php new file mode 100644 index 0000000..7521d5e --- /dev/null +++ b/app/CawanganAR.php @@ -0,0 +1,18 @@ +cawangan = $cawangan; + $this->status = $status; + $this->bakipetibesi = $bakipetibesi; + } + + public function broadcastOn() + { + return ['notice-notify']; + } + + public function broadcastAs() + { + return 'trigger-notify'; + } +} \ No newline at end of file diff --git a/app/Http/Controllers/KhazanahController.php b/app/Http/Controllers/KhazanahController.php index 64157ac..2ec148f 100644 --- a/app/Http/Controllers/KhazanahController.php +++ b/app/Http/Controllers/KhazanahController.php @@ -10,9 +10,11 @@ use App\Events\PendahuluanSerahan; use App\Events\NotifikasiKelulusan; use App\Events\NotifikasiUbahHapus; use App\Events\NotifikasiAGH; +use App\Events\NotifikasiPetiBesi; use App\User; use App\Cawangan; +use App\CawanganAR; use App\Lejeram; use Illuminate\Http\Request; @@ -1585,7 +1587,7 @@ class KhazanahController extends Controller } public function cetaklaporanLelongan(Request $request){ - // dd($request); + // dd($request->all()); $api_url = config('api.url'); $auth_user = Auth::user(); $current = Carbon::now(); @@ -1594,7 +1596,15 @@ class KhazanahController extends Controller if($request->jeniscetakan === 'cetak') { - $lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'],['batchno' => $request->batchno])->json(); + if($request->fasa == 1) + { + $lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'] . '/' . 'fasa1',['batchno' => $request->batchno])->json(); + }else{ + $lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'] . '/' . 'fasa2',['batchno' => $request->batchno])->json(); + } + + // $lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'],['batchno' => $request->batchno])->json(); + $cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json(); $cawangan_detail=$cawangan[0]; @@ -1603,7 +1613,12 @@ class KhazanahController extends Controller }else if($request->jeniscetakan === 'excel') { - $lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'],['batchno' => $request->batchno])->json(); + if($request->fasa == 1) + { + $lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'] . '/' . 'fasa1',['batchno' => $request->batchno])->json(); + }else{ + $lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'] . '/' . 'fasa2',['batchno' => $request->batchno])->json(); + } $cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json(); $cawangan_detail=$cawangan[0]; @@ -1611,7 +1626,14 @@ class KhazanahController extends Controller }else if($request->jeniscetakan === 'pdf'){ - $lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'],['batchno' => $request->batchno])->json(); + if($request->fasa == 1) + { + $lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'] . '/' . 'fasa1',['batchno' => $request->batchno])->json(); + $fasa = 'fasa1'; + }else{ + $lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/laporan/'. $auth_user['cawangan'] . '/' . 'fasa2',['batchno' => $request->batchno])->json(); + $fasa = 'fasa2'; + } $notislelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/details/notislelong/'. $auth_user['cawangan'])->json(); $cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); $cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json(); @@ -1619,8 +1641,8 @@ class KhazanahController extends Controller // return view('print.notislelong', compact('cawangan_info','notislelong','api_url','cawangan_detail','lelong','tarikh_cetak')); - $pdf=PDF::loadView('print.notislelong', compact('cawangan_info','notislelong','api_url','cawangan_detail','lelong','tarikh_cetak'))->setPaper('A4','potrait'); - return $pdf->download('notislelong_'.$tarikh_cetak.'.pdf'); + $pdf=PDF::loadView('print.notislelong', compact('cawangan_info','notislelong','api_url','cawangan_detail','lelong','fasa','tarikh_cetak'))->setPaper('A4','potrait'); + return $pdf->download('notislelong_'.$tarikh_cetak.'_'.$fasa.'.pdf'); // return $pdf->stream('notislelong_'.$tarikh_cetak.'.pdf'); // return view('print.notislelong', compact('cawangan_info','api_url','cawangan_detail','lelong','tarikh_cetak')); @@ -3481,5 +3503,80 @@ class KhazanahController extends Controller return view('print.notislelong', compact('cawangan_info','api_url','cawangan_detail')); } + public function PaparanPermohonan() + { + $auth_user = Auth::user(); + $api_url = config('api.url'); + $current = Carbon::now(); + $tarikhsemasa = $current->toDateString(); + + + $cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); + + $getVault = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/TunaiDiTangan/' . $auth_user['cawangan'],['tarikh' => $tarikhsemasa])->json(); + + + + //Dashboardall + $dashboard=Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url').'/api/Dashboard_all/'.$auth_user['cawangan'])->json(); + + $permohonan = Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url').'/admin/permohonan/get/'.$auth_user['cawangan'])->json(); + $bank = Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url').'/api/bank')->json(); + + return view('khazanah.permohonanwang', compact('bank','cawangan_info','api_url','getVault','tarikhsemasa','dashboard','permohonan')); + } + + public function RekodPermohonan() + { + $auth_user = Auth::user(); + $api_url = config('api.url'); + + $current = Carbon::now(); + + $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/rekod/'.$auth_user['cawangan'])->json(); + + return view('khazanah.rekodpermohonan', compact('cawangan_info','api_url','permohonan')); + } + + + public function SimpanPermohonan(Request $request){ + + // dd($request->all()); + $auth_user = Auth::user(); + $api_url = config('api.url'); + + $permohonan = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/admin/permohonan/add/'. $auth_user['cawangan'],[ + 'jenismohon' => $request->radwang, + 'jumlahmohon' => $request->jumlahmohon, + 'tarikhmohon' => $request->tarikhmohon, + 'bakipetibesi' => $request->bakipetibesi, + 'outstanding' => $request->outstanding, + 'namapemohon' => $auth_user['name'] + ])->json(); + + if($permohonan == true) + { + return redirect()->back()->with('message', 'Permohonan Berjaya Disimpan!'); + }else{ + 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(); + + $getdescription = Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url').'/admin/permohonan/description/' . $mohonid)->json(); + + return view('khazanah.status', compact('cawangan_info','api_url','permohonan','getdescription')); + + } + } diff --git a/app/Http/Controllers/LelongController.php b/app/Http/Controllers/LelongController.php index c988d21..d3cc344 100644 --- a/app/Http/Controllers/LelongController.php +++ b/app/Http/Controllers/LelongController.php @@ -41,9 +41,10 @@ class LelongController extends Controller $auth_user = Auth::user(); $api_url = config('api.url'); $cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json(); - $senaraibatch = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/aktif/'. $auth_user['cawangan'])->json(); + $senaraibatchfasa1 = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/aktif/'. $auth_user['cawangan'] . '/' . 'fasa1')->json(); + $senaraibatchfasa2 = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/senaraibatch/aktif/'. $auth_user['cawangan'] . '/' . 'fasa2')->json(); - return view('khazanah.lelong',compact('cawangan_info','api_url','senaraibatch')); + return view('khazanah.lelong',compact('cawangan_info','api_url','senaraibatchfasa1','senaraibatchfasa2')); } public function resittuntutbaki($norujukan){ 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/batal.png b/public/img/batal.png new file mode 100644 index 0000000..410ac14 Binary files /dev/null and b/public/img/batal.png 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/homepage/khazanah/home.blade.php b/resources/views/homepage/khazanah/home.blade.php index e3a2147..01d2769 100644 --- a/resources/views/homepage/khazanah/home.blade.php +++ b/resources/views/homepage/khazanah/home.blade.php @@ -155,6 +155,7 @@
+
@@ -177,6 +178,9 @@
+
@@ -495,7 +499,7 @@ function simpanfunc() { - console.log('simpan'); + // console.log('simpan'); //Swal.fire({ // title: 'Adakah anda pasti untuk mengemaskini denominasi?', // text: "Sila pastikan denominasi anda betul!", @@ -749,6 +753,5 @@ } - @endsection diff --git a/resources/views/khazanah/bayaranbalik.blade.php b/resources/views/khazanah/bayaranbalik.blade.php new file mode 100644 index 0000000..87f2ca6 --- /dev/null +++ b/resources/views/khazanah/bayaranbalik.blade.php @@ -0,0 +1,28 @@ +@extends('layouts.app') + +@section('content') +
+ +
+@endsection diff --git a/resources/views/khazanah/laporan/index.blade.php b/resources/views/khazanah/laporan/index.blade.php index fcd1baa..de9d35f 100644 --- a/resources/views/khazanah/laporan/index.blade.php +++ b/resources/views/khazanah/laporan/index.blade.php @@ -26,8 +26,8 @@
Pelanggan Baru
-
- Ringkasan Terkumpul +
+ {{-- Ringkasan Terkumpul --}}
Aging Bulan diff --git a/resources/views/khazanah/lelong.blade.php b/resources/views/khazanah/lelong.blade.php index 0d88dda..34f7d14 100644 --- a/resources/views/khazanah/lelong.blade.php +++ b/resources/views/khazanah/lelong.blade.php @@ -22,31 +22,47 @@
- @if(sizeof($senaraibatch) !== 0) + @if(sizeof($senaraibatchfasa1) !== 0 || sizeof($senaraibatchfasa2) !== 0) + - @foreach($senaraibatch as $index=>$sb) + @foreach($senaraibatchfasa1 as $index=>$sb) + @endforeach + @foreach($senaraibatchfasa2 as $index=>$sb) + + + + + + + + + @endforeach
No. Batch No.Fasa Bilangan Aktif Tarikh Lelong Action
{{ $loop->iteration }} {{ $sb['batchno'] }}Fasa 1 {{ $sb['total'] }} {{ $sb['t_lelong'] }} - Cetak - Excel - PDF + Cetak + Excel + PDF
{{ $loop->iteration }}{{ $sb['batchno'] }}Fasa 2{{ $sb['total'] }}{{ $sb['t_lelong'] }} + Cetak + Excel + PDF +
@else diff --git a/resources/views/khazanah/permohonanwang.blade.php b/resources/views/khazanah/permohonanwang.blade.php new file mode 100644 index 0000000..573d5c0 --- /dev/null +++ b/resources/views/khazanah/permohonanwang.blade.php @@ -0,0 +1,266 @@ +@extends('layouts.app') +@section('content') +@include('modal.permohonanwang') + +
+
+
+
+ + + +
+ + @if(session()->has('message')) +
+ {{ session()->get('message') }} +
+ @endif + + @if(session()->has('error')) +
+ {{ session()->get('error') }} +
+ @endif + +
+
+
Peti Besi: RM {{ number_format($getVault,2) }}
+
+
+ +
+
Senarai Permohonan Masih Aktif
+
+ + Rekod Permohonan +
+
+
+
+ + + + + + + + + + + + + + @foreach($permohonan as $mohon) + + + + + + + + + + @endforeach + +
BilNo PermohonanTarikh MohonJumlah Mohon (RM)SemakJenis PermohonanTindakan
{{ $loop->iteration }}{{ $mohon['nopermohonan'] }}{{ $mohon['tarikh_permohonan'] }}{{ number_format($mohon['amaun_mohon'],2) }} + + {{ $mohon['jenismohon'] }} + @php + if($mohon['tagdeposit'] === 1) + { + echo ''; + }else if(($mohon['tagcit'] === 0 && $mohon['jenismohon'] === 'bayaranbalik')) + { + echo ''; + } + else{ + echo 'DALAM PROSES'; + } + @endphp + +
+
+
+ +
+
+
+
+
+ +@endsection diff --git a/resources/views/khazanah/rekodpermohonan.blade.php b/resources/views/khazanah/rekodpermohonan.blade.php new file mode 100644 index 0000000..a33a894 --- /dev/null +++ b/resources/views/khazanah/rekodpermohonan.blade.php @@ -0,0 +1,87 @@ +@extends('layouts.app') +@section('content') + +
+
+
+
+ + + +
+ + @if(session()->has('message')) +
+ {{ session()->get('message') }} +
+ @endif + + @if(session()->has('error')) +
+ {{ session()->get('error') }} +
+ @endif + +
+
Senarai Rekod Permohonan
+
+
+
+ + + + + + + + + + + + + + + @foreach($permohonan as $mohon) + + + + + + + + + + + + @endforeach + +
BilNo PermohonanTarikh MohonJumlah Mohon (RM)Jumlah Lulus (RM)SemakJenis PermohonanStatus
{{ $loop->iteration }}{{ $mohon['nopermohonan'] }}{{ $mohon['tarikh_permohonan'] }}{{ number_format($mohon['amaun_mohon'],2) }}{{ number_format($mohon['jumlah_diluluskan'],2) }} + + {{ $mohon['jenismohon'] }}@php + if($mohon['tagterima'] === 1) + echo 'BERJAYA'; + else echo 'BATAL'; @endphp
+
+
+ +
+
+
+
+
+ +@endsection diff --git a/resources/views/khazanah/status.blade.php b/resources/views/khazanah/status.blade.php new file mode 100644 index 0000000..3ce88dd --- /dev/null +++ b/resources/views/khazanah/status.blade.php @@ -0,0 +1,323 @@ +@extends('layouts.app') + +@section('content') + +
+
+
+
+ + + +
+ {{-- {{ dd($permohonan) }} --}} + +
+ +
+ +
NO PERMOHONAN : {{ $permohonan['nopermohonan'] }}
+
JUMLAH MOHON : {{ 'RM ' . number_format($permohonan['amaun_mohon'],2) }}
+ +
+ +
+ +
@php + if($permohonan['jenismohon'] == 'permohonanwang') + echo 'Permohonan Wang '; + else + echo 'Bayaran Balik '; + @endphp
+ +
+ +
+ + + + + + @if($permohonan['jenismohon'] == 'permohonanwang') +
+
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
+
+
+ @else +
+
+
    +
  • +
  • +
  • +
  • +
+
+
+ + @endif + + + @if($permohonan['jenismohon'] == 'permohonanwang') + +
+
+
+

Permohonan
Cawangan

+
+
+ +
+
+

Pengesahan
Operasi

+ {!! ($permohonan['tagoperasi'] === 2) ? '' : '' !!} +
+
+ +
+
+

Akaun

+ {!! ($permohonan['tagakaun'] === 2) ? '' : '' !!} +
+
+ +
+
+

Kelulusan
Pengurus Besar

+ {!! ($permohonan['tagpb'] === 2) ? '' : '' !!} +
+
+ +
+
+

Akaun
Deposit Ke Bank
Selesai

+ {!! ($permohonan['tagdeposit'] === 2) ? '' : '' !!} +
+
+ +
+
+

Cawangan
Terima Wang

+
+
+
+ @else +
+
+
+

Permohonan
Cawangan

+
+
+ +
+
+

CIT Selesai Deposit ke Bank

+
+
+ +
+
+

Pengesahan
Operasi

+
+
+ +
+
+

Akaun

+
+
+
+ + @endif + + + + + + + + + + + + @foreach($getdescription as $index=>$desc) + + + + + + + @endforeach + +
#TarikhMasaPenerangan
{{ $loop->iteration }}{{ $desc[0]['tarikh'] }}{{ $desc[0]['masa'] }}@php + + switch($desc['statusid']){ + case 1: echo $desc['description'] . '
' . 'NAMA PEMOHON :' . $desc[0]['nama_pemohon']; + break; + case 2: echo $desc['description'] . '
' . 'NAMA OPERASI :' . $desc[0]['nama_operasi']; + break; + case 3: echo $desc['description'] . '
' . 'NAMA AKAUN :' . $desc[0]['nama_akaun']; + break; + case 4: echo $desc['description'] . '
' . 'JUMLAH DILULUSKAN :RM' . number_format($desc[0]['jumlah_diluluskan'],2); + break; + case 5: echo $desc['description'] . '
' . 'JENIS BANK :' . $desc[0]['jenisbank'] . '
' . 'NO RESIT :' . $desc[0]['noresit']; + break; + case 6: echo $desc['description'] . '
' . 'NAMA PENERIMA :' . $desc[0]['nama_penerima']; + break; + case 7: echo $desc['description']; + break; + case 8: echo $desc['description'] . '
' . 'JENIS BANK :' . $desc[0]['jenisbank']; + break; + } + + + + @endphp
+ + + +
+
+
+
+
+ +@endsection diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 4ef40a9..8ec1b39 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -74,7 +74,6 @@ flex-direction: column; align-items: flex-start !important; } - @@ -188,7 +187,6 @@ }); - $("#navbarDropdown").click(function(){ $('#bell').css("color", "grey"); }); @@ -313,12 +311,32 @@ - - + @if ($auth_user['roles'] == 'ppc' || $auth_user['roles'] == 'pc') + + @php + $current = Carbon\Carbon::now(); + $tarikhsemasa = $current->toDateString(); + + $cawangan = App\CawanganAR::where('kodcaw',$auth_user['cawangan'])->get()->toArray(); + $getVault = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/TunaiDiTangan/' . $auth_user['cawangan'],['tarikh' => $tarikhsemasa])->json(); + @endphp + @if(floatval($getVault) > $cawangan[0]['max']) + + @elseif(floatval($getVault) < $cawangan[0]['min']) + + @else + @endif + @endif +
@yield('content')
+ @yield('footer') diff --git a/resources/views/modal/permohonanwang.blade.php b/resources/views/modal/permohonanwang.blade.php new file mode 100644 index 0000000..72234b6 --- /dev/null +++ b/resources/views/modal/permohonanwang.blade.php @@ -0,0 +1,59 @@ + + diff --git a/resources/views/print/laporan_lelongan_excel.blade.php b/resources/views/print/laporan_lelongan_excel.blade.php index 2508ce4..11dc8ae 100644 --- a/resources/views/print/laporan_lelongan_excel.blade.php +++ b/resources/views/print/laporan_lelongan_excel.blade.php @@ -218,8 +218,8 @@ {{ $loop->iteration }} {{ $item['nama'] }} {{ $item['norujukan'] }} - @php $telefon = str_replace("-","",$item['telefon1']); echo substr($telefon,0,3) . '-' . substr($telefon,3); @endphp - @php $telefon = str_replace("-","",$item['telefon2']); echo substr($telefon,0,3) . '-' . substr($telefon,3); @endphp + @php $telefon = str_replace("-","",$item['telefon1']); echo ($telefon == null || $telefon == '') ? '' : '6' . substr($telefon,0,3) . substr($telefon,3); @endphp + @php $telefon = str_replace("-","",$item['telefon2']); echo ($telefon == null || $telefon == '') ? '' : '6' . substr($telefon,0,3) . substr($telefon,3); @endphp {{ $item['JBG'] }} {{ substr($item['IC'],0,6) . '-' .substr($item['IC'],6,2) . '-' . substr($item['IC'],8) }} {{ $item['Pembiayaan'] }} diff --git a/resources/views/print/notislelong.blade.php b/resources/views/print/notislelong.blade.php index f38a8e5..73a2e73 100644 --- a/resources/views/print/notislelong.blade.php +++ b/resources/views/print/notislelong.blade.php @@ -228,7 +228,12 @@ {{-- Customise Ayat pelelong--}} {{-- {!! nl2br(e($notislelong[0]['para2'])) !!} --}} - @php echo $notislelong[0]['para2']; @endphp + @php if($fasa == 'fasa1') + { + echo $notislelong[0]['para2']; + }else{ + echo $notislelong[0]['para3']; + } @endphp {{--

1. Tebus sepenuhnya

2. Tebus gadai semula

2. Bayar upah sepenuhnya dan tempoh akan dilanjutkan sehingga 12 bulan bagi tempoh gadaian.

--}} diff --git a/routes/web.php b/routes/web.php index 6461adf..395b8bd 100644 --- a/routes/web.php +++ b/routes/web.php @@ -137,7 +137,10 @@ Route::get('/khazanah/searchpelanggan',['as'=>'khazanah.searchpelanggan','uses'= Route::post('/khazanah/pendahuluanserahanHQ',['as'=>'khazanah.pendahuluanserahanHQ','uses'=>'KhazanahController@pendahuluanserahanHQ'])->middleware('auth','khazanah'); Route::get('/penebusankhazanah/{norujukan}',['as'=>'penebusan.khazanah','uses' => 'PenebusanController@PenebusanKhazanah'])->middleware('auth','khazanah'); 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::get('/permohonan/rekod',['as'=>'permohonan.rekod','uses' => 'KhazanahController@RekodPermohonan'])->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']);