Merged in ujrah_master (pull request #94)
Merge ujrah master to resit-tebus-ansuran-ujrah
This commit is contained in:
@@ -433,7 +433,7 @@ class CallCenterController extends Controller
|
||||
// $notis = Notis::select('tarikh_notis','id')
|
||||
// ->groupBy('tarikh_notis')
|
||||
// ->get();
|
||||
$notis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/senarainotisperingatan')->json();
|
||||
$notis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/senarainotisperingatankedua')->json();
|
||||
// dd($notis);
|
||||
foreach($notis as $info)
|
||||
{
|
||||
@@ -583,5 +583,219 @@ class CallCenterController extends Controller
|
||||
return view('callcenter.detailnotisperingatankedua',compact('detailnotis','senarai','notisid'));
|
||||
}
|
||||
|
||||
public function kemaskininotisperingatanbycaw($kodcaw,$notisid)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$senarai = [];
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $kodcaw)->json();
|
||||
$bycawnotisperingatan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/bycawnotisperingatan/'.$kodcaw.'/'.$notisid)->json();
|
||||
$kemaskininotisperingatan = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url'). '/arcc/kemaskininotisperingatan', [
|
||||
'kodcaw' => $kodcaw,
|
||||
'notisid' => $notisid
|
||||
])->json();
|
||||
if($kemaskininotisperingatan == 'success'){
|
||||
return view('callcenter.bycawdetailnotisperingatan',compact('cawangan_info','bycawnotisperingatan','kodcaw','notisid'));
|
||||
// return redirect()->route('arcc.detailnotisperingatan',['notisid' => $notisid])
|
||||
// ->with('success','Data Telah Dikemaskini.');
|
||||
}elseif($kemaskininotisperingatan == 'failed'){
|
||||
return redirect()->route('arcc.detailnotisperingatan',['notisid' => $notisid])
|
||||
->with('failed','Data Tidak Dikemaskini. Sila Semak Semula...');
|
||||
}
|
||||
|
||||
// return view('callcenter.bycawdetailnotisperingatan',compact('cawangan_info','bycawnotisperingatan','kodcaw','notisid'));
|
||||
}
|
||||
|
||||
public function kemaskininotisperingatankeduabycaw($kodcaw,$notisid)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$senarai = [];
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $kodcaw)->json();
|
||||
$bycawnotisperingatankedua = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/bycawnotisperingatankedua/'.$kodcaw.'/'.$notisid)->json();
|
||||
$kemaskininotisperingatan = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url'). '/arcc/kemaskininotisperingatan', [
|
||||
'kodcaw' => $kodcaw,
|
||||
'notisid' => $notisid
|
||||
])->json();
|
||||
if($kemaskininotisperingatan == 'success'){
|
||||
return view('callcenter.bycawdetailnotisperingatankedua',compact('cawangan_info','bycawnotisperingatankedua','kodcaw','notisid','api_url'));
|
||||
}elseif($kemaskininotisperingatan == 'failed'){
|
||||
return redirect()->route('arcc.detailnotisperingatankedua',['notisid' => $notisid])
|
||||
->with('failed','Data Tidak Dikemaskini. Sila Semak Semula...');
|
||||
}
|
||||
}
|
||||
|
||||
public function notisJbg(){
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$caw = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
//dd('sini');
|
||||
return view('callcenter.cariangadaian',compact('api_url','caw'));
|
||||
}
|
||||
|
||||
public function carianJbg(Request $request){
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$jbgmula = $request->jbgmula;
|
||||
$jbghingga = $request->jbghingga;
|
||||
$tprint = $current->toDateString();
|
||||
|
||||
$caw_all = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/arcc/cawangan/')->json();
|
||||
$senarai = [];
|
||||
foreach($caw_all as $cwgn)
|
||||
{
|
||||
$kodcaw = $cwgn['kodcaw'];
|
||||
$datagadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/arcc/gadaian/'.$kodcaw,[
|
||||
'jbgmula' => $request->jbgmula,
|
||||
'jbghingga' => $request->jbghingga,
|
||||
])->json();
|
||||
|
||||
$data = [
|
||||
'kodcaw'=>$cwgn['kodcaw'],
|
||||
'caw_name'=>$cwgn['details_caw'],
|
||||
'datagadai'=>$datagadai ? $datagadai : '',
|
||||
];
|
||||
array_push($senarai,$data);
|
||||
}
|
||||
// dd(1);
|
||||
return view('callcenter.gadaianjbg', compact('kodcaw','senarai','jbgmula','jbghingga'));
|
||||
}
|
||||
|
||||
public function janadatanotisjbg(Request $request){
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
$currentNow = Carbon::now();
|
||||
$senarai = [];
|
||||
$tarikh_savedaftarnotis = $current->toDateString();
|
||||
$jbgmula = $request->jbgmula;
|
||||
$jbghingga = $request->jbghingga;
|
||||
$kodcaw = $request->kodcaw;
|
||||
$selected_caw = $request->caw;
|
||||
// dd($selected_caw);
|
||||
|
||||
$getbatchnotisjbg=Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url').'/arcc/getbatchnotisjbg',[
|
||||
'jbgmula' => $jbgmula,
|
||||
'jbghingga' => $jbghingga,
|
||||
])->json();
|
||||
|
||||
$newbatchnotis=$getbatchnotisjbg;
|
||||
|
||||
if(!empty($selected_caw))
|
||||
{
|
||||
foreach($selected_caw as $index=>$caw){
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $caw)->json();
|
||||
// dd($cawangan_info);
|
||||
$insertdatagadai = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/arcc/insertdatagadaijbg/'.$caw ,[
|
||||
'jbgmula' => $jbgmula,
|
||||
'jbghingga' => $jbghingga,
|
||||
'kodcaw' => $caw,
|
||||
'notisid' => $newbatchnotis
|
||||
])->json();
|
||||
|
||||
$data = [
|
||||
'kodcaw'=>$caw,
|
||||
'caw_name'=>$cawangan_info['details_caw'],
|
||||
'datagadai' => $insertdatagadai ? $insertdatagadai : '',
|
||||
];
|
||||
|
||||
array_push($senarai,$data);
|
||||
}
|
||||
}
|
||||
return redirect()->route('arcc.notisjbg')->with('success','Berjaya Daftar Notis Jbg.');
|
||||
}
|
||||
|
||||
public function rekodnotisjbg(){
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$arrayinfo = [];
|
||||
|
||||
// $notis = Notis::select('tarikh_notis','id')
|
||||
// ->groupBy('tarikh_notis')
|
||||
// ->get();
|
||||
$notisjbg = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/senarainotisjbg')->json();
|
||||
// dd($notisjbg);
|
||||
foreach($notisjbg as $info)
|
||||
{
|
||||
$getcawnotisjbg = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotisjbg/'.$info['id'])->json();
|
||||
|
||||
array_push($arrayinfo, ['info'=> $info,'cawnotis' => $getcawnotisjbg]);
|
||||
}
|
||||
// dd($arrayinfo);
|
||||
return view('callcenter.rekodnotisjbg',compact('notisjbg','arrayinfo'));
|
||||
}
|
||||
|
||||
public function detailnotisjbg(Request $request){
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$senarai = [];
|
||||
$notisid = $request->notisid;
|
||||
|
||||
$detailnotisjbg = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotisjbg/'.$notisid)->json();
|
||||
//dd($detailnotisjbg[0]);
|
||||
foreach($detailnotisjbg as $info)
|
||||
{
|
||||
$getcawnotisjbgbycaw = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotisjbgbycaw', [
|
||||
'kodcaw' => $info[0]['kodcaw'],
|
||||
'notisid' => $notisid
|
||||
])->json();
|
||||
//dd($getcawnotisjbgbycaw);
|
||||
$data = [
|
||||
// 'kodcaw'=>$info[0]['kodcaw'],
|
||||
// 'caw_name'=>$info[0]['details_caw'],
|
||||
'getcawnotisjbgbycaw' => $getcawnotisjbgbycaw ? $getcawnotisjbgbycaw : '',
|
||||
];
|
||||
|
||||
array_push($senarai,$data);
|
||||
}
|
||||
|
||||
return view('callcenter.detailnotisjbg',compact('detailnotisjbg','senarai','notisid'));
|
||||
}
|
||||
|
||||
public function bycawnotisjbg($kodcaw,$notisid, Request $request)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $kodcaw)->json();
|
||||
$bycawnotisjbg = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/bycawnotisjbg/'.$kodcaw.'/'.$notisid)->json();
|
||||
|
||||
return view('callcenter.bycawdetailnotisjbg',compact('cawangan_info','bycawnotisjbg','kodcaw','notisid'));
|
||||
}
|
||||
|
||||
public function detsagcallbyjbg($kodcaw, $notisid, $id)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $kodcaw)->json();
|
||||
$bysagnotisjbg = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/arcc/bysagnotisjbg/'.$kodcaw.'/'.$notisid.'/'.$id)->json();
|
||||
$bysagnotisjbgCustomer = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/arcc/bysagnotisjbgcustomer/'.$kodcaw.'/'.$notisid.'/'.$id)->json();
|
||||
return view('callcenter.callnotisjbg',compact('cawangan_info','bysagnotisjbg','bysagnotisjbgCustomer'));
|
||||
}
|
||||
|
||||
public function bycawnotisjbg2($kodcaw,$notisid, Request $request)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $kodcaw)->json();
|
||||
$bycawnotisjbg = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/bycawnotisjbg2/'.$kodcaw.'/'.$notisid)->json();
|
||||
return view('callcenter.bycawdetailnotisjbg2',compact('cawangan_info','bycawnotisjbg','kodcaw','notisid'));
|
||||
}
|
||||
|
||||
public function detsagcallbyjbg2($kodcaw, $notisid, $nokp)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $kodcaw)->json();
|
||||
$bysagnotisjbg = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/arcc/bysagnotisjbg2/'.$kodcaw.'/'.$notisid.'/'.$nokp)->json();
|
||||
$bysagnotisjbgCustomer = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/arcc/bysagnotisjbgcustomer2/'.$kodcaw.'/'.$notisid.'/'.$nokp)->json();
|
||||
// dd($bysagnotisjbg);
|
||||
return view('callcenter.callnotisjbg2',compact('cawangan_info','bysagnotisjbg','bysagnotisjbgCustomer','kodcaw','notisid','nokp','api_url'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -4427,6 +4427,72 @@ class KhazanahController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function notisperingatan(Request $request){
|
||||
$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();
|
||||
|
||||
return view('callcenter.khazanah.notisperingatan',compact('cawangan_info','api_url'));
|
||||
}
|
||||
|
||||
public function rekodnotisperingatanpertama()
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$arrayinfo = [];
|
||||
|
||||
$notis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/cawangan/senarainotisperingatan/'. $auth_user['cawangan'])->json();
|
||||
// dd($notis );
|
||||
foreach($notis as $info)
|
||||
{
|
||||
$getcawnotis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/cawangan/getcawnotis/'. $auth_user['cawangan'].'/'.$info['notis_id'])->json();
|
||||
// dd($getcawnotis);
|
||||
array_push($arrayinfo, ['info'=> $info,'cawnotis' => $getcawnotis]);
|
||||
}
|
||||
return view('callcenter.khazanah.rekodnotisperingatanpertama',compact('notis','arrayinfo'));
|
||||
}
|
||||
|
||||
public function detailnotisperingatan()
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
$kodcaw = $auth_user['cawangan'];
|
||||
$senarai = [];
|
||||
|
||||
$detailnotis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/cawangan/getcawnotisall/'. $auth_user['cawangan'])->json();
|
||||
// dd($detailnotis);
|
||||
foreach($detailnotis as $info)
|
||||
{
|
||||
// $getcawnotisbycaw = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotisbycaw', [
|
||||
// 'kodcaw' => $info[0]['kodcaw'],
|
||||
// 'notisid' => $notisid
|
||||
// ])->json();
|
||||
|
||||
$data = [
|
||||
// 'detailnotis' => $info ? $info : '',
|
||||
'getcawnotisbycaw' => $info ? $info : '',
|
||||
];
|
||||
|
||||
array_push($senarai,$data);
|
||||
// dd($data);
|
||||
}
|
||||
return view('callcenter.khazanah.detailnotisperingatan',compact('detailnotis','senarai','kodcaw'));
|
||||
}
|
||||
|
||||
public function bycawnotisperingatan($kodcaw,$notisid, Request $request)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
$kodcaw = $auth_user['cawangan'];
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'.$auth_user['cawangan'])->json();
|
||||
$bycawnotisperingatan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/cawangan/bycawnotisperingatan/'.$auth_user['cawangan'].'/'.$notisid)->json();
|
||||
|
||||
return view('callcenter.khazanah.bycawdetailnotisperingatan',compact('cawangan_info','bycawnotisperingatan','kodcaw','notisid','api_url'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,328 @@
|
||||
@extends('layouts.app_callcenter')
|
||||
<style>
|
||||
.radiostyle .radio-green {
|
||||
background-color: #27ae60;
|
||||
color: white;
|
||||
box-shadow: 5px 10px #888888;
|
||||
width: 200px;
|
||||
margin-right: 5px;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red {
|
||||
background-color: #e74c3c;
|
||||
color: white;
|
||||
width: 200px;
|
||||
margin-right: 5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow {
|
||||
background-color: #3498db;
|
||||
color: white;
|
||||
width: 200px;
|
||||
margin-right: 5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-green:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-red:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-green input[type="radio"]:checked {
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow input[type="radio"]:checked {
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red input[type="radio"]:checked {
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td,
|
||||
#details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#details tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style: bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<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('arcc.notisperingatankedua') }}">Notis Peringatan Kedua</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('arcc.rekodnotisperingatankedua') }}">Rekod Notis Peringatan Kedua</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('arcc.detailnotisperingatankedua', [ 'notisid' => $notisid ]) }}">Mengikut Cawangan</a></li>
|
||||
<li class="breadcrumb-item">{{$cawangan_info['details_caw']}}</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Notis JBG</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
</div>
|
||||
</div>
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@elseif ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<form id="exportpdf" action="" target="_blank" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" id="typedonwload" value="">
|
||||
<input type='hidden' name="radaktif" value="aktif">
|
||||
<input type='hidden' name="notisid" value="{{$notisid}}">
|
||||
<input type='hidden' name="kodcaw" value="{{$kodcaw}}">
|
||||
<table class="table table-striped table-hover" id="details">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>Status</th>
|
||||
<th>Nama</th>
|
||||
<th>No. KP</th>
|
||||
<th>No. Telefon</th>
|
||||
<th>Norujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Keuntungan 6Bulan (RM)</th>
|
||||
<th>Amaun Telah Bayar (RM)</th>
|
||||
<th>Keuntungan Semasa (RM)</th>
|
||||
<th>Tarikh Matang</th>
|
||||
<th>Tarikh Tamat Kontrak</th>
|
||||
<th>Tarikh Panggilan</th>
|
||||
<th>Nota</th>
|
||||
<th>Tindakan</th>
|
||||
</thead>
|
||||
@php
|
||||
$counter = 1;
|
||||
$totalpinjaman = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($bycawnotisjbg['rekod'] as $index => $item)
|
||||
@php
|
||||
$totalpinjaman += $item['listsag'][0]['pinjaman'];
|
||||
|
||||
if ($item['listnotis'][0]['statuscall'] == 0) {
|
||||
$status = 'Belum Hubungi';
|
||||
} elseif ($item['listnotis'][0]['statuscall'] == 1) {
|
||||
$status = 'Berjaya Hubungi';
|
||||
} else {
|
||||
$status = 'Tidak Dapat Hubungi';
|
||||
}
|
||||
|
||||
$nota = $item['listnotis'][0]['remark1'];
|
||||
@endphp
|
||||
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td style="white-space: nowrap">{{ $status ?? '-' }}</td>
|
||||
<td style="white-space: nowrap;">{{ $item['info']['nama'] ?? '-' }}</td>
|
||||
@php
|
||||
$nokp = $item['info']['kpbaru'] ?? $item['info']['kplama'];
|
||||
@endphp
|
||||
<td>{{ $nokp }}<input type="hidden" name="nokp[]" value="{{ $nokp }}"></td>
|
||||
<td>{{ $item['info']['telefon'] ?? '-' }}<input type="hidden" name="telefon[]" value="{{ $item['info']['telefon'] ?? ''}}"></td>
|
||||
<td style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{ $item1['norujukan']}}<br>@endforeach</td>
|
||||
<td>@foreach($item['listsag'] as $item1){{ $item1['jbg']}}<br>@endforeach</td>
|
||||
<td align='right' style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{number_format($item1['bakipjm'], 2, '.', ',')}}<br>@endforeach</td>
|
||||
<td align='right' style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{number_format($item1['bakiupah'], 2, '.', ',')}}<br>@endforeach</td>
|
||||
<td align='right' style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{number_format($item1['hargajualan']-$item1['bakihargajualan'], 2, '.', ',')}}<br>@endforeach</td>
|
||||
<td align='right' style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{number_format($item1['keuntungan'], 2, '.', ',')}}<br>@endforeach<br></td>
|
||||
<td align='right' style="white-space: nowrap;"><b> @foreach($item['listsag'] as $item1)
|
||||
@if($item1['t_matang'] == null)
|
||||
|
||||
@else
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item1['t_matang']);
|
||||
$formattedtmatang = $myDateTime->format('d-m-Y');
|
||||
echo($formattedtmatang);
|
||||
@endphp
|
||||
@endif
|
||||
<br>
|
||||
@endforeach
|
||||
<br>
|
||||
</b></td>
|
||||
<td align='right' style="white-space: nowrap;"><b> @foreach($item['listsag'] as $item1)
|
||||
@if($item1['t_matang1'] == null)
|
||||
|
||||
@else
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item1['t_matang1']);
|
||||
$formattedtmatang1 = $myDateTime->format('d-m-Y');
|
||||
echo($formattedtmatang1);
|
||||
@endphp
|
||||
@endif
|
||||
<br>
|
||||
@endforeach
|
||||
<br>
|
||||
</b></td>
|
||||
<td align='right' style="white-space: nowrap;"><b> @foreach($item['listnotis'] as $item1)
|
||||
@if($item1['tarikhcall1'] == null)
|
||||
|
||||
@else
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item1['tarikhcall1']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
@endphp
|
||||
@endif
|
||||
<br>
|
||||
@endforeach
|
||||
<br>
|
||||
</b></td>
|
||||
<td align="left">{{$nota ?? ' '}}</td>
|
||||
<!-- <td style="white-space: nowrap;"><a href="{{ route('arcc.detsagcallbyjbg2', [ 'kodcaw' => $kodcaw, 'notisid' => $notisid, 'nokp' => $item['nokp'] ]) }}" class="btn btn-info text-white">Hubungi</a></td> -->
|
||||
|
||||
<td>
|
||||
|
||||
@if ($item['listnotis'][0]['statuscall'] == 0 || $item['listnotis'][0]['statuscall'] == 9)
|
||||
<a href="{{ route('arcc.detsagcallbyjbg2', [ 'kodcaw' => $kodcaw, 'notisid' => $notisid, 'nokp' => $nokp ]) }}" class="btn btn-info text-white">Hubungi</a>
|
||||
<!-- <td style="white-space: nowrap;"><button type="button" style="margin:auto" class="btn btn-primary" onclick="callcustomer()">Hubungi</td> -->
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
var tablelelongbid = $('#details').DataTable({
|
||||
"columnDefs": [{
|
||||
"targets": 0,
|
||||
"target": '_blank',
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 5,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
// order: [[1, 'asc']],
|
||||
// // "ordering": false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 9999999,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
// {
|
||||
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||
// target: "_blank",
|
||||
// titleAttr: 'Export to Excel',
|
||||
// text: '<h8><b>EXCEL</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('excel');
|
||||
// $("#exportpdf").submit();
|
||||
// // window.open("_blank");
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Export to PDF',
|
||||
// text: '<h8><b>PDF</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('pdf');
|
||||
// $("#exportpdf").submit();
|
||||
// }
|
||||
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
|
||||
// target: "_blank",
|
||||
// titleAttr: 'Blast Whatsapp',
|
||||
// text: '<h8><b>WHATSAPP & SMS</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// // $('#typedonwload').val('whatsapp');
|
||||
// // $("#exportpdf").submit();
|
||||
// $("#exportpdf").click(function() {
|
||||
// $('[data-toggle="tooltip"]').tooltip()
|
||||
// alert("ADAKAH ANDA PASTI?");
|
||||
// $('#typedonwload').val('whatsapp');
|
||||
// $("#exportpdf").submit();
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
]
|
||||
|
||||
});
|
||||
|
||||
$('.export').tooltip();
|
||||
$('.export').removeClass('dt-button');
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,301 @@
|
||||
@extends('layouts.app_callcenter')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12 col-lg-12">
|
||||
|
||||
<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('arcc.notisperingatankedua') }}">Notis Peringatan Kedua</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('arcc.rekodnotisperingatankedua') }}">Rekod Notis Peringatan Kedua</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Mengikut Cawangan</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">{{$cawangan_info['details_caw']}}</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Notis JBG</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<form id="kemaskiniform" action="" target="_blank" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" id="typedonwload" value="">
|
||||
<input type='hidden' name="radaktif" value="aktif">
|
||||
<input type='hidden' name="notisid" id="notisid" value="{{$notisid}}">
|
||||
<input type='hidden' name="kodcaw" id="kodcaw" value="{{$kodcaw}}">
|
||||
<input type='hidden' name="nokp" id="nokp" value="{{$nokp}}">
|
||||
<div class="form-group row col-md-12">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<b>Nama</b>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" class="form-control" name="name" id="name" readonly value="{{ $bysagnotisjbgCustomer['nama'] }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<b>No Kad Pengenalan</b>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
@php
|
||||
if($bysagnotisjbgCustomer['kpbaru'] != null){
|
||||
$noic = $bysagnotisjbgCustomer['kpbaru'];
|
||||
}else{
|
||||
$noic = $bysagnotisjbgCustomer['kplama'];
|
||||
}
|
||||
@endphp
|
||||
<input type="text" class="form-control" name="noic" id="noic" readonly value="{{ $noic }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<b>No Telefon</b>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" class="form-control" name="telefon" id="telefon" readonly value="{{ $bysagnotisjbgCustomer['telefon'] ? $bysagnotisjbgCustomer['telefon'] : '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<b>Status Panggilan</b>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<select name="statuscall" class="form-control" id="statuscall">
|
||||
|
||||
@foreach ($bysagnotisjbg['getstatusremark'] as $index => $remark)
|
||||
@if ($remark['statuscall'] == 0)
|
||||
<option value="0" selected>Belum Hubungi</option>
|
||||
<option value="1">Berjaya Hubungi</option>
|
||||
<option value="9">Tidak Dapat Hubungi</option>
|
||||
@elseif($remark['statuscall'] == 1)
|
||||
<option value="0" >Belum Hubungi</option>
|
||||
<option value="1" selected>Berjaya Hubungi</option>
|
||||
<option value="9">Tidak Dapat Hubungi</option>
|
||||
@else
|
||||
<option value="0" >Belum Hubungi</option>
|
||||
<option value="1">Berjaya Hubungi</option>
|
||||
<option value="9" selected>Tidak Dapat Hubungi</option>
|
||||
@endif
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<b>Alamat </b>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" class="form-control" name="alamat" id="alamat" readonly value="{{$bysagnotisjbgCustomer['alamat1'] }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<b>Nota</b>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
@foreach($bysagnotisjbg['getstatusremark'] as $index => $remark)
|
||||
<textarea type="text" class="form-control" name="remark" id="remark">{{ $remark['remark1'] }}</textarea>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="container-fluid">
|
||||
|
||||
<table class="table table-striped table-hover" id="details">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<!-- <th>Status</th> -->
|
||||
<th>Norujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Keuntungan 6Bulan (RM)</th>
|
||||
<th>Amaun Telah Bayar (RM)</th>
|
||||
<th>Keuntungan Semasa (RM)</th>
|
||||
<th>Tarikh Matang</th>
|
||||
<th>Tarikh Tamat Kontrak</th>
|
||||
<th>Tarikh Panggilan</th>
|
||||
<th>Nota</th>
|
||||
|
||||
</thead>
|
||||
@php
|
||||
$counter = 1;
|
||||
$totalpinjaman = 0;
|
||||
@endphp
|
||||
@foreach ($bysagnotisjbg['rekodnotis'] as $index => $item)
|
||||
@php
|
||||
$totalpinjaman += $item['listsag'][0]['pinjaman'];
|
||||
|
||||
if ($item['listnotis'][0]['tarikhcall1'] == null) {
|
||||
$status = 'Belum';
|
||||
} else {
|
||||
$status = 'Selesai';
|
||||
}
|
||||
@endphp
|
||||
|
||||
<tr>
|
||||
<td>@foreach($item['listsag'] as $item1){{ $loop->iteration }}<br>@endforeach</td>
|
||||
<!-- <td style="white-space: nowrap">{{ $status ?? '-' }}</td> -->
|
||||
<td style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{ $item1['norujukan']}}<br>@endforeach</td>
|
||||
<td>@foreach($item['listsag'] as $item1){{ $item1['jbg']}}<br>@endforeach</td>
|
||||
<td align='right' style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{number_format($item1['bakipjm'], 2, '.', ',')}}<br>@endforeach</td>
|
||||
<td align='right' style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{number_format($item1['bakiupah'], 2, '.', ',')}}<br>@endforeach</td>
|
||||
<td align='right' style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{number_format($item1['hargajualan']-$item1['bakihargajualan'], 2, '.', ',')}}<br>@endforeach</td>
|
||||
<td align='right' style="white-space: nowrap;">@foreach($item['listsag'] as $item1){{number_format($item1['keuntungan'], 2, '.', ',')}}<br>@endforeach<br></td>
|
||||
<td align='right' style="white-space: nowrap;"><b> @foreach($item['listsag'] as $item1)
|
||||
@if($item1['t_matang'] == null)
|
||||
|
||||
@else
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item1['t_matang']);
|
||||
$formattedtmatang = $myDateTime->format('d-m-Y');
|
||||
echo($formattedtmatang);
|
||||
@endphp
|
||||
@endif
|
||||
<br>
|
||||
@endforeach
|
||||
<br>
|
||||
</b></td>
|
||||
<td align='right' style="white-space: nowrap;"><b> @foreach($item['listsag'] as $item1)
|
||||
@if($item1['t_matang1'] == null)
|
||||
|
||||
@else
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item1['t_matang1']);
|
||||
$formattedtmatang1 = $myDateTime->format('d-m-Y');
|
||||
echo($formattedtmatang1);
|
||||
@endphp
|
||||
@endif
|
||||
<br>
|
||||
@endforeach
|
||||
<br>
|
||||
</b></td>
|
||||
<td align='right' style="white-space: nowrap;"><b> @foreach($item['listnotis'] as $item1)
|
||||
@if($item1['tarikhcall1'] == null)
|
||||
|
||||
@else
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item1['tarikhcall1']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
@endphp
|
||||
@endif
|
||||
<br>
|
||||
@endforeach
|
||||
<br>
|
||||
</b></td>
|
||||
<td align="right">@foreach($item['listnotis'] as $item1){{ $item1['remark1']}}<br>@endforeach</td>
|
||||
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="mr-5 form-group float-right">
|
||||
<button type="button" class="btn btn-primary" onclick="kemaskinihubungi()" id="btnsave">Kemaskini</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var api_url = "{{ $api_url }}";
|
||||
// var kodcaw = "{{ $kodcaw }}";
|
||||
// var notisid = "{{ $notisid }}";
|
||||
//var nokp = "{{ $noic }}";
|
||||
var staf = "{{ Auth::user()->name }}";
|
||||
|
||||
$("#kemaskiniform").submit(function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
var nokp = $('#nokp').val();
|
||||
var telefon = $('#telefon').val();
|
||||
var nota = $('#remark').val();
|
||||
var nama = $('#nama').val();
|
||||
var alamat = $('#alamat').val();
|
||||
var notisid = $('#notisid').val();
|
||||
var kodcaw = $('#kodcaw').val();
|
||||
var statuscall = $('#statuscall').val();
|
||||
let caller = "{{ Auth::user()->name }}";
|
||||
|
||||
$.ajax({
|
||||
method:"put",
|
||||
url: api_url + "/arcc/updatecall/"+ kodcaw + "/" + notisid + "/" + nokp,
|
||||
data:{
|
||||
|
||||
'nota':nota,
|
||||
'statuscall':statuscall,
|
||||
'caller':caller
|
||||
// 'notisid':notisid,
|
||||
// 'kodcaw':kodcaw,
|
||||
// 'nokp':nokp
|
||||
},
|
||||
success: function(success){
|
||||
var urlroute = "{{ route('arcc.bycawnotisjbg2', ['kodcaw' => ':kodcaw', 'notisid' => ':notisid']) }}";
|
||||
urlroute = urlroute.replace(':kodcaw', kodcaw);
|
||||
urlroute = urlroute.replace(':notisid', notisid);
|
||||
|
||||
if(success){
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Berjaya',
|
||||
text: 'Berjaya mengemaskini maklumat notis JBG'
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
//location.reload();
|
||||
window.location.href = urlroute;
|
||||
}
|
||||
});
|
||||
|
||||
}else{
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Tidak Berjaya',
|
||||
text: 'Tidak berjaya mengemaskini maklumat notis JBG',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
});
|
||||
}
|
||||
},
|
||||
error: function (request, status, error) {
|
||||
alert(request.responseText);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
function kemaskinihubungi(){
|
||||
|
||||
$('#telefon').attr('readonly', true);
|
||||
$('#telefon2').attr('readonly', true);
|
||||
// $('#nota').attr('readonly', true);
|
||||
$('#nama').attr('readonly', true);
|
||||
$('#alamat').attr('readonly', true);
|
||||
|
||||
$('#kemaskiniform').trigger('submit');
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@@ -144,13 +144,16 @@
|
||||
<td style="white-space: nowrap;"> @if($item['namacaw'][$index]['status'] == 2)
|
||||
<img src="{{ asset('img/success.png') }}" style="width:20px"></img>
|
||||
@endif{{$item['namacaw'][$index]['details_caw']}}</td>
|
||||
<td align="center" style="white-space: nowrap;">{{$item['totalsag']}}</td>
|
||||
<td style="white-space: nowrap;">{{number_format($item['totalbakipjm'],2)}}</td>
|
||||
<td style="white-space: nowrap;"><a href="{{ route('arcc.bycawnotisperingatan', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'], 'notisid' => $notisid ]) }}" class="btn btn-info text-white">Lihat</a>
|
||||
<td align="center" style="white-space: nowrap;">@if($item['totalsag'] == 0)<a style="color: #e74c3c; nowrap">{{$item['totalsag']}}</a>@else {{$item['totalsag']}}@endif/{{$item['totalsagall']}}</td>
|
||||
<td style="white-space: nowrap;">@if($item['totalsag'] == 0)<a style="color: #e74c3c; nowrap">{{number_format($item['totalbakipjm'],2)}}</a>@else {{number_format($item['totalbakipjm'],2)}}@endif</td>
|
||||
<td style="white-space: nowrap;">
|
||||
{{-- <a href="{{ route('arcc.bycawnotisperingatan', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'], 'notisid' => $notisid ]) }}" class="btn btn-info text-white">Lihat</a> --}}
|
||||
<a href="{{ route('arcc.kemaskininotisperingatanbycaw', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'],'notisid' => $notisid] ) }}" class="btn btn-warning text-white">Kemaskini</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
<div style="color: #e74c3c" align=left> <i>*jika bilangan berkurang bermaksud telah masuk ke Notis Peringatan Kedua</i></div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -143,10 +143,13 @@
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td style="white-space: nowrap;">{{$item['namacaw'][$index]['details_caw']}}</td>
|
||||
<td align="center" style="white-space: nowrap;">{{$item['totalsag']}}</td>
|
||||
<td style="white-space: nowrap;">{{number_format($item['totalbakipjm'],2)}}</td>
|
||||
<td style="white-space: nowrap;"><a href="{{ route('arcc.bycawnotisperingatankedua', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'], 'notisid' => $notisid ]) }}" class="btn btn-info text-white">Lihat</a>
|
||||
</td>
|
||||
<td align="center" style="white-space: nowrap;">@if($item['totalsag'] == 0)<a style="color: #e74c3c; nowrap">{{$item['totalsag']}}</a>@else {{$item['totalsag']}}@endif/{{$item['totalsagall']}}</td>
|
||||
<td style="white-space: nowrap;">@if($item['totalsag'] == 0)<a style="color: #e74c3c; nowrap">{{number_format($item['totalbakipjm'],2)}}</a>@else {{number_format($item['totalbakipjm'],2)}}@endif</td>
|
||||
<td style="white-space: nowrap;">
|
||||
{{-- <a href="{{ route('arcc.bycawnotisperingatankedua', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'], 'notisid' => $notisid ]) }}" class="btn btn-info text-white">Lihat</a> --}}
|
||||
<a href="{{ route('arcc.kemaskininotisperingatankeduabycaw', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'],'notisid' => $notisid] ) }}" class="btn btn-warning text-white">Kemaskini</a>
|
||||
|
||||
<a href="{{ route('arcc.bycawnotisjbg2', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'], 'notisid' => $notisid ]) }}" class="btn btn-info text-white">Notis JBG</a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
@@ -0,0 +1,321 @@
|
||||
@extends('layouts.app_operasi')
|
||||
<style>
|
||||
|
||||
.radiostyle .radio-green {
|
||||
background-color: #27ae60;
|
||||
color:white;
|
||||
box-shadow: 5px 10px #888888;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red {
|
||||
background-color: #e74c3c;
|
||||
color:white;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow {
|
||||
background-color: #3498db;
|
||||
color:white;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-green:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-red:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-green input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td,
|
||||
#details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#details tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style: bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<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('laporan') }}">Laporan</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('laporan.notisperingatan') }}">Notis Peringatan</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('laporan.detailnotisperingatan') }}">Senarai Notis Peringatan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">{{$cawangan_info['details_caw']}}</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
</div>
|
||||
</div>
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@elseif ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<form id="exportpdf" action="{{route('arcc.blastkedua',['kodcaw' => $kodcaw, 'notisid' => $notisid])}}" target="_blank" method="POST">
|
||||
{{-- <form id="exportpdf" action="" target="_blank" method="POST"> --}}
|
||||
|
||||
@csrf
|
||||
<input type="hidden" name="type" id="typedonwload" value="">
|
||||
<input type='hidden' name="radaktif" value="aktif">
|
||||
<input type='hidden' name="notisid" value="{{$notisid}}" >
|
||||
<input type='hidden' name="kodcaw" value="{{$kodcaw}}">
|
||||
@php
|
||||
$getfasa = Http::withOptions(['verify' => config('app.api_verify')])
|
||||
->get($api_url . '/arcc/getfasa', ['kodcaw' => $kodcaw, 'notisid' => $notisid])
|
||||
->json();
|
||||
@endphp
|
||||
<input type='hidden' name="fasa" value="{{$getfasa['fasa'] ?? ''}}">
|
||||
|
||||
|
||||
<table class="table table-striped table-hover" id="details" align="center">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>No.Rujukan</th>
|
||||
<th>Nama</th>
|
||||
<th>No.KP</th>
|
||||
<th>No.Telefon</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Keuntungan 6Bulan (RM)</th>
|
||||
<th>Amaun Telah Bayar (RM)</th>
|
||||
<th>Keuntungan Semasa (RM)</th>
|
||||
<th>Tarikh Matang</th>
|
||||
<th>Tarikh Tamat Kontrak</th>
|
||||
<th>T.Notis Pertama</th>
|
||||
<th>T.Notis Kedua</th>
|
||||
<th>Tag Surat</th>
|
||||
<th>Jenis Notis</th>
|
||||
|
||||
|
||||
|
||||
</thead>
|
||||
{{-- {{dd($bycawnotisperingatankedua)}} --}}
|
||||
@foreach ($bycawnotisperingatan as $index => $item)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
|
||||
<td style="white-space: nowrap;">{{$item['norujukan']}}</td>
|
||||
<td style="white-space: nowrap;">{{$item['namacust']['nama'] ?? ''}}</td>
|
||||
<td style="white-space: nowrap;">{{$item['nokp']}}</td>
|
||||
<td style="white-space: nowrap;">{{$item['namacust']['telefon'] ?? ''}}</td>
|
||||
<td align = 'right' style="white-space: nowrap;">{{$item['jbg']}}</td>
|
||||
<td align = 'right' style="white-space: nowrap;">{{number_format($item['datagadai']['bakipjm'], 2, '.', ',')}}</td>
|
||||
<td align = 'right' style="white-space: nowrap;">{{number_format($item['datagadai']['bakiupah'], 2, '.', ',')}}</td>
|
||||
<td align = 'right' style="white-space: nowrap;">{{number_format($item['datagadai']['hargajualan']-$item['datagadai']['bakihargajualan'], 2, '.', ',')}}</td>
|
||||
<td align = 'right' style="white-space: nowrap;">{{number_format($item['keuntungan'], 2, '.', ',')}}</td>
|
||||
<td align = 'right' style="white-space: nowrap;"><b>
|
||||
@if($item['tmatang'] == null)
|
||||
@else
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['tmatang']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
@endphp</b></td>
|
||||
@endif
|
||||
<td align = 'right' style="white-space: nowrap;"><b>
|
||||
@if($item['tmatang1'] == null)
|
||||
@else
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['tmatang1']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
@endphp</b></td>
|
||||
@endif
|
||||
<td align = 'right' style="white-space: nowrap;"><b>
|
||||
@if($item['tarikhnotis1'] == null)
|
||||
|
||||
@else
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['tarikhnotis1']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
@endphp</b></td>
|
||||
@endif
|
||||
<td align = 'right' style="white-space: nowrap;"><b>
|
||||
@if($item['tarikhnotis2'] == null)
|
||||
|
||||
@else
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['tarikhnotis2']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
@endphp</b></td>
|
||||
@endif
|
||||
<td align = 'right' style="white-space: nowrap;"><b>
|
||||
@if($item['tagsurat'] == 1)
|
||||
<img src="{{ asset('img/surat.png') }}" style="width:20px"></img>Selesai
|
||||
@elseif($item['tagsurat'] == 0)
|
||||
Belum Hantar
|
||||
</b></td>
|
||||
@endif
|
||||
<td align = 'right' style="white-space: nowrap;"><b>
|
||||
@if($item['peringatan'] == 1)
|
||||
Pertama
|
||||
@elseif($item['peringatan'] == 2)
|
||||
Kedua
|
||||
</b></td>
|
||||
@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var tablelelongbid= $('#details').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"target": '_blank',
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 5,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
// order: [[1, 'asc']],
|
||||
// // "ordering": false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 9999999,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
// {
|
||||
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||
// target: "_blank",
|
||||
// titleAttr: 'Cetak Senarai',
|
||||
// text: '<h8><b>CETAK SENARAI</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('pdflist');
|
||||
// $("#exportpdf").submit();
|
||||
// // window.open("_blank");
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Surat Berdaftar',
|
||||
// text: '<h8><b>SURAT BERDAFTAR</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('pdf');
|
||||
// $("#exportpdf").submit();
|
||||
// }
|
||||
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
|
||||
// target: "_blank",
|
||||
// titleAttr: 'Blast Whatsapp',
|
||||
// text: '<h8><b>WHATSAPP & SMS</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// // $('#typedonwload').val('whatsapp');
|
||||
// // $("#exportpdf").submit();
|
||||
// $("#exportpdf").click(function() {
|
||||
// $('[data-toggle="tooltip"]').tooltip()
|
||||
// alert("ADAKAH ANDA PASTI?");
|
||||
// $('#typedonwload').val('whatsapp');
|
||||
// $("#exportpdf").submit();
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
]
|
||||
|
||||
});
|
||||
|
||||
$('.export').tooltip();
|
||||
$( '.export').removeClass('dt-button');
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,251 @@
|
||||
@extends('layouts.app_operasi')
|
||||
<style>
|
||||
|
||||
.radiostyle .radio-green {
|
||||
background-color: #27ae60;
|
||||
color:white;
|
||||
box-shadow: 5px 10px #888888;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red {
|
||||
background-color: #e74c3c;
|
||||
color:white;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow {
|
||||
background-color: #3498db;
|
||||
color:white;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-green:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-red:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-green input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td,
|
||||
#details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#details tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style: bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<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('laporan') }}">Laporan</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('laporan.notisperingatan') }}">Notis Peringatan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Senarai Notis Peringatan</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
</div>
|
||||
</div>
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@elseif ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="container">
|
||||
|
||||
<form id="exportpdf" action="{{route('stokaudit.rekodblastexport')}}" target="_blank" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" id="typedonwload" value="">
|
||||
<input type='hidden' name="radaktif" value="aktif">
|
||||
<input type='hidden' name="kodcaw" value="{{$kodcaw}}" >
|
||||
<table class="table table-striped table-hover" id="myTable">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>Notis ID</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Bil.Surat Notis Pertama</th>
|
||||
<th>Bil.Surat Notis Kedua</th>
|
||||
{{-- <th>Baki Pembiayaan (RM)</th> --}}
|
||||
<th>Maklumat Lanjut</th>
|
||||
|
||||
</thead>
|
||||
@foreach ($senarai as $index => $item)
|
||||
{{-- {{dd($item['getcawnotisbycaw'])}} --}}
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td style="white-space: nowrap;">{{$item['getcawnotisbycaw']['namacaw'][$index]['notis_id']}}</td>
|
||||
<td style="white-space: nowrap;"> @if($item['getcawnotisbycaw']['namacaw'][0]['status'] == 2)
|
||||
<img src="{{ asset('img/success.png') }}" style="width:20px"></img>
|
||||
@endif{{$item['getcawnotisbycaw']['namacaw'][$index]['details_caw']}}</td>
|
||||
<td align="center" style="white-space: nowrap;">{{$item['getcawnotisbycaw']['totalsagpertama']}}</td>
|
||||
<td align="center" style="white-space: nowrap;">{{$item['getcawnotisbycaw']['totalsagkedua']}}</td>
|
||||
{{-- <td style="white-space: nowrap;">{{number_format($item['getcawnotisbycaw']['totalbakipjm'],2)}}</td> --}}
|
||||
<td style="white-space: nowrap;"><a href="{{ route('laporan.bycawnotisperingatan', [ 'kodcaw' => $kodcaw, 'notisid' => $item['getcawnotisbycaw']['namacaw'][$index]['notis_id'] ]) }}" class="btn btn-info text-white">Lihat</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var tablecustomers = $('#myTable').DataTable({
|
||||
"ordering": false
|
||||
});
|
||||
|
||||
$(document).ready( function () {
|
||||
$('#datetimepicker1').datepicker({
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
var tablelelongbid= $('#details').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"target": '_blank',
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 5,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
// order: [[1, 'asc']],
|
||||
// // "ordering": false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 9999999,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
// {
|
||||
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||
// target: "_blank",
|
||||
// titleAttr: 'Export to Excel',
|
||||
// text: '<h8><b>EXCEL</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('excel');
|
||||
// $("#exportpdf").submit();
|
||||
// // window.open("_blank");
|
||||
// }
|
||||
// },
|
||||
{
|
||||
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||
titleAttr: 'Export to PDF',
|
||||
text: '<h8><b>PDF</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$('#typedonwload').val('pdf');
|
||||
$("#exportpdf").submit();
|
||||
}
|
||||
|
||||
},
|
||||
// {
|
||||
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
|
||||
// target: "_blank",
|
||||
// titleAttr: 'Blast Whatsapp',
|
||||
// text: '<h8><b>WHATSAPP</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('whatsapp');
|
||||
// $("#exportpdf").submit();
|
||||
// // window.open("_blank");
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
]
|
||||
|
||||
});
|
||||
|
||||
$('.export').tooltip();
|
||||
$( '.export').removeClass('dt-button');
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
@extends('layouts.app_operasi')
|
||||
<style>
|
||||
|
||||
.radiostyle .radio-green {
|
||||
background-color: #27ae60;
|
||||
color:white;
|
||||
box-shadow: 5px 10px #888888;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red {
|
||||
background-color: #e74c3c;
|
||||
color:white;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow {
|
||||
background-color: #3498db;
|
||||
color:white;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-green:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-red:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-green input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td,
|
||||
#details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#details tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style: bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<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('laporan') }}">Laporan</a></li>
|
||||
{{-- <li class="breadcrumb-item"><a href="{{ route('laporan.notisperingatan') }}">Notis Peringatan</a></li> --}}
|
||||
<li class="breadcrumb-item active" aria-current="page">Notis Peringatan</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
</div>
|
||||
</div>
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@elseif ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="btn-group-toggle col-md-12 col-sm-12 mb-4">
|
||||
{{-- <label class="btn btn-lg green">
|
||||
<a href="{{ route('laporan.carianpelanggan') }}" class="btn btn-dark btn-lg btn-block mb-3">Notis Peringatan Pertama</a>
|
||||
</label> --}}
|
||||
<label class="btn btn-lg radio-green">
|
||||
<a href="{{ route('laporan.detailnotisperingatan') }}" class="btn btn-dark btn-lg btn-block mb-3">Notis Peringatan Pertama Dan Kedua</a>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var tablecustomers = $('#myTable').DataTable({
|
||||
"ordering": false
|
||||
});
|
||||
|
||||
$(document).ready( function () {
|
||||
$('#datetimepicker1').datepicker({
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
var tablelelongbid= $('#details').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"target": '_blank',
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 5,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
// order: [[1, 'asc']],
|
||||
// // "ordering": false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 9999999,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
// {
|
||||
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||
// target: "_blank",
|
||||
// titleAttr: 'Export to Excel',
|
||||
// text: '<h8><b>EXCEL</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('excel');
|
||||
// $("#exportpdf").submit();
|
||||
// // window.open("_blank");
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Export to PDF',
|
||||
// text: '<h8><b>PDF</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('pdf');
|
||||
// $("#exportpdf").submit();
|
||||
// }
|
||||
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
|
||||
// target: "_blank",
|
||||
// titleAttr: 'Blast Whatsapp',
|
||||
// text: '<h8><b>WHATSAPP</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('whatsapp');
|
||||
// $("#exportpdf").submit();
|
||||
// // window.open("_blank");
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
]
|
||||
|
||||
});
|
||||
|
||||
$('.export').tooltip();
|
||||
$( '.export').removeClass('dt-button');
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,263 @@
|
||||
@extends('layouts.app_operasi')
|
||||
<style>
|
||||
|
||||
.radiostyle .radio-green {
|
||||
background-color: #27ae60;
|
||||
color:white;
|
||||
box-shadow: 5px 10px #888888;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red {
|
||||
background-color: #e74c3c;
|
||||
color:white;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow {
|
||||
background-color: #3498db;
|
||||
color:white;
|
||||
width:200px;
|
||||
margin-right:5px;
|
||||
box-shadow: 5px 10px #888888;
|
||||
transition: 0.5s ease;
|
||||
}
|
||||
|
||||
.radiostyle .radio-green:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-red:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow:hover {
|
||||
box-shadow: 5px 5px #888888;
|
||||
|
||||
}
|
||||
|
||||
.radiostyle .radio-green input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-yellow input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
.radiostyle .radio-red input[type="radio"]:checked{
|
||||
box-shadow: 5px 10px #888888;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td,
|
||||
#details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#details tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style: bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<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('laporan') }}">Laporan</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('laporan.notisperingatan') }}">Notis Peringatan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Senarai Notis Peringatan Pertama</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
</div>
|
||||
</div>
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@elseif ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="container">
|
||||
|
||||
<form id="exportpdf" action="{{route('stokaudit.rekodblastexport')}}" target="_blank" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" id="typedonwload" value="">
|
||||
<input type='hidden' name="radaktif" value="aktif">
|
||||
<table class="table table-striped table-hover" id="myTable">
|
||||
<thead>
|
||||
<th>Notis ID</th>
|
||||
<th>Tarikh Notis</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Fasa</th>
|
||||
<th>Maklumat Lanjut</th>
|
||||
|
||||
</thead>
|
||||
|
||||
@foreach ($arrayinfo as $index => $item)
|
||||
{{-- {{dd($item['cawnotis'])}} --}}
|
||||
<tr>
|
||||
<td style="white-space: nowrap;">{{ $item['info']['notis_id'] ?? '-' }}</td>
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['info']['tarikh_notis']);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
@endphp
|
||||
<td style="white-space: nowrap;"> {{$datez}}</td>
|
||||
<td style="white-space: nowrap;">@foreach($item['cawnotis'] as $item1)
|
||||
@foreach($item1 as $item2)
|
||||
@if($item2['status'] == 2)
|
||||
<img src="{{ asset('img/success.png') }}" style="width:20px"></img>
|
||||
@endif
|
||||
{{ $item2['details_caw']}}<br>
|
||||
@endforeach
|
||||
@endforeach</td>
|
||||
<td style="white-space: nowrap;">@if($item['info']['daritempoh'] == '5' )
|
||||
1
|
||||
@elseif($item['info']['daritempoh'] == '11' )
|
||||
2
|
||||
@endif</td>
|
||||
{{-- <td style="white-space: nowrap;">{{ $item['info']['hinggatempoh'] ?? '-' }}</td> --}}
|
||||
<td style="white-space: nowrap;">
|
||||
{{-- <a href="{{ route('arcc.detailnotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a> --}}
|
||||
<a href="{{ route('laporan.detailnotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Lihat</a></td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var tablecustomers = $('#myTable').DataTable({
|
||||
"ordering": false
|
||||
});
|
||||
|
||||
$(document).ready( function () {
|
||||
$('#datetimepicker1').datepicker({
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
var tablelelongbid= $('#details').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"target": '_blank',
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 5,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
// order: [[1, 'asc']],
|
||||
// // "ordering": false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 9999999,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
// {
|
||||
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
||||
// target: "_blank",
|
||||
// titleAttr: 'Export to Excel',
|
||||
// text: '<h8><b>EXCEL</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('excel');
|
||||
// $("#exportpdf").submit();
|
||||
// // window.open("_blank");
|
||||
// }
|
||||
// },
|
||||
{
|
||||
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||
titleAttr: 'Export to PDF',
|
||||
text: '<h8><b>PDF</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$('#typedonwload').val('pdf');
|
||||
$("#exportpdf").submit();
|
||||
}
|
||||
|
||||
},
|
||||
// {
|
||||
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
|
||||
// target: "_blank",
|
||||
// titleAttr: 'Blast Whatsapp',
|
||||
// text: '<h8><b>WHATSAPP</b></h8>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $('#typedonwload').val('whatsapp');
|
||||
// $("#exportpdf").submit();
|
||||
// // window.open("_blank");
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
]
|
||||
|
||||
});
|
||||
|
||||
$('.export').tooltip();
|
||||
$( '.export').removeClass('dt-button');
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
<input type='hidden' name="radaktif" value="aktif">
|
||||
<table class="table table-striped table-hover" id="myTable">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>ID Notis</th>
|
||||
<th>Tarikh Notis</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Fasa</th>
|
||||
@@ -151,7 +151,7 @@
|
||||
@if($item2['status'] == 2)
|
||||
<img src="{{ asset('img/success.png') }}" style="width:20px"></img>
|
||||
@endif
|
||||
{{ $item2['details_caw']}}<br>
|
||||
{{ $item2['details_caw']}} : {{ $item2['bakitotalsag']}}/{{ $item2['totalsag']}} <br>
|
||||
@endforeach
|
||||
@endforeach</td>
|
||||
<td style="white-space: nowrap;">@if($item['info']['daritempoh'] == '5' )
|
||||
@@ -161,12 +161,13 @@
|
||||
@endif</td>
|
||||
{{-- <td style="white-space: nowrap;">{{ $item['info']['hinggatempoh'] ?? '-' }}</td> --}}
|
||||
<td style="white-space: nowrap;">
|
||||
{{-- <a href="{{ route('arcc.detailnotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a> --}}
|
||||
<a href="{{ route('arcc.kemaskininotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Kemaskini</a></td>
|
||||
<a href="{{ route('arcc.detailnotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a></td>
|
||||
{{-- <a href="{{ route('arcc.kemaskininotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Kemaskini</a> --}}
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
<div style="color: #e74c3c" align=left> <i>*jika bilangan berkurang bermaksud telah masuk ke Notis Peringatan Kedua</i></div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -152,7 +152,9 @@
|
||||
@if($item2['status'] == 3)
|
||||
<img src="{{ asset('img/surat.png') }}" style="width:20px"></img>
|
||||
@endif
|
||||
{{ $item2['details_caw']}}<br>
|
||||
@if($item2['bakitotalsagkedua'] > 0)<a style="color: #27ae60"><b>{{ $item2['details_caw']}} : {{ $item2['bakitotalsagkedua']}}/{{ $item2['totalsag']}} </b></a>
|
||||
@else {{ $item2['details_caw']}} : {{ $item2['bakitotalsagkedua']}}/{{ $item2['totalsag']}}
|
||||
@endif<br>
|
||||
@endforeach
|
||||
@endforeach</td>
|
||||
<td style="white-space: nowrap;">@if($item['info']['daritempoh'] == '5' )
|
||||
@@ -162,7 +164,8 @@
|
||||
@endif</td>
|
||||
<td style="white-space: nowrap;">
|
||||
{{-- <a href="{{ route('arcc.detailnotisperingatankedua', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a> --}}
|
||||
<a href="{{ route('arcc.kemaskininotisperingatankedua', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Kemaskini</a></td>
|
||||
<a href="{{ route('arcc.detailnotisperingatankedua', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a></td>
|
||||
{{-- <a href="{{ route('arcc.kemaskininotisperingatankedua', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Kemaskini</a></td> --}}
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@@ -573,7 +573,7 @@
|
||||
})
|
||||
.then(historygadaian => {
|
||||
|
||||
if(historygadaian === '0' || historygadaian === null || historygadaian.length === 0) {
|
||||
if(historygadaian == '0' || historygadaian === null || historygadaian.length === 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1402,14 +1402,23 @@
|
||||
$.each(data,function(index,bayaran){
|
||||
|
||||
var urlroute = '{{ route("resit.ansuran", ":id") }}';
|
||||
var bayaranteller;
|
||||
|
||||
if(bayaran['teller'] != 'Online')
|
||||
bayaranteller = 'KT';
|
||||
|
||||
if(bayaran['teller'] == 'Online')
|
||||
bayaranteller = 'ON';
|
||||
|
||||
urlroute = urlroute.replace(':id', bayaran['id']);
|
||||
historybayarandatatable.row.add([
|
||||
counter,
|
||||
bayaran['created_at'],
|
||||
"RM " + bayaran['duit_masuk'],
|
||||
'<a class="btn btn-info" target="_blank" href='+ urlroute +'>Cetak</a>'
|
||||
]).draw();
|
||||
counter = counter + 1;
|
||||
counter,
|
||||
bayaran['created_at'],
|
||||
"RM " + bayaran['duit_masuk'],
|
||||
bayaranteller,
|
||||
'<a class="btn btn-info" target="_blank" href='+ urlroute +'>Cetak</a>'
|
||||
]).draw();
|
||||
counter = counter + 1;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1626,7 +1635,7 @@
|
||||
|
||||
let isPS = checkPS(selected.value)
|
||||
|
||||
if(isPS){
|
||||
if(isPS === true){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran',
|
||||
|
||||
@@ -733,7 +733,24 @@
|
||||
}
|
||||
});
|
||||
|
||||
function verifyGadai(func){
|
||||
function getDataCawangan(){
|
||||
|
||||
let header = {
|
||||
'pragma': 'no-cache',
|
||||
'cache-control': 'no-store',
|
||||
};
|
||||
|
||||
let kodcaw = $('#kodcaw').val();
|
||||
let teller = "{{ Auth::user()->name }}";
|
||||
let apiUrl = api_url + '/api/GetCurrentTunai/' + kodcaw + '?kodlaluan=' + teller;
|
||||
|
||||
return fetch(apiUrl, {
|
||||
header: header,
|
||||
})
|
||||
.then(response => response.json());
|
||||
}
|
||||
|
||||
async function verifyGadai(func){
|
||||
$("#terima_gadai").prop('disabled', true);
|
||||
event.preventDefault();
|
||||
var kodcaw = $('#kodcaw').val();
|
||||
@@ -765,21 +782,11 @@
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
method: 'get',
|
||||
url: api_url + '/api/GetCurrentTunai/' + kodcaw,
|
||||
async: false,
|
||||
dataType:'json',
|
||||
data:{
|
||||
'kodlaluan': teller
|
||||
},
|
||||
success:function(data){
|
||||
bakiakhir = data.baki;
|
||||
}
|
||||
});
|
||||
|
||||
let dataCawangan = await getDataCawangan();
|
||||
let bakiAkhir = dataCawangan.baki;
|
||||
|
||||
if(bakiakhir < pinjaman){
|
||||
if(bakiAkhir < pinjaman){
|
||||
$("#terima_gadai").prop('disabled', false);
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
|
||||
@@ -96,6 +96,9 @@
|
||||
<div class="row">
|
||||
<a href="{{ route('laporan.serahmarhuntebus') }}" class="btn btn-dark btn-lg btn-block mb-3">Serah Marhun Tebus</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="{{ route('laporan.notisperingatan') }}" class="btn btn-dark btn-lg btn-block mb-3">Notis Peringatan</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-3 mx-1">
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
#details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 11px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even) {
|
||||
@@ -92,7 +92,7 @@
|
||||
</style>
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
@@ -122,7 +122,7 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="container">
|
||||
<div class="container-fluid">
|
||||
|
||||
<form id="exportpdf" action="{{route('stokaudit.rekodblastexport')}}" target="_blank" method="POST">
|
||||
@csrf
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
#details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 11px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even) {
|
||||
@@ -92,7 +92,7 @@
|
||||
</style>
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
@@ -122,7 +122,7 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="container">
|
||||
<div class="container-fluid">
|
||||
|
||||
<form id="exportpdf" action="{{route('stokaudit.rekodblastsmsexport')}}" target="_blank" method="POST">
|
||||
@csrf
|
||||
|
||||
@@ -1489,6 +1489,15 @@ $.each(data,function(index,gadai_detail){
|
||||
console.log(xhRequest);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function(){
|
||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function(e){
|
||||
$($.fn.dataTable.tables(true)).DataTable()
|
||||
.columns.adjust();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,253 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="icon" href="{{ asset('img/icon_pkb.png') }}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<!-- CSRF Token -->
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<title>SISTEM AR-RAHN</title>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="{{ asset('js/app.js') }}" defer></script>
|
||||
<script src="{{ asset('vendor/adminlte/dist/js/adminlte.js') }}" defer></script>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="dns-prefetch" href="//fonts.gstatic.com">
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
|
||||
|
||||
<!-- Styles -->
|
||||
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('css/main.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('vendor/adminlte/dist/css/adminlte.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('vendor/fontawesome-free/css/all.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('vendor/DataTables/datatables.min.css') }}" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
|
||||
<link rel="stylesheet" href="{{ asset('vendor/bootstrap/css/bootstrap.min.css') }}">
|
||||
<link href="{{ asset('css/select2.min.css') }}" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="{{ asset('vendor/datepicker/css/bootstrap-datepicker.min.css') }}"/>
|
||||
<link href="{{ asset('css/material.css') }}" rel="stylesheet">
|
||||
|
||||
<script src="{{ asset('js/jquery.min.js') }}"></script>
|
||||
<script src="{{ asset('vendor/bootstrap/js/bootstrap.min.js') }}"></script>
|
||||
<script src="{{ asset('js/select2.min.js') }}"></script>
|
||||
<script src="{{ asset('js/numeral.min.js') }}"></script>
|
||||
<script src="{{ asset('js/sweetalert.min.js') }}"></script>
|
||||
<script src="{{ asset('js/popper.min.js') }}"></script>
|
||||
<script src="{{ asset('vendor/DataTables/datatables.min.js') }}"></script>
|
||||
<script src="{{ asset('vendor/datepicker/js/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
{{-- jquery validation --}}
|
||||
<script src="{{ asset('js/jquery.validate.min.js') }}"></script>
|
||||
<script src="{{ asset('js/additional-methods.min.js') }}"></script>
|
||||
|
||||
{{-- Pusher --}}
|
||||
<script src="{{ asset('js/pusher.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
function startTime() {
|
||||
var today = new Date();
|
||||
var d = today.getDate();
|
||||
var mon = today.getMonth()+1;
|
||||
var y = today.getFullYear()
|
||||
var h = today.getHours();
|
||||
var m = today.getMinutes();
|
||||
var s = today.getSeconds();
|
||||
m = checkTime(m);
|
||||
s = checkTime(s);
|
||||
document.getElementById('displaytime').innerHTML =
|
||||
d + "/" + mon + "/" + y + " " +h + ":" + m + ":" + s;
|
||||
var t = setTimeout(startTime, 500);
|
||||
}
|
||||
function checkTime(i) {
|
||||
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
|
||||
return i;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.custom-radio {
|
||||
font-size:18px;
|
||||
margin:20px 20px 20px 20px;
|
||||
display: inline-flex !important;
|
||||
flex-direction: column;
|
||||
align-items: flex-start !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body onload="startTime()" style="background-color:#BAC1C9;">
|
||||
<div id="app">
|
||||
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm" style="height:100px;">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#" style="cursor:not-allowed;">
|
||||
<img src="{{ asset('img/icon_pkb.png') }}" class="logo-arrahn-header" alt="Logo Ar Rahn" />
|
||||
</a>
|
||||
|
||||
<div class="col-2">
|
||||
<div style="color:#eb2f06;font-weight:bold;" id="displaytime"></div>
|
||||
</div>
|
||||
<div class="col-2 row mx-auto text-center justify-content-center">
|
||||
<div class="navbar-brand ml-3 col-4">
|
||||
<b class="text-secondary">Bahagian : </b><span class="text-uppercase" style="color:#1abc9c;font-weight:bold;">{{ Auth::user()->roles }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<!-- Left Side Of Navbar -->
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
</ul>
|
||||
|
||||
<!-- Right Side Of Navbar -->
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item dropdown" style="margin-right:10px;">
|
||||
<a id="navbarDropdown" class="nav-link " href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
|
||||
<i id="bell" class="fa fa-bell"></i>
|
||||
</a>
|
||||
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||
<div id="divbiasa">
|
||||
<a class="dropdown-item" id="gadailinkz" href="#">
|
||||
Tiada Notifikasi
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<script>
|
||||
|
||||
var audio = new Audio("{{ asset('sound/3.wav') }}");
|
||||
audio.muted = true;
|
||||
|
||||
// Enable pusher logging - don't include this in production
|
||||
Pusher.logToConsole = false;
|
||||
|
||||
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
|
||||
cluster: 'ap1',
|
||||
encrypted: true
|
||||
});
|
||||
|
||||
var channel = pusher.subscribe('operasi-notify');
|
||||
channel.bind('operasi-event', function(data) {
|
||||
let message = JSON.stringify(data);
|
||||
|
||||
$('#bell').css("color", "red");
|
||||
$('#linkz').text(data.namateller + " Pohon Kelulusan");
|
||||
$("#linkz").attr("href", "{{ url('kelulusan') }}");
|
||||
|
||||
if(window.location.pathname === '/operasi/kelulusan')
|
||||
{
|
||||
location.reload();
|
||||
}else{
|
||||
audio.play();
|
||||
audio.muted = false;
|
||||
var countlagu = 1;
|
||||
audio.onended = function() {
|
||||
if(countlagu <= 3){
|
||||
countlagu++;
|
||||
this.play();
|
||||
}
|
||||
}
|
||||
}
|
||||
const Toast = Swal.mixin({
|
||||
toast: true,
|
||||
position: 'top-end',
|
||||
showConfirmButton: false,
|
||||
timer: 5000,
|
||||
timerProgressBar: true,
|
||||
didOpen: (toast) => {
|
||||
toast.addEventListener('mouseenter', Swal.stopTimer)
|
||||
toast.addEventListener('mouseleave', Swal.resumeTimer)
|
||||
}
|
||||
})
|
||||
|
||||
Toast.fire({
|
||||
icon: 'error',
|
||||
title: 'Kelulusan Dipohon Sekarang!'
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
$("#navbarDropdown").click(function(){
|
||||
$('#bell').css("color", "grey");
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<!-- Authentication Links -->
|
||||
@guest
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
|
||||
</li>
|
||||
@if (Route::has('register'))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
|
||||
</li>
|
||||
@endif
|
||||
@else
|
||||
<li class="nav-item dropdown">
|
||||
<a id="navbarDropdown" style="color:#1abc9c;font-weight:bold;" class="nav-link dropdown-toggle" onclick="trigbiasa()" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
|
||||
{{ Auth::user()->name }}
|
||||
</a>
|
||||
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" href="{{ route('profile') }}">
|
||||
{{ __('Profile') }}
|
||||
</a>
|
||||
<a class="dropdown-item" href="{{ route('logout') }}"
|
||||
onclick="event.preventDefault();
|
||||
document.getElementById('logout-form').submit();">
|
||||
{{ __('Logout') }}
|
||||
</a>
|
||||
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
|
||||
@csrf
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@endguest
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@if(session()->has('iklan') && session()->get('iklan') == 0)
|
||||
|
||||
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true" style="position: absolute; top: 1rem; right: 1rem; width:100%;z-index:1;" data-autohide="false">
|
||||
<div class="toast-header">
|
||||
|
||||
<i class="text-danger fa-2x fa fa-exclamation-triangle mr-2"></i>
|
||||
<strong class="mr-auto text-danger fa-2x">Amaran</strong>
|
||||
{{-- <small>11 mins ago</small> --}}
|
||||
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="toast-body">
|
||||
<b style="font-size:18px;">sila tukar kata laluan asal dengan segera!</b>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('.toast').toast('show');
|
||||
</script>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
<main class="py-4">
|
||||
@yield('content')
|
||||
</main>
|
||||
</div>
|
||||
@yield('footer')
|
||||
</body>
|
||||
</html>
|
||||
@@ -25,13 +25,13 @@
|
||||
</div>
|
||||
<ul class="nav nav-tabs" id="custom-tabs-one-tab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="custom-tabs-one-home-tab" data-toggle="pill" href="#custom-tabs-one-home" role="tab" aria-controls="custom-tabs-one-home" aria-selected="true">Bayaran</a>
|
||||
<a class="nav-link active" id="custom-tabs-one-home-tab" data-toggle="pill" href="#custom-tabs-one-home" role="tab" aria-controls="custom-tabs-one-home" aria-selected="true">Ansuran</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="custom-tabs-upah-tab" data-toggle="pill" href="#custom-tabs-upah" role="tab" aria-controls="custom-tabs-upah" aria-selected="false">Keuntungan</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="custom-tabs-one-profile-tab" data-toggle="pill" href="#custom-tabs-one-profile" role="tab" aria-controls="custom-tabs-one-profile" aria-selected="false">Rekod</a>
|
||||
<a class="nav-link" id="custom-tabs-one-profile-tab" data-toggle="pill" href="#custom-tabs-one-profile" role="tab" aria-controls="custom-tabs-one-profile" aria-selected="false">Tebus</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content" id="custom-content-below-tabContent">
|
||||
@@ -43,6 +43,7 @@
|
||||
<th>Bil</th>
|
||||
<th>Tarikh Bayaran</th>
|
||||
<th>Bayaran</th>
|
||||
<th>Jenis Bayaran</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
#details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 11px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even) {
|
||||
@@ -227,7 +227,7 @@
|
||||
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="container-fluid">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
|
||||
+17
-1
@@ -420,7 +420,15 @@ Route::get('/detailnotisperingatankedua/{notisid}',['as'=>'arcc.detailnotisperin
|
||||
Route::get('/bycawnotisperingatankedua/{kodcaw}/{notisid}',['as'=>'arcc.bycawnotisperingatankedua','uses'=>'CallCenterController@bycawnotisperingatankedua'])->middleware('auth','callcenter');
|
||||
Route::post('/blastkedua/{kodcaw}/{notisid}',['as'=>'arcc.blastkedua','uses'=>'CallCenterController@blastkedua'])->middleware('auth','callcenter');
|
||||
Route::get('/kemaskininotisperingatankedua/{notisid}',['as'=>'arcc.kemaskininotisperingatankedua','uses'=>'CallCenterController@kemaskininotisperingatankedua'])->middleware('auth','callcenter');
|
||||
Route::get('/kemaskininotisperingatanbycaw/{kodcaw}/{notisid}',['as'=>'arcc.kemaskininotisperingatanbycaw','uses'=>'CallCenterController@kemaskininotisperingatanbycaw'])->middleware('auth','callcenter');
|
||||
Route::get('/kemaskininotisperingatankeduabycaw/{kodcaw}/{notisid}',['as'=>'arcc.kemaskininotisperingatankeduabycaw','uses'=>'CallCenterController@kemaskininotisperingatankeduabycaw'])->middleware('auth','callcenter');
|
||||
|
||||
//taraf pc atau ppc
|
||||
Route::get('/cawangan/notisperingatan',['as'=>'laporan.notisperingatan','uses'=>'KhazanahController@notisperingatan'])->middleware('auth','khazanah');
|
||||
Route::get('/cawangan/rekodnotisperingatanpertama',['as'=>'laporan.rekodnotisperingatanpertama','uses'=>'KhazanahController@rekodnotisperingatanpertama'])->middleware('auth','khazanah');
|
||||
Route::get('/cawangan/rekodnotisperingatankedua',['as'=>'laporan.rekodnotisperingatankedua','uses'=>'KhazanahController@rekodnotisperingatankedua'])->middleware('auth','khazanah');
|
||||
Route::get('/cawangan/detailnotisperingatan',['as'=>'laporan.detailnotisperingatan','uses'=>'KhazanahController@detailnotisperingatan'])->middleware('auth','khazanah');
|
||||
Route::get('/cawangan/bycawnotisperingatan/{kodcaw}/{notisid}',['as'=>'laporan.bycawnotisperingatan','uses'=>'KhazanahController@bycawnotisperingatan'])->middleware('auth','khazanah');
|
||||
|
||||
|
||||
|
||||
@@ -432,7 +440,15 @@ Route::get('/khazanah/print.suratwakil/{norujukan}',['as'=>'khazanah.print.surat
|
||||
Route::get('/penilai/print.suratwakil/{norujukan}',['as'=>'penilai.print.suratwakil','uses'=>'WakilController@printSuratWakilPenilai'])->middleware('auth','penilai');
|
||||
|
||||
|
||||
|
||||
Route::get('/notisjbg',['as'=>'arcc.notisjbg','uses'=>'CallCenterController@notisJbg'])->middleware('auth','callcenter');
|
||||
Route::get('/carianjbg',['as'=>'arcc.carianjbg','uses'=>'CallCenterController@carianJbg'])->middleware('auth','callcenter');
|
||||
Route::post('/janadatanotisjbg',['as'=>'arcc.janadatanotisjbg','uses'=>'CallCenterController@janadatanotisjbg'])->middleware('auth','callcenter');
|
||||
Route::get('/rekodnotisjbg',['as'=>'arcc.rekodnotisjbg','uses'=>'CallCenterController@rekodnotisjbg'])->middleware('auth','callcenter');
|
||||
Route::get('/detailnotisjbg/{notisid}',['as'=>'arcc.detailnotisjbg','uses'=>'CallCenterController@detailnotisjbg'])->middleware('auth','callcenter');
|
||||
Route::get('/bycawnotisjbg/{kodcaw}/{notisid}',['as'=>'arcc.bycawnotisjbg','uses'=>'CallCenterController@bycawnotisjbg'])->middleware('auth','callcenter');
|
||||
Route::get('/detsagcallbyjbg/{kodcaw}/{notisid}/{id}',['as'=>'arcc.detsagcallbyjbg','uses'=>'CallCenterController@detsagcallbyjbg'])->middleware('auth','callcenter');
|
||||
Route::get('/bycawnotisjbg2/{kodcaw}/{notisid}',['as'=>'arcc.bycawnotisjbg2','uses'=>'CallCenterController@bycawnotisjbg2'])->middleware('auth','callcenter');
|
||||
Route::get('/detsagcallbyjbg2/{kodcaw}/{notisid}/{nokp}',['as'=>'arcc.detsagcallbyjbg2','uses'=>'CallCenterController@detsagcallbyjbg2'])->middleware('auth','callcenter');
|
||||
|
||||
|
||||
Route::get('supports/driver/mykad-reader',['as'=>'mykadreader.driver', function(){
|
||||
|
||||
Reference in New Issue
Block a user