Merge branch 'fixkaunter' into 'new-super'
fix excel lelongan See merge request online-sistem1/kaunter!199
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CawanganAR extends Model
|
||||
{
|
||||
protected $table = 'cawangan';
|
||||
|
||||
protected $fillable = [
|
||||
'details_caw',
|
||||
'kodcaw',
|
||||
'syarikat',
|
||||
'min',
|
||||
'max'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Broadcasting\InteractsWithSockets;
|
||||
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
||||
|
||||
class NotifikasiPetiBesi implements ShouldBroadcast
|
||||
{
|
||||
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||||
|
||||
public $cawangan,$status,$bakipetibesi;
|
||||
|
||||
public function __construct($cawangan,$status,$bakipetibesi)
|
||||
{
|
||||
$this->cawangan = $cawangan;
|
||||
$this->status = $status;
|
||||
$this->bakipetibesi = $bakipetibesi;
|
||||
}
|
||||
|
||||
public function broadcastOn()
|
||||
{
|
||||
return ['notice-notify'];
|
||||
}
|
||||
|
||||
public function broadcastAs()
|
||||
{
|
||||
return 'trigger-notify';
|
||||
}
|
||||
}
|
||||
@@ -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'));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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){
|
||||
|
||||
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 911 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
@@ -155,6 +155,7 @@
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<div class="row justify-content-center" style="margin-top:60px;">
|
||||
<div class="col-md-12">
|
||||
|
||||
@@ -177,6 +178,9 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="{{ url('unjuran') }}" class="btn btn-danger btn-lg btn-block mb-3">Unjuran</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="#" class="btn btn-danger btn-lg btn-block mb-3">Permohonan</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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 @@
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<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 active" aria-current="page">Khazanah</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body mx-auto">
|
||||
|
||||
<a href="{{ url('khazanahgadaian') }}" class="btn btn-info mb-4 ml-2 mr-2 btn-lg col-5">Gadai <span class="badge badge-light ">{{ count($gadai) }}</span></a>
|
||||
<a href="{{ url('khazanahtebus') }}" class="btn btn-info mb-4 ml-2 mr-2 btn-lg col-5">Tebus <span class="badge badge-light">{{ count($listserah) }}</span></a>
|
||||
|
||||
<a href="{{ url('pendahuluan') }}" class="btn btn-info ml-2 mr-2 btn-lg col-5">Pendahuluan <span class="badge badge-light">{{ $countmodal }}</span></a>
|
||||
<a href="{{ url('serahan') }}" class="btn btn-info btn-lg ml-2 mr-2 col-5">Serahan <span class="badge badge-light">{{ $countserahan }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -26,8 +26,8 @@
|
||||
<div class="row">
|
||||
<a href="{{ route('laporan.pelangganbaru') }}" class="btn btn-dark btn-lg btn-block mb-3">Pelanggan Baru</a>
|
||||
</div>
|
||||
<div class="row d-none">
|
||||
<a href="{{ route('laporan.ringkasanterkumpul') }}" class="btn btn-dark btn-lg btn-block mb-3">Ringkasan Terkumpul</a>
|
||||
<div class="row">
|
||||
{{-- <a href="{{ route('laporan.ringkasanterkumpul') }}" class="btn btn-dark btn-lg btn-block mb-3">Ringkasan Terkumpul</a> --}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="{{route('laporan.agingbulanan')}}" class="btn btn-dark btn-lg btn-block mb-3">Aging Bulan</a>
|
||||
|
||||
@@ -22,31 +22,47 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
@if(sizeof($senaraibatch) !== 0)
|
||||
@if(sizeof($senaraibatchfasa1) !== 0 || sizeof($senaraibatchfasa2) !== 0)
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead class="bg-dark">
|
||||
<tr>
|
||||
<th scope="col">No.</th>
|
||||
<th scope="col">Batch No.</th>
|
||||
<th scope="col">Fasa</th>
|
||||
<th scope="col">Bilangan Aktif</th>
|
||||
<th scope="col">Tarikh Lelong</th>
|
||||
<th scope="col">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($senaraibatch as $index=>$sb)
|
||||
@foreach($senaraibatchfasa1 as $index=>$sb)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $sb['batchno'] }}</td>
|
||||
<td>Fasa 1</td>
|
||||
<td class="text-danger font-weight-bold">{{ $sb['total'] }}</td>
|
||||
<td>{{ $sb['t_lelong'] }}</td>
|
||||
<td class="text-center">
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'cetak','batchno' => $sb['batchno']]) }}" class="btn btn-info text-white">Cetak</a>
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'excel','batchno' => $sb['batchno']]) }}" target="_blank" class="btn btn-success text-white">Excel</a>
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'pdf','batchno' => $sb['batchno']]) }}" target="_blank" class="btn btn-danger text-white">PDF</a>
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'cetak','batchno' => $sb['batchno'],'fasa' => 1]) }}" class="btn btn-info text-white">Cetak</a>
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'excel','batchno' => $sb['batchno'],'fasa' => 1]) }}" target="_blank" class="btn btn-success text-white">Excel</a>
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'pdf','batchno' => $sb['batchno'],'fasa' => 1]) }}" target="_blank" class="btn btn-danger text-white">PDF</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@foreach($senaraibatchfasa2 as $index=>$sb)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $sb['batchno'] }}</td>
|
||||
<td>Fasa 2</td>
|
||||
<td class="text-danger font-weight-bold">{{ $sb['total'] }}</td>
|
||||
<td>{{ $sb['t_lelong'] }}</td>
|
||||
<td class="text-center">
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'cetak','batchno' => $sb['batchno'],'fasa' => 2]) }}" class="btn btn-info text-white">Cetak</a>
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'excel','batchno' => $sb['batchno'],'fasa' => 2]) }}" target="_blank" class="btn btn-success text-white">Excel</a>
|
||||
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'pdf','batchno' => $sb['batchno'],'fasa' => 2]) }}" target="_blank" class="btn btn-danger text-white">PDF</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
|
||||
@@ -0,0 +1,266 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
@include('modal.permohonanwang')
|
||||
|
||||
<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 active" aria-current="page">Permohonan</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body mx-auto col-12">
|
||||
|
||||
@if(session()->has('message'))
|
||||
<div class="alert alert-success">
|
||||
{{ session()->get('message') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(session()->has('error'))
|
||||
<div class="alert alert-danger">
|
||||
{{ session()->get('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="mx-auto d-flex justify-content-center col-12">
|
||||
<div class="col-4">
|
||||
<div class="small-box bg-warning text-center"><div class="inner"><b>Peti Besi: <span>RM {{ number_format($getVault,2) }}</span></b></div></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-between mb-2">
|
||||
<h5 class="mt-2">Senarai Permohonan Masih Aktif</h5>
|
||||
<div>
|
||||
<button class="btn btn-info" data-toggle="modal" data-target="#PermohonanWang">Mohon</button>
|
||||
<a class="btn btn-info" href="{{ route('permohonan.rekod') }}">Rekod Permohonan</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-striped table-hover" id="permohonantable">
|
||||
<thead class="thead-dark text-center">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Permohonan</th>
|
||||
<th>Tarikh Mohon</th>
|
||||
<th>Jumlah Mohon (RM)</th>
|
||||
<th>Semak</th>
|
||||
<th>Jenis Permohonan</th>
|
||||
<th>Tindakan</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>
|
||||
<a href="{{ route('permohonan.status', ['mohonid' => $mohon['mohonid']]) }}" class="btn btn-info"><i class="fas fa-eye"></i></a>
|
||||
</td>
|
||||
<td>{{ $mohon['jenismohon'] }}</td>
|
||||
<td>
|
||||
@php
|
||||
if($mohon['tagdeposit'] === 1)
|
||||
{
|
||||
echo '<button data-mohonid="' . $mohon["mohonid"] . '" id="btnterima" class="btn btn-success"><i class="fas fa-check"></i></button>';
|
||||
}else if(($mohon['tagcit'] === 0 && $mohon['jenismohon'] === 'bayaranbalik'))
|
||||
{
|
||||
echo '<button data-mohonid="' . $mohon["mohonid"] . '" id="btncit" class="btn btn-secondary">CIT</button>';
|
||||
}
|
||||
else{
|
||||
echo '<span class="p-2 badge badge-info">DALAM PROSES</span>';
|
||||
}
|
||||
@endphp
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var tablemohon = $('#permohonantable').DataTable({
|
||||
"ordering": false
|
||||
});
|
||||
|
||||
var api_url = '{{ $api_url }}';
|
||||
|
||||
$('#PermohonanWang').on('hidden.bs.modal', function (e) {
|
||||
$(this)
|
||||
.find("input[name='jumlahmohon']")
|
||||
.val('')
|
||||
.end()
|
||||
.find("input[type=checkbox], input[type=radio]")
|
||||
.prop("checked", "")
|
||||
.end();
|
||||
|
||||
|
||||
})
|
||||
|
||||
function funcpermohonan(){
|
||||
|
||||
let amaun = $('#jumlahmohon').val();
|
||||
// let tarikh = $('#tarikhmohon').val();
|
||||
let jenis = $('#radwang:checked').val();
|
||||
let petibesi = $('#bakipetibesi').val();
|
||||
let outstanding = $('#outstanding').val();
|
||||
|
||||
let boolamaun = false;let booljenis = false;
|
||||
|
||||
if(amaun === ''){
|
||||
$("#erroramaun").show();
|
||||
// $("[name='erroramaun']").text("*Isikan amaun dalam input!");
|
||||
$("[name='jumlahmohon']").addClass('is-invalid');
|
||||
}
|
||||
|
||||
if(!jenis)
|
||||
{
|
||||
$("#pilihper").show();
|
||||
|
||||
booljenis = true;
|
||||
}else{
|
||||
$("pilihper").hide();
|
||||
|
||||
booljenis = false;
|
||||
}
|
||||
|
||||
if(boolamaun === false && booljenis === false)
|
||||
{
|
||||
$("#terima_permohonan").prop('disabled', true);
|
||||
$('#permohonanform').submit();
|
||||
|
||||
return true;
|
||||
}else{
|
||||
|
||||
$("#terima_permohonan").prop('disabled', false);
|
||||
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).on('click', '#btnterima', function(e) {
|
||||
let nama = "{{ Auth::user()->name }}";
|
||||
let mid = $(this).data("mohonid");
|
||||
|
||||
Swal.fire({
|
||||
title: 'Adakah Wang sudah diterima?',
|
||||
showDenyButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Terima',
|
||||
denyButtonText: `Belum`,
|
||||
allowOutsideClick: false
|
||||
}).then((result) => {
|
||||
/* Read more about isConfirmed, isDenied below */
|
||||
if (result.isConfirmed) {
|
||||
$.ajax({
|
||||
method:"put",
|
||||
url: api_url + '/admin/permohonan/tagterima',
|
||||
data: {
|
||||
"mohonid" : mid,
|
||||
"namapenerima" : nama
|
||||
},
|
||||
success:function(data)
|
||||
{
|
||||
if(data === 1)
|
||||
Swal.fire('Diterima!', '', 'success')
|
||||
}
|
||||
});
|
||||
} else if (result.isDenied) {
|
||||
// Swal.fire('Belum Diterima!', '', 'info')
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#btncit', function(e) {
|
||||
|
||||
let mid = $(this).data("mohonid");
|
||||
|
||||
var bank = @php echo json_encode($bank) @endphp;
|
||||
var options = {};
|
||||
$.map(bank,
|
||||
function(o) {
|
||||
options[o.abbreviation] = o.name;
|
||||
});
|
||||
|
||||
Swal.fire({
|
||||
title: 'BANK CIT',
|
||||
text: 'Sila Pilih Bank',
|
||||
input: 'select',
|
||||
inputOptions: options,
|
||||
showCancelButton: true,
|
||||
animation: 'slide-from-top',
|
||||
inputPlaceholder: 'Sila Pilih Bank',
|
||||
allowOutsideClick: false,
|
||||
preConfirm: (value) => {
|
||||
if(!value){
|
||||
Swal.showValidationMessage(
|
||||
`Pilih Bank yang dinyatakan`
|
||||
);
|
||||
}
|
||||
}
|
||||
}).then(function (result) {
|
||||
if (result) {
|
||||
if (result.isConfirmed) {
|
||||
|
||||
let cit = result.value;
|
||||
|
||||
Swal.fire({
|
||||
title: 'Masukkan No Resit',
|
||||
input: 'text',
|
||||
animation: 'slide-from-top',
|
||||
inputPlaceholder: 'No Resit',
|
||||
allowOutsideClick: false,
|
||||
preConfirm: (value) => {
|
||||
if(!value){
|
||||
Swal.showValidationMessage(
|
||||
`Masukkan No Resit Di dalam kotak disediakan`
|
||||
);
|
||||
}
|
||||
}
|
||||
}).then(function (response) {
|
||||
if(response){
|
||||
$.ajax({
|
||||
method:"put",
|
||||
url: api_url + '/admin/permohonan/tagcit',
|
||||
data: {
|
||||
"mohonid" : mid,
|
||||
"bank" : cit,
|
||||
"resitcit" : response.value
|
||||
},
|
||||
success:function(data)
|
||||
{
|
||||
if(data === 1)
|
||||
Swal.fire('Diterima!', '', 'success')
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}else{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,87 @@
|
||||
@extends('layouts.app')
|
||||
@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') }}">Home</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Rekod</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body mx-auto col-12">
|
||||
|
||||
@if(session()->has('message'))
|
||||
<div class="alert alert-success">
|
||||
{{ session()->get('message') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(session()->has('error'))
|
||||
<div class="alert alert-danger">
|
||||
{{ session()->get('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="d-flex justify-content-between mb-2">
|
||||
<h5 class="mt-2">Senarai Rekod Permohonan</h5>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-striped table-hover" id="permohonantable">
|
||||
<thead class="thead-dark text-center">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Permohonan</th>
|
||||
<th>Tarikh Mohon</th>
|
||||
<th>Jumlah Mohon (RM)</th>
|
||||
<th>Jumlah Lulus (RM)</th>
|
||||
<th>Semak</th>
|
||||
<th>Jenis Permohonan</th>
|
||||
<th>Status</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>{{ number_format($mohon['jumlah_diluluskan'],2) }}</td>
|
||||
<td>
|
||||
<a href="{{ route('permohonan.status', ['mohonid' => $mohon['mohonid']]) }}" class="btn btn-info"><i class="fas fa-eye"></i></a>
|
||||
</td>
|
||||
<td>{{ $mohon['jenismohon'] }}</td>
|
||||
<td>@php
|
||||
if($mohon['tagterima'] === 1)
|
||||
echo '<span class="p-2 badge badge-success">BERJAYA</span>';
|
||||
else echo '<span class="p-2 badge badge-danger">BATAL</span>'; @endphp</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var tablemohon = $('#permohonantable').DataTable({
|
||||
"ordering": false
|
||||
});
|
||||
|
||||
var api_url = '{{ $api_url }}';
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,323 @@
|
||||
@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">
|
||||
{{-- {{ dd($permohonan) }} --}}
|
||||
|
||||
<div class="row d-flex justify-content-between px-3 top">
|
||||
|
||||
<div class="ml-4">
|
||||
|
||||
<h5>NO PERMOHONAN : <span class="text-primary font-weight-bold">{{ $permohonan['nopermohonan'] }}</span></h5>
|
||||
<h5>JUMLAH MOHON : <span class="text-primary font-weight-bold">{{ 'RM ' . number_format($permohonan['amaun_mohon'],2) }}</span></h5>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="mr-4">
|
||||
|
||||
<h5>@php
|
||||
if($permohonan['jenismohon'] == 'permohonanwang')
|
||||
echo '<span class="bg-warning rounded p-2">Permohonan Wang </span>';
|
||||
else
|
||||
echo '<span class="bg-info rounded p-2">Bayaran Balik </span>';
|
||||
@endphp</h5>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Add class 'active' to progress -->
|
||||
|
||||
@if($permohonan['jenismohon'] == 'permohonanwang')
|
||||
<div class="row d-flex justify-center">
|
||||
<div class="col-12">
|
||||
<ul id="progressbar" class="text-center flex">
|
||||
<li class="{{ ($permohonan['tarikh_permohonan'] !== null) ? 'active' : '' }} step0 col-2"></li>
|
||||
<li class="{{ ($permohonan['tagoperasi'] === 1) ? 'active' : '' }} step0 col-2"></li>
|
||||
<li class="{{ ($permohonan['tagakaun'] === 1) ? 'active' : '' }} step0 col-2"></li>
|
||||
<li class="{{ ($permohonan['tagpb'] === 1) ? 'active' : '' }} step0 col-2"></li>
|
||||
<li class="{{ ($permohonan['tagdeposit'] === 1) ? 'active' : '' }} step0 col-2"></li>
|
||||
<li class="{{ ($permohonan['tagterima'] === 1) ? 'active' : '' }} step0 col-2"></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="row d-flex justify-content-center">
|
||||
<div class="col-12">
|
||||
<ul id="progressbar" class="text-center flex">
|
||||
<li class="{{ ($permohonan['tarikh_permohonan'] !== null) ? 'active' : '' }} step0 col-4"></li>
|
||||
<li class="{{ ($permohonan['tagcit'] === 1) ? 'active' : '' }} step0 col-4"></li>
|
||||
<li class="{{ ($permohonan['tagoperasi'] === 1) ? 'active' : '' }} step0 col-4"></li>
|
||||
<li class="{{ ($permohonan['tagakaun'] === 1) ? 'active' : '' }} step0 col-4"></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
@if($permohonan['jenismohon'] == 'permohonanwang')
|
||||
|
||||
<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">Permohonan <br>Cawangan</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">Pengesahan<br>Operasi</p>
|
||||
{!! ($permohonan['tagoperasi'] === 2) ? '<img class="icon position-absolute" style="top:0;left:20;" src=' . asset('img/batal.png') .'>' : '' !!}
|
||||
</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</p>
|
||||
{!! ($permohonan['tagakaun'] === 2) ? '<img class="icon position-absolute" style="top:0;left:20;" src=' . asset('img/batal.png') .'>' : '' !!}
|
||||
</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">Kelulusan <br>Pengurus Besar</p>
|
||||
{!! ($permohonan['tagpb'] === 2) ? '<img class="icon position-absolute" style="top:0;left:20;" src=' . asset('img/batal.png') .'>' : '' !!}
|
||||
</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> Deposit Ke Bank <br>Selesai</p>
|
||||
{!! ($permohonan['tagdeposit'] === 2) ? '<img class="icon position-absolute" style="top:0;left:20;" src=' . asset('img/batal.png') .'>' : '' !!}
|
||||
</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">Cawangan<br> Terima Wang</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="d-flex col-12 mx-auto justify-content-center">
|
||||
<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">Permohonan <br>Cawangan</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">CIT Selesai Deposit ke Bank</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">Pengesahan<br>Operasi</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</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">Tarikh</th>
|
||||
<th scope="col">Masa</th>
|
||||
<th scope="col">Penerangan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($getdescription as $index=>$desc)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $desc[0]['tarikh'] }}</td>
|
||||
<td>{{ $desc[0]['masa'] }}</td>
|
||||
<td>@php
|
||||
|
||||
switch($desc['statusid']){
|
||||
case 1: echo $desc['description'] . '<br>' . 'NAMA PEMOHON :' . $desc[0]['nama_pemohon'];
|
||||
break;
|
||||
case 2: echo $desc['description'] . '<br>' . 'NAMA OPERASI :' . $desc[0]['nama_operasi'];
|
||||
break;
|
||||
case 3: echo $desc['description'] . '<br>' . 'NAMA AKAUN :' . $desc[0]['nama_akaun'];
|
||||
break;
|
||||
case 4: echo $desc['description'] . '<br>' . 'JUMLAH DILULUSKAN :RM' . number_format($desc[0]['jumlah_diluluskan'],2);
|
||||
break;
|
||||
case 5: echo $desc['description'] . '<br>' . 'JENIS BANK :' . $desc[0]['jenisbank'] . '<br>' . 'NO RESIT :' . $desc[0]['noresit'];
|
||||
break;
|
||||
case 6: echo $desc['description'] . '<br>' . 'NAMA PENERIMA :' . $desc[0]['nama_penerima'];
|
||||
break;
|
||||
case 7: echo $desc['description'];
|
||||
break;
|
||||
case 8: echo $desc['description'] . '<br>' . 'JENIS BANK :' . $desc[0]['jenisbank'];
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@endphp</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -74,7 +74,6 @@
|
||||
flex-direction: column;
|
||||
align-items: flex-start !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@@ -188,7 +187,6 @@
|
||||
|
||||
});
|
||||
|
||||
|
||||
$("#navbarDropdown").click(function(){
|
||||
$('#bell').css("color", "grey");
|
||||
});
|
||||
@@ -313,12 +311,32 @@
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
@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'])
|
||||
<div id="notify-maksimum" style="z-index: 1" class="alert alert-warning sticky-top text-center" role="alert">
|
||||
Baki peti besi anda sekarang adalah <b>RM{{ number_format($getVault,2) }}</b> dan melebihi had maksimum peti besi. Sila buat permohonan bayaran balik segera!
|
||||
</div>
|
||||
@elseif(floatval($getVault) < $cawangan[0]['min'])
|
||||
<div id="notify-minimum" style="z-index: 1" class="alert alert-danger sticky-top text-center" role="alert">
|
||||
Baki peti besi anda sekarang adalah <b>RM{{ number_format($getVault,2) }}</b> dan melebihi had minimum peti besi. Sila buat permohonan wang segera!
|
||||
</div>
|
||||
@else
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<main class="py-4">
|
||||
@yield('content')
|
||||
</main>
|
||||
</div>
|
||||
|
||||
@yield('footer')
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
<!-- Modal Wakil -->
|
||||
<div class="modal fade" id="PermohonanWang" tabindex="-1" role="dialog" aria-labelledby="PermohonanWangCenterTitle" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="PermohonanWangTitle">Daftar Permohonan</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<form id="permohonanform" method="post" action="{{ route('permohonan.simpan') }}">
|
||||
@csrf
|
||||
<div class="modal-body">
|
||||
<div class="text-center mx-auto mb-4">
|
||||
<input type="radio" name="radwang" id="radwang" value="permohonanwang"/><label class="ml-2" for="permohonanwang">Permohonan Wang</label>
|
||||
<input type="radio" name="radwang" id="radwang" value="bayaranbalik" class="ml-3"/><label class="ml-2" for="bayaranbalik">Bayaran Balik</label>
|
||||
<div id="pilihper" class="invalid-feedback">*Pilih Jenis Permohonan</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 d-flex mb-2">
|
||||
<label class="col-6">Jumlah Permohonan (RM)</label>
|
||||
<div class="col-6">
|
||||
<input type="text" name="jumlahmohon" id="jumlahmohon" class="form-control" placeholder="Jumlah Permohonan (RM)"/>
|
||||
<div id="erroramaun" class="invalid-feedback">*Nyatakan Jumlah Permohonan</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 d-flex mb-2">
|
||||
<label class="col-6">Tarikh Mohon</label>
|
||||
<p class="col-6">{{ $tarikhsemasa }}</p>
|
||||
<input type="hidden" id="tarikhmohon" name="tarikhmohon" readonly class="col-6 form-control" value="{{ $tarikhsemasa }}"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 d-flex mb-2">
|
||||
<label class="col-6">Baki Peti Besi (RM)</label>
|
||||
<p class="col-6">RM {{ number_format($getVault,2) }}</p>
|
||||
<input type="hidden" id="bakipetibesi" name="bakipetibesi" readonly class="col-6 form-control" value="{{ $getVault }}"/>
|
||||
</div>
|
||||
|
||||
{{-- <div class="col-12 d-flex mb-2">
|
||||
<label class="col-6">Pembiayaan Terkumpul (RM)</label>
|
||||
<input type="text" readonly class="col-6 form-control"/>
|
||||
</div> --}}
|
||||
|
||||
<div class="col-12 d-flex mb-2">
|
||||
<label class="col-6">Outstanding (RM)</label>
|
||||
<p class="col-6">RM {{ number_format($dashboard[0]['outstanding'],2) }}</p>
|
||||
<input type="hidden" id="outstanding" name="outstanding" readonly class="col-6 form-control" value="{{ $dashboard[0]['outstanding'] }}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button>
|
||||
<button type="button" id="terima_permohonan" class="btn btn-success btn-lg" onclick="funcpermohonan()">Daftar</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -218,8 +218,8 @@
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $item['nama'] }}</td>
|
||||
<td>{{ $item['norujukan'] }}</td>
|
||||
<td>@php $telefon = str_replace("-","",$item['telefon1']); echo substr($telefon,0,3) . '-' . substr($telefon,3); @endphp</td>
|
||||
<td>@php $telefon = str_replace("-","",$item['telefon2']); echo substr($telefon,0,3) . '-' . substr($telefon,3); @endphp</td>
|
||||
<td>@php $telefon = str_replace("-","",$item['telefon1']); echo ($telefon == null || $telefon == '') ? '' : '6' . substr($telefon,0,3) . substr($telefon,3); @endphp</td>
|
||||
<td>@php $telefon = str_replace("-","",$item['telefon2']); echo ($telefon == null || $telefon == '') ? '' : '6' . substr($telefon,0,3) . substr($telefon,3); @endphp</td>
|
||||
<td>{{ $item['JBG'] }}</td>
|
||||
<td>{{ substr($item['IC'],0,6) . '-' .substr($item['IC'],6,2) . '-' . substr($item['IC'],8) }}</td>
|
||||
<td>{{ $item['Pembiayaan'] }}</td>
|
||||
|
||||
@@ -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
|
||||
{{-- <p>1. Tebus sepenuhnya</p>
|
||||
<p>2. Tebus gadai semula</p>
|
||||
<p>2. Bayar upah sepenuhnya dan tempoh akan dilanjutkan sehingga 12 bulan bagi tempoh gadaian.</p> --}}
|
||||
|
||||
@@ -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']);
|
||||
|
||||