Merged in izzati-ujrah (pull request #69)

tambah function notis peringatan kedua arcc dan tambah baik pertama
This commit is contained in:
izzati zulkifli
2024-01-04 07:56:28 +00:00
14 changed files with 2202 additions and 33 deletions
+267 -16
View File
@@ -8,6 +8,7 @@ use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Auth;
use Carbon\Carbon;
use PDF;
class CallCenterController extends Controller
@@ -22,21 +23,14 @@ class CallCenterController extends Controller
$api_url = config('api.url');
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
$kelulusan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/ListOperasi/')->json();
return view('callcenter.notisperingatan',compact('cawangan_info','api_url'));
}
public function notisperingatanpertama(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();
$arraykelulusan = [];
foreach($kelulusan as $index=>$lulus)
{
foreach($lulus['kelulusanall'] as $index=>$kel)
{
array_push($arraykelulusan,["cawangan" => $lulus['cawangan'], "cawangankod" => $lulus['cawangankod'],"namateller" => $kel['teller'], 'siri' => $kel['siri'] , "norujukan" => $kel['norujukan'], 'pinjaman' => $kel['jumpinj'],'komen' => $kel['komen'], 'nilaimarhun' => ($kel['nilaimarhun'] ?? '-'), 'berat' => ($kel['berat'] ?? '-'),'margin' => ($kel['margin'] ?? '-'), 'status' => ($kel['status'] ?? '-'), 'pelulus' => $kel['pelulus']]);
}
}
return view('callcenter.notisperingatan',compact('cawangan_info','api_url','arraykelulusan'));
return view('callcenter.notisperingatanpertama',compact('cawangan_info','api_url'));
}
public function cariansag(Request $request)
@@ -50,6 +44,7 @@ class CallCenterController extends Controller
$tarikh_cetak = $current->toDateString();
$daritempoh = $request->daritempoh;
$hinggatempoh = $request->hinggatempoh;
$cawangan_all = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/arcc/cawangan',[
'daritempoh' => $daritempoh,
@@ -85,6 +80,46 @@ class CallCenterController extends Controller
));
}
public function cariansagnotispertama(Request $request)
{
// dd($request->all());
$request->radaktif === 'aktif';
$api_url = config('api.url');
$auth_user = Auth::user();
$current = Carbon::now();
$current = new Carbon();
$tarikh_cetak = $current->toDateString();
$fasa = $request->fasa;
$cawangan_all = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/arcc/cawangan',[
'fasa' => $fasa,
])->json();
// dd($cawangan_all );
$senarai = [];
foreach($cawangan_all as $cawangan){
$kodcaw = $cawangan['kodcaw'];
$datagadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/arcc/cariannotispertama/'.$kodcaw,[
'fasa' => $fasa
])->json();
$data = [
'kodcaw'=>$cawangan['kodcaw'],
'caw_name'=>$cawangan['details_caw'],
'datagadai' => $datagadai ? $datagadai : '',
];
array_push($senarai,$data);
}
return view('callcenter.listcariansagnotispertama', compact(
'kodcaw',
'senarai',
'fasa'
));
}
public function janadatanotisperingatan(Request $request)
{
$current = Carbon::now();
@@ -129,6 +164,46 @@ class CallCenterController extends Controller
return redirect()->route('arcc.notisperingatan')->with('success','Berjaya Daftar Notis Peringatan.');
}
public function janadatanotispertama(Request $request)
{
$current = Carbon::now();
$current = new Carbon();
$currentNow = Carbon::now();
$senarai = [];
$tarikh_savedaftarnotis = $current->toDateString();
$fasa = $request->fasa;
$kodcaw = $request->kodcaw;
$selected_caw = $request->caw;
// dd($selected_caw);
if(!empty($selected_caw))
{
$getbatchnotispertama=Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url').'/arcc/getbatchnotispertama',[
'fasa' => $fasa
])->json();
$newbatchnotis=$getbatchnotispertama;
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);
$insertnotispertama = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/arcc/insertnotispertama/'.$caw ,[
'fasa' => $fasa,
'kodcaw' => $caw,
'notisid' => $newbatchnotis
])->json();
$data = [
'kodcaw'=>$caw,
'caw_name'=>$cawangan_info['details_caw'],
'datagadai' => $insertnotispertama ? $insertnotispertama : '',
];
array_push($senarai,$data);
}
return redirect()->route('arcc.notisperingatanpertama')->with('success','Berjaya Daftar Notis Peringatan Pertama.');
}else{
return redirect()->route('arcc.notisperingatanpertama')->with('failed','Maaf,Tiada Cawangan Dipilih Sila Cuba Lagi...');
}
}
public function rekodnotisperingatan()
{
@@ -187,7 +262,7 @@ class CallCenterController extends Controller
if($request->type == 'whatsapp')
{
$blastwhatsapp = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/arcc/blastwasapbysag/'.$auth_user['cawangan'],
$blastwhatsapp = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/arcc/notis/blastwasapbysag/'.$auth_user['cawangan'],
['kodcaw' => $kodcaw,'notisid' => $notisid, 'namapengguna' => $auth_user['name'],])->json();
if($blastwhatsapp == 'success'){
return redirect()->route('arcc.bycawnotisperingatan',['kodcaw' => $kodcaw, 'notisid' => $notisid])
@@ -211,7 +286,7 @@ class CallCenterController extends Controller
if($request->type == 'whatsapp')
{
$blastwhatsapp = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/arcc/blastwasapbysag',
$blastwhatsapp = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/arcc/notis/blastwasapbysag',
['kodcaw' => $kodcaw,'notisid' => $notisid, 'namapengguna' => $auth_user['name'],])->json();
if($blastwhatsapp == 'success'){
return redirect()->route('arcc.bycawnotisperingatan',['kodcaw' => $kodcaw, 'notisid' => $notisid])
@@ -286,5 +361,181 @@ class CallCenterController extends Controller
return view('callcenter.' . $cawangan_info['version'] . '.info',compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','negeri'));
}
public function notisperingatankedua(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.notisperingatankedua',compact('cawangan_info','api_url'));
}
public function kemaskininotisperingatan($notisid)
{
$auth_user = Auth::user();
$api_url = config('api.url');
$senarai = [];
$detailnotis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotis/'.$notisid)->json();
foreach($detailnotis as $info)
{
$kemaskininotisperingatan = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url'). '/arcc/kemaskininotisperingatan', [
'kodcaw' => $info[0]['kodcaw'],
'notisid' => $notisid
])->json();
if($kemaskininotisperingatan == 'success'){
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.detailnotisperingatan',compact('detailnotis','senarai','notisid'));
}
public function cariansagnotiskedua(Request $request)
{
// dd($request->all());
$api_url = config('api.url');
$auth_user = Auth::user();
$current = Carbon::now();
$current = new Carbon();
$tarikh_cetak = $current->toDateString();
$fasa = $request->fasa;
$notis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/arcc/cariannotiskedua',[
'fasa' => $fasa
])->json();
return redirect()->route('arcc.notisperingatankedua')->with('success','Berjaya Daftar Notis Peringatan Kedua.');
}
public function rekodnotisperingatankedua()
{
$auth_user = Auth::user();
$api_url = config('api.url');
$arrayinfo = [];
// $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();
// dd($notis);
foreach($notis as $info)
{
$getcawnotis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotis/'.$info['id'])->json();
array_push($arrayinfo, ['info'=> $info,'cawnotis' => $getcawnotis]);
}
// dd($arrayinfo);
return view('callcenter.rekodnotisperingatankedua',compact('notis','arrayinfo'));
}
public function detailnotisperingatankedua($notisid)
{
$auth_user = Auth::user();
$api_url = config('api.url');
$senarai = [];
$detailnotis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotis/'.$notisid)->json();
foreach($detailnotis as $info)
{
$getcawnotiskeduabycaw = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotiskeduabycaw', [
'kodcaw' => $info[0]['kodcaw'],
'notisid' => $notisid
])->json();
$data = [
'detailnotis' => $info ? $info : '',
'getcawnotisbycaw' => $getcawnotiskeduabycaw ? $getcawnotiskeduabycaw : '',
];
array_push($senarai,$data);
}
return view('callcenter.detailnotisperingatankedua',compact('detailnotis','senarai','notisid'));
}
public function bycawnotisperingatankedua($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();
$bycawnotisperingatankedua = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/bycawnotisperingatankedua/'.$kodcaw.'/'.$notisid)->json();
// if($request->type == 'whatsapp')
// {
// $blastwhatsapp = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/arcc/blastwasapbysag/'.$auth_user['cawangan'],
// ['kodcaw' => $kodcaw,'notisid' => $notisid, 'namapengguna' => $auth_user['name'],])->json();
// if($blastwhatsapp == 'success'){
// return redirect()->route('arcc.bycawnotisperingatankedua',['kodcaw' => $kodcaw, 'notisid' => $notisid])
// ->with('success','Blast Whatsapp Dalam Proses.');
// }
// elseif($blastwhatsapp == 'failed'){
// return redirect()->route('arcc.bycawnotisperingatankedua',['kodcaw' => $kodcaw, 'notisid' => $notisid])
// ->with('failed','Blast Whatsapp Tidak Berjaya, Sila Semak Semula Rekod Blasted.');
// }
// }
return view('callcenter.bycawdetailnotisperingatankedua',compact('cawangan_info','bycawnotisperingatankedua','kodcaw','notisid','api_url'));
}
public function blastkedua($kodcaw,$notisid,Request $request)
{
$current = Carbon::now();
$current = new Carbon();
$tarikh_cetak = $current->toDateString();
$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();
$bycawnotisperingatan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/bycawnotisperingatan/'.$kodcaw.'/'.$notisid)->json();
if($request->type == 'whatsapp')
{
$blastwhatsappkedua = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url').'/arcc/notis/blastwasapbysagkedua',
['kodcaw' => $kodcaw,'notisid' => $notisid, 'namapengguna' => $auth_user['name'],])->json();
if($blastwhatsappkedua == 'success'){
return redirect()->route('arcc.bycawnotisperingatankedua',['kodcaw' => $kodcaw, 'notisid' => $notisid])
->with('success','Blast Whatsapp Dalam Proses.');
}
elseif($blastwhatsappkedua == 'failed'){
return redirect()->route('arcc.bycawnotisperingatankedua',['kodcaw' => $kodcaw, 'notisid' => $notisid])
->with('failed','Blast Whatsapp Tidak Berjaya, Sila Semak Semula Rekod Blasted.');
}
}
elseif($request->type == 'pdf')
{
if($request->fasa == 1)
{
$datanotiskedua = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getdatanotiskedua/'. $kodcaw.'/'.$notisid. '/' . 'fasa1')->json();
$fasa = 'fasa1';
}else{
// dd(false);
$datanotiskedua = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getdatanotiskedua/'. $kodcaw.'/'.$notisid. '/' . 'fasa2')->json();
$fasa = 'fasa2';
// dd($datanotiskedua);
}
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $kodcaw)->json();
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$kodcaw)->json();
$cawangan_detail=$cawangan[0];
// return view('print.notislelong', compact('cawangan_info','notislelong','api_url','cawangan_detail','lelong','tarikh_cetak'));
// dd($datanotiskedua);
$pdf=PDF::loadView('callcenter.suratnotisperingatankedua', compact('cawangan_info','api_url','cawangan_detail','datanotiskedua','fasa','tarikh_cetak'))->setPaper('A4','potrait');
return $pdf->download('notisperingatankedua_'.$tarikh_cetak.'_'.$fasa.'.pdf');
}
return view('callcenter.bycawdetailnotisperingatan',compact('cawangan_info','bycawnotisperingatan','kodcaw','notisid'));
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

