diff --git a/app/Http/Controllers/CallCenterController.php b/app/Http/Controllers/CallCenterController.php index 5018b97..9a1e263 100644 --- a/app/Http/Controllers/CallCenterController.php +++ b/app/Http/Controllers/CallCenterController.php @@ -538,4 +538,31 @@ class CallCenterController extends Controller } + public function kemaskininotisperingatankedua($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.detailnotisperingatankedua',['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.detailnotisperingatankedua',compact('detailnotis','senarai','notisid')); + } + + } diff --git a/resources/views/callcenter/bycawdetailnotisperingatan.blade.php b/resources/views/callcenter/bycawdetailnotisperingatan.blade.php index 3e47160..7c2e1e1 100644 --- a/resources/views/callcenter/bycawdetailnotisperingatan.blade.php +++ b/resources/views/callcenter/bycawdetailnotisperingatan.blade.php @@ -70,7 +70,7 @@ #details th { padding: 8px; - font-size: 11px; + font-size: 14px; } #details tr:nth-child(even) { @@ -123,7 +123,7 @@ @endif -
+
@csrf @@ -260,7 +260,7 @@ alert("ADAKAH ANDA PASTI?"); $('#typedonwload').val('whatsapp'); $("#exportpdf").submit(); -}); + }); } } diff --git a/resources/views/callcenter/bycawdetailnotisperingatankedua.blade.php b/resources/views/callcenter/bycawdetailnotisperingatankedua.blade.php index 3a56ff5..156114e 100644 --- a/resources/views/callcenter/bycawdetailnotisperingatankedua.blade.php +++ b/resources/views/callcenter/bycawdetailnotisperingatankedua.blade.php @@ -70,7 +70,7 @@ #details th { padding: 8px; - font-size: 11px; + font-size: 14px; } #details tr:nth-child(even) { @@ -123,7 +123,7 @@
@endif -
+
{{-- --}} @@ -138,10 +138,10 @@ ->get($api_url . '/arcc/getfasa', ['kodcaw' => $kodcaw, 'notisid' => $notisid]) ->json(); @endphp - + - +
@@ -162,6 +162,7 @@ + {{-- {{dd($bycawnotisperingatankedua)}} --}} @foreach ($bycawnotisperingatankedua as $index => $item) diff --git a/resources/views/callcenter/notisperingatanpertama.blade.php b/resources/views/callcenter/notisperingatanpertama.blade.php index 98f2f65..18c84db 100644 --- a/resources/views/callcenter/notisperingatanpertama.blade.php +++ b/resources/views/callcenter/notisperingatanpertama.blade.php @@ -174,7 +174,7 @@
--}} - diff --git a/resources/views/callcenter/rekodnotisperingatankedua.blade.php b/resources/views/callcenter/rekodnotisperingatankedua.blade.php index dcd5a77..5bdeae4 100644 --- a/resources/views/callcenter/rekodnotisperingatankedua.blade.php +++ b/resources/views/callcenter/rekodnotisperingatankedua.blade.php @@ -160,8 +160,9 @@ @elseif($item['info']['daritempoh'] == '11' ) Fasa 2 @endif - + @endforeach diff --git a/routes/web.php b/routes/web.php index fd77529..8e52a2a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -419,6 +419,7 @@ Route::get('/cariansagnotiskedua',['as'=>'arcc.cariansagnotiskedua','uses'=>'Cal 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'); +Route::get('/kemaskininotisperingatankedua/{notisid}',['as'=>'arcc.kemaskininotisperingatankedua','uses'=>'CallCenterController@kemaskininotisperingatankedua'])->middleware('auth','callcenter');
Bil No.Rujukan
{{ $loop->iteration }}{{ $item['info']['hinggatempoh'] ?? '-' }}Lihat + + {{-- Lihat --}} Kemaskini
Lihat - Kemaskini + {{-- Lihat --}} + Kemaskini