@@ -92,15 +92,15 @@
</style>
@section('content')
<div class="container">
<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.notisperingatan') }}">Notis Peringatan</a></li>
<li class="breadcrumb-item"><a href="{{ route('arcc.rekodnotisperingatan') }}">Rekod Notis Peringatan</a></li>
<li class="breadcrumb-item"><a href="{{ route('arcc.notisperingatanpertama') }}">Notis Peringatan Pertama</a></li>
<li class="breadcrumb-item"><a href="{{ route('arcc.rekodnotisperingatan') }}">Rekod Notis Peringatan Pertama</a></li>
<li class="breadcrumb-item"><a href="{{ route('arcc.detailnotisperingatan',['notisid' =>$notisid]) }}">Mengikut Cawangan</a></li>
<li class="breadcrumb-item active" aria-current="page">{{$cawangan_info['details_caw']}}</li>
</ol>
@@ -140,6 +140,11 @@
<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>Tarikh Blast</th>
@@ -152,7 +157,28 @@
<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['pinjaman'], 2, '.', ',')}}</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)
@@ -163,7 +189,6 @@
echo($formattedweddingdate);
@endphp</b></td>
@endif
{{-- <td style="white-space: nowrap;"><a href="{{ route('arcc.bycawnotisperingatan', [ 'kodcaw' => $item['namacaw'][$index]['kodcaw'] ]) }}" class="btn btn-info text-white">Lihat</a></td> --}}
</tr>
@endforeach
</table>
@@ -0,0 +1,312 @@
@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-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 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">
<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">
<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>
</thead>
@foreach ($bycawnotisperingatankedua 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
</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: '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: '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
@@ -99,8 +99,8 @@
<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.notisperingatan') }}">Notis Peringatan</a></li>
<li class="breadcrumb-item"><a href="{{ route('arcc.rekodnotisperingatan') }}">Rekod Notis Peringatan</a></li>
<li class="breadcrumb-item"><a href="{{ route('arcc.notisperingatanpertama') }}">Notis Peringatan Pertama</a></li>
<li class="breadcrumb-item"><a href="{{ route('arcc.rekodnotisperingatan') }}">Rekod Notis Peringatan Pertama</a></li>
<li class="breadcrumb-item active" aria-current="page">Mengikut Cawangan</li>
</ol>
</nav>
@@ -139,13 +139,12 @@
</thead>
@foreach ($senarai[0]['getcawnotisbycaw'] as $index => $item)
{{-- {{dd($item['namacaw'][$index]['status'])}} --}}
<tr>
<td>{{ $loop->iteration }}</td>
<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;">{{count($item['detailbycaw'])}}</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>
@@ -0,0 +1,245 @@
@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('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>
</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="notisid" value="{{$notisid}}" >
<table class="table table-striped table-hover" id="myTable">
<thead>
<th>Bil</th>
<th>Cawangan</th>
<th>Bilangan Surat</th>
<th>Baki Pembiayaan (RM)</th>
<th>Maklumat Lanjut</th>
</thead>
{{-- {{dd($senarai[0]['getcawnotisbycaw'])}} --}}
@foreach ($senarai[0]['getcawnotisbycaw'] as $index => $item)
<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>
</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,313 @@
@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('arcc.notisperingatanpertama') }}">Notis Peringatan Pertama</a></li>
<li class="breadcrumb-item active" aria-current="page">Carian No.Rujukan</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
<form action="{{route('arcc.janadatanotispertama')}}" method="POST" enctype="multipart/form-data">
@csrf
<input type="hidden" class="form-control" id="fasa" name="fasa" value="{{$fasa}}">
{{-- <input type="hidden" class="form-control" id="hinggatempoh" name="hinggatempoh" value="{{$hinggatempoh}}"> --}}
<input type="hidden" class="form-control" id="kodcaw" name="kodcaw" value="{{$kodcaw}}">
<div class="container">
<div class="row">
<table class="table text-left table-bordered" id="senaraitemp" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th><input type="checkbox" aria-label="Checkbox for following text input" id="checkall"></th>
<th>Bil</th>
<th align="center">Kod Cawangan</th>
<th align="center">Cawangan</th>
<th align="left">Bilangan SAG</th>
<th align="left">Total Berat (RM)</th>
<th align="left">Total Pembiayaan (RM)</th>
<th align="left">Total Baki Pembiayaan (RM)</th>
<th align="left">Total Tunggakan Keuntungan (RM)</th>
</tr>
</thead>
<tbody>
{{-- {{dd($senarai)}} --}}
@php $count = 1; $totalsagall = 0; $totalberatall = 0; $totalpembiayaanall = 0; $totalbakipjmall = 0; $totaltunggakanall = 0; @endphp
@foreach($senarai as $send)
@if($send['datagadai']['totalsag'] > 0)
<tr>
<td><input type="checkbox" aria-label="Checkbox for following text input" name="caw[]" id="caw" value = "{{ $send['kodcaw'] }}" class="checkbox"></td>
<td>{{ $count++ }}</td>
<td align="center">{{ $send['kodcaw'] }}</td>
<td align="left" style="white-space: nowrap;">{{ $send['caw_name'] }}<input type="hidden" class="form-control" id="caw_name" name="caw_name[]" value="{{$send['caw_name']}}"></td>
<td align="right">{{$send['datagadai']['totalsag']}}</td>
<td align="right">{{number_format($send['datagadai']['totalberat'], 2)}}</td>
<td align="right">{{number_format($send['datagadai']['totalpembiayaan'], 2)}}</td>
<td align="right">{{number_format($send['datagadai']['totalbakipjm'], 2)}}</td>
<td align="right">{{number_format($send['datagadai']['totaltunggakan'], 2)}}</td>
</tr>
@php
$totalsagall += $send['datagadai']['totalsag'];
$totalberatall += $send['datagadai']['totalberat'];
$totalpembiayaanall += $send['datagadai']['totalpembiayaan'];
$totalbakipjmall += $send['datagadai']['totalbakipjm'];
$totaltunggakanall += $send['datagadai']['totaltunggakan'];
@endphp
@endif
@endforeach
</tbody>
<tfoot>
<tr>
<td colspan="4"><b>JUMLAH KESELURUHAN</b></td>
<td align = 'right'><b>{{ number_format($totalsagall, 0, '.', ',') }}</b></td>
<td align = 'right'><b>{{ number_format($totalberatall, 2, '.', ',') }}</b></td>
<td align = 'right'><b>{{ number_format($totalpembiayaanall, 2, '.', ',') }}</b></td>
<td align = 'right'><b>{{ number_format($totalbakipjmall, 2, '.', ',') }}</b></td>
<td align = 'right'><b>{{ number_format($totaltunggakanall, 2, '.', ',') }}</b></td> {{-- <td align = 'right'></td> --}}
</tr>
</tfoot>
</table>
</div>
</div>
<div class="text-center">
<a href="{{ route('arcc.notisperingatanpertama') }}" class="btn btn-primary" style="width:8%;">Kembali</a>
<button type="submit" class="btn btn-success">Jana Notis Peringatan</button>
</div>
</form>
</div>
</div>
</div>
<script type='text/javascript'>
$(document).ready(function(){
// Check or Uncheck All checkboxes
$("#checkall").change(function(){
var checked = $(this).is(':checked');
if(checked){
$(".checkbox").each(function(){
$(this).prop("checked",true);
});
}else{
$(".checkbox").each(function(){
$(this).prop("checked",false);
});
}
});
// Changing state of CheckAll checkbox
$(".checkbox").click(function(){
if($(".checkbox").length == $(".checkbox:checked").length) {
$("#checkall").prop("checked", true);
} else {
$("#checkall").prop("checked", false);
}
});
});
</script>
<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,254 @@
@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('arcc.notisperingatanpertama') }}">Notis Peringatan</a></li>
<li class="breadcrumb-item"><a href="{{ route('arcc.notisperingatankedua') }}">Notis Peringatan Kedua</a></li>
<li class="breadcrumb-item active" aria-current="page">Carian No.Rujukan</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="col-md-4 mx-auto">
<form action="{{ route('arcc.cariansagnotiskedua') }}" method="get">
@csrf
<div class="input-group mb-4">
*14hari Sebelum Cukup Tarikh Matang/Tamat Kontrak
<div class="col-sm-12">
<input type="radio" value='1' id="fasa1" name="fasa" checked>
<label for="1">Fasa 1 (6 Bulan)</label><br>
<input type="radio" value='2' id="fasa2" name="fasa">
<label for="2">Fasa 2 (12 Bulan)</label>
</div>
</div>
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Carian">
</div>
</div>
<div class="row">
<input type="hidden" name="radaktif" value="aktif">
</div>
</form>
<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('arcc.rekodnotisperingatankedua') }}" class="btn btn-dark btn-lg btn-block mb-3">Rekod Notis Peringatan Kedua</a>
</label>
{{-- <label class="btn btn-lg radio-green">
<a href="{{ route('arcc.notisperingatankedua') }}" class="btn btn-dark btn-lg btn-block mb-3">Jana Notis Peringatan Kedua</a>
</label> --}}
</div>
</div>
</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,279 @@
@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('arcc.notisperingatanpertama') }}">Notis Peringatan</a></li>
<li class="breadcrumb-item active" aria-current="page">Carian No.Rujukan</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="col-md-12-center mx-auto">
<form action="{{ route('arcc.cariansagnotispertama') }}" method="get">
@csrf
<div class="input-group-center mb-8-center">
<b>*30hari Sebelum Cukup Tarikh Matang/Tamat Kontrak</b>
<div class="col-sm-12">
<input type="radio" value='1' id="fasa1" name="fasa" checked>
<label for="1">Fasa 1 (6 Bulan)</label><br>
<input type="radio" value='2' id="fasa2" name="fasa">
<label for="2">Fasa 2 (12 Bulan)</label>
</div>
</div>
<input type="submit" class="btn btn-primary ml-md-5-center" id="submit_button" name="submit_button" value="Carian">
{{-- <div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="daritempoh">Dari Tempoh</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="Tempoh" aria-describedby="daritempoh" name = 'daritempoh'>
</div> --}}
</div>
{{-- <div class="col-md-5 mx-auto">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="hinggatempoh">Hingga Tempoh</span>
</div>
<input type="text" class="form-control" placeholder="" aria-label="Tempoh" aria-describedby="hinggatempoh" name = 'hinggatempoh'>
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Carian">
</div>
</div> --}}
</div>
<br><br>
<div class="row">
{{-- <div class="btn-group-toggle col-md-12 col-sm-12 mb-4 radiostyle" data-toggle="buttons"> --}}
{{-- <label class="btn btn-lg radio-yellow"> --}}
<input type="hidden" name="radaktif" value="aktif">
{{-- <span>Aktif</span> --}}
{{-- </label> --}}
{{-- <label class="btn btn-lg radio-green">
<input autocomplete="off" type="radio" name="radaktif" id="option2" value="takaktif" autocomplete="off"><span>Tak Aktif</span>
</label> --}}
{{-- </div> --}}
</div>
<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('arcc.rekodnotisperingatan') }}" class="btn btn-dark btn-lg btn-block mb-3">Rekod Notis Peringatan</a>
</label>
<label class="btn btn-lg radio-green">
<a href="{{ route('arcc.notisperingatankedua') }}" class="btn btn-dark btn-lg btn-block mb-3">Jana Notis Peringatan 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
@@ -99,8 +99,8 @@
<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.notisperingatan') }}">Notis Peringatan</a></li>
<li class="breadcrumb-item active" aria-current="page">Rekod Notis Peringatan</li>
<li class="breadcrumb-item"><a href="{{ route('arcc.notisperingatanpertama') }}">Notis Peringatan Pertama</a></li>
<li class="breadcrumb-item active" aria-current="page">Rekod Notis Peringatan Pertama</li>
</ol>
</nav>
@@ -132,8 +132,7 @@
<th>Bil</th>
<th>Tarikh Notis</th>
<th>Cawangan</th>
<th>Dari Tempoh</th>
<th>Hingga Tempoh</th>
<th>Fasa</th>
<th>Maklumat Lanjut</th>
</thead>
@@ -155,9 +154,15 @@
{{ $item2['details_caw']}}<br>
@endforeach
@endforeach</td>
<td style="white-space: nowrap;">{{ $item['info']['daritempoh'] ?? '-' }}</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></td>
<td style="white-space: nowrap;">@if($item['info']['daritempoh'] == '5' )
Fasa 1
@elseif($item['info']['daritempoh'] == '11' )
Fasa 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('arcc.kemaskininotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Kemaskini</a></td>
</tr>
@endforeach
</table>
@@ -0,0 +1,261 @@
@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('arcc.notisperingatankedua') }}">Notis Peringatan Kedua</a></li>
<li class="breadcrumb-item active" aria-current="page">Rekod Notis Peringatan Kedua</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>Bil</th>
<th>Tarikh Notis</th>
<th>Cawangan</th>
<th>Fasa</th>
{{-- <th>Hingga Tempoh</th> --}}
<th>Maklumat Lanjut</th>
</thead>
@foreach ($arrayinfo as $index => $item)
{{-- {{dd($item['cawnotis'])}} --}}
<tr>
<td style="white-space: nowrap;">{{ $item['info']['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'] == 3)
<img src="{{ asset('img/surat.png') }}" style="width:20px"></img>
@endif
{{ $item2['details_caw']}}<br>
@endforeach
@endforeach</td>
<td style="white-space: nowrap;">@if($item['info']['daritempoh'] == '5' )
Fasa 1
@elseif($item['info']['daritempoh'] == '11' )
Fasa 2
@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.kemaskininotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Kemaskini</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,214 @@
<style>
#header {
/* font-family: Arial, Helvetica, sans-serif; */
border-collapse: collapse;
width: 100%;
}
#header td, #customers th {
padding-left:4px;
font-size:12px;
}
#header tr:nth-child(even){background-color: #ffffff;}
#header tr:hover {background-color: #ddd;}
#header th {
/* padding-top: 12px;
padding-bottom: 12px; */
text-align: left;
/* padding:4px; */
color:black;
}
</style>
<style>
#scan {
/* font-family: Arial, Helvetica, sans-serif; */
border-collapse: collapse;
width: 100%;
}
#scan td, #scan th {
padding: 8px;
font-size:11px;
}
#scan tr:nth-child(even){background-color: #ffffff;}
#scan tr:hover {background-color: #ddd;}
#scan th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</style>
<style>
#scan {
/* font-family: Arial, Helvetica, sans-serif; */
border-collapse: collapse;
width: 100%;
}
#scan td, #scan th {
border-collapse: collapse;
padding: 8px;
font-size:11px;
}
#scan tr:nth-child(even){background-color: #ffffff;}
#scan tr:hover {background-color: #ddd;}
#scan th {
border-collapse: collapse;
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
</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;
}
.container{
page-break-after:always;
padding: 20px 20px 20px 20px;
}
.tablestyle{
font-size:12px;
}
.tablestyle td, .tablestyle th{
/* padding-top: 12px; */
/* border:1px solid black; */
}
</style>
{{-- {{dd($datanotiskedua)}} --}}
@foreach($datanotiskedua as $index=>$lel)
<div class="container">
<table id="header">
<tr>
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
<th colspan="1">{{ $cawangan_detail['namacaw'] }}</th>
</tr>
<tr>
<td style="vertical-align:top;">{{ $cawangan_detail['alamat1'] }}</td>
<td></td>
</tr>
<tr>
<td style="vertical-align:top;">{{ $cawangan_detail['alamat2'] }}</td>
<td></td>
</tr>
<tr>
<td style="vertical-align:top;">{{ ' No Tel : '. $cawangan_detail['notel'] . ' No Faks : '. $cawangan_detail['nofaks'] }}</td>
<td></td>
</tr>
</table>
<br>
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $lel['tmatang']);
$myDateTime1 = DateTime::createFromFormat('Y-m-d', $lel['tmatang1']);
$tmatang = $myDateTime->format('d-m-Y');
$tmatang1 = $myDateTime1->format('d-m-Y');
@endphp
<div>
<table class="tablestyle">
<tr>
<td width="15%">TARIKH CETAK
</td>
<td width="1%">:</td>
<td width="43%">@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
$datez = $myDateTime->format('d-m-Y');
echo($datez);
@endphp
<td colspan="3"></td>
</td>
</tr>
<tr>
<td><br></td>
</tr>
<tr>
<td>NO RUJUKAN</td>
<td>:</td>
<td>{{ $lel['norujukan'] }}</td>
<td> </td>
<td width="14%">NO TELEFON</td>
<td width="1%">:</td>
<td>{{ $lel['telefon1'] }}</td>
</tr>
<tr>
<td style="vertical-align:top;">KEPADA</td>
<td style="vertical-align:top;">:</td>
<td style="vertical-align:top;">{{ $lel['nama'] }}<br> {{ strtoupper($lel['alamat']) }} <br> {{ ' ' . $lel['poskod'] . ' ' . strtoupper($lel['daerah']) . ' ' . strtoupper($lel['negeri'])}}</td>
<td></td>
<td style="vertical-align:top;">NO K/P</td>
<td style="vertical-align:top;">:</td>
<td style="vertical-align:top;"> {{ $lel['nokp'] }}</td>
</tr>
</table>
<p>Tuan/Puan,</p>
<h4><u>NOTIS PEMBERITAHUAN</u></h4>
<p>Dengan hormatnya dimaklumkan gadaian tuan/puan bernombor <b>{{$lel['norujukan']}}</b> dengan jumlah pembiayaan
sebanyak <b>RM{{number_format($lel['pinjaman'], 2, '.', ',')}}</b> akan/telah tamat tarikh matang gadaiannya pada <b> @if($lel['leltawarruq'] == '0'){{$tmatang1}} @elseif($lel['leltawarruq'] == '1') {{$tmatang}} @endif</b> yang telah mencecah <b>{{$lel['tempoh']}}</b> bulan.
Tuan/puan atau wakil adalah dikehendaki menebus/membayar <b>KOS KEUNTUNGAN</b> tersebut secepat mungkin.
Jika pihak tuan/puan menghadapi sebarang masalah, sila hubungi kami sebagaimana alamat di atas ATAU
datang sendiri ke AR-RAHN dengan membawa bersama salinan asal Surat Akaun Gadaian tuan/puan.</p>
<p>Sekian, terima kasih.</p>
<p>Nota:</p>
<i>Sila abaikan notis ini sekiranya pihak tuan/puan telah membuat urusan di atas.</i>
<br>
<i>Notis ini adalah cetakan berkomputer dan tiada tandatangan diperlukan</i>
</div>
</div>
@endforeach
@@ -15,7 +15,7 @@
<div class="card-body text-center">
<a href="{{ route('arcc.pelanggan') }}" class="btn btn-info btn-lg">Pelanggan</a>
<a href="{{ route('arcc.notisperingatan') }}" class="btn btn-info btn-lg">Notis Peringatan</a>
<a href="{{ route('arcc.notisperingatanpertama') }}" class="btn btn-info btn-lg">Notis Peringatan</a>
{{-- <a href="{{ route('daftar.kakitangan') }}" class="btn btn-info btn-lg">Kakitangan</a>
<a href="{{ route('parameter') }}" class="btn btn-info btn-lg">Parameter</a>
<a href="{{ route('komuditi') }}" class="btn btn-info btn-lg">Komoditi</a> --}}
+11
View File
@@ -399,8 +399,11 @@ Route::post('laporan/ansuranujrah/cetak',['as'=>'ansuranujrah.laporancetak','use
//ROLE CALLCENTER
Route::get('/notisperingatan',['as'=>'arcc.notisperingatan','uses'=>'CallCenterController@notisperingatan'])->middleware('auth','callcenter');
Route::get('/notisperingatanpertama',['as'=>'arcc.notisperingatanpertama','uses'=>'CallCenterController@notisperingatanpertama'])->middleware('auth','callcenter');
Route::get('/cariansag',['as'=>'arcc.cariansag','uses'=>'CallCenterController@cariansag'])->middleware('auth','callcenter');
Route::get('/cariansagnotispertama',['as'=>'arcc.cariansagnotispertama','uses'=>'CallCenterController@cariansagnotispertama'])->middleware('auth','callcenter');
Route::post('/janadatanotisperingatan',['as'=>'arcc.janadatanotisperingatan','uses'=>'CallCenterController@janadatanotisperingatan'])->middleware('auth','callcenter');
Route::post('/janadatanotispertama',['as'=>'arcc.janadatanotispertama','uses'=>'CallCenterController@janadatanotispertama'])->middleware('auth','callcenter');
Route::get('/rekodnotisperingatan',['as'=>'arcc.rekodnotisperingatan','uses'=>'CallCenterController@rekodnotisperingatan'])->middleware('auth','callcenter');
Route::get('/detailnotisperingatan/{notisid}',['as'=>'arcc.detailnotisperingatan','uses'=>'CallCenterController@detailnotisperingatan'])->middleware('auth','callcenter');
Route::get('/bycawnotisperingatan/{kodcaw}/{notisid}',['as'=>'arcc.bycawnotisperingatan','uses'=>'CallCenterController@bycawnotisperingatan'])->middleware('auth','callcenter');
@@ -409,6 +412,14 @@ Route::get('/arcc/pelanggan',['as'=>'arcc.pelanggan','uses'=>'CallCenterControll
Route::get('/arcc/searchpelanggan',['as'=>'arcc.searchpelanggan','uses'=>'CallCenterController@search'])->middleware('auth','callcenter');
Route::get('/arcc/customer_info',['as'=>'arcc.customer_info','uses'=>'CallCenterController@info'])->middleware('auth','callcenter');
Route::get('/arcc/history',['as'=>'arcc.history','uses'=>'GadaianController@history'])->middleware('auth','callcenter');
Route::get('/notisperingatankedua',['as'=>'arcc.notisperingatankedua','uses'=>'CallCenterController@notisperingatankedua'])->middleware('auth','callcenter');
Route::get('/rekodnotisperingatankedua',['as'=>'arcc.rekodnotisperingatankedua','uses'=>'CallCenterController@rekodnotisperingatankedua'])->middleware('auth','callcenter');
Route::get('/kemaskininotisperingatan/{notisid}',['as'=>'arcc.kemaskininotisperingatan','uses'=>'CallCenterController@kemaskininotisperingatan'])->middleware('auth','callcenter');
Route::get('/cariansagnotiskedua',['as'=>'arcc.cariansagnotiskedua','uses'=>'CallCenterController@cariansagnotiskedua'])->middleware('auth','callcenter');
Route::get('/detailnotisperingatankedua/{notisid}',['as'=>'arcc.detailnotisperingatankedua','uses'=>'CallCenterController@detailnotisperingatankedua'])->middleware('auth','callcenter');
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');