Merged in izzati-feat-format-notis-lelong-baru-30jun (pull request #40)
Izzati feat format notis lelong baru 30jun
This commit is contained in:
@@ -20,6 +20,11 @@ use App\Models\FileMarhun;
|
||||
use App\Services\MarhunPhotoService;
|
||||
use App\Models\Pengesahan;
|
||||
use App\Models\LelongBidMarhun;
|
||||
use App\Models\LogUser;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use App\Jobs\WhatsappPengesahanPembida;
|
||||
use App\Jobs\WhatsappTidakSahBayaran;
|
||||
use PDF;
|
||||
|
||||
class AccountController extends Controller
|
||||
@@ -277,6 +282,7 @@ class AccountController extends Controller
|
||||
|
||||
public function sahbayaronline(Request $request)
|
||||
{
|
||||
// dd($request->all());
|
||||
$currentdate = Carbon::now();
|
||||
$currentdate = $currentdate->toDateTimeString();
|
||||
|
||||
@@ -285,7 +291,27 @@ class AccountController extends Controller
|
||||
$total_payment = 0;
|
||||
|
||||
$senaraisag = $request->senarai_sag;
|
||||
$user_notelbimbit = $request->notel_pembida;
|
||||
$user_namapembida = $request->nama_pembida;
|
||||
|
||||
|
||||
if($request->jenis_button == 'tidaksah'){
|
||||
//insert loguser
|
||||
$loguser = new LogUser;
|
||||
$loguser->user_id = $user->id;
|
||||
$loguser->date = $currentdate;
|
||||
$loguser->username = $user->username;
|
||||
$loguser->nama_user = $user->name;
|
||||
// $loguser->norujukan = $data['norujukan'];
|
||||
$loguser->nota = $request->kodcaw.': '.$request->nama_pembida.' ('.$request->nokp_pembida.'): Bukti Bayaran Tidak Sah';
|
||||
$loguser->save();
|
||||
|
||||
WhatsappTidakSahBayaran::dispatch($user_namapembida);
|
||||
|
||||
return redirect()->route('home')->with('failed','Pembayaran Tidak Sah');
|
||||
|
||||
|
||||
}elseif($request->jenis_button == 'sah'){
|
||||
foreach(json_decode($senaraisag) as $sag)
|
||||
{
|
||||
$payment = Payment::where('id', $sag->payment_id)->first();
|
||||
@@ -309,8 +335,21 @@ class AccountController extends Controller
|
||||
$bidder->status_payment = 1;
|
||||
$bidder->update();
|
||||
}
|
||||
WhatsappPengesahanPembida::dispatch($user_notelbimbit,$user_namapembida);
|
||||
|
||||
//insert loguser
|
||||
$loguser = new LogUser;
|
||||
$loguser->user_id = $user->id;
|
||||
$loguser->date = $currentdate;
|
||||
$loguser->username = $user->username;
|
||||
$loguser->nama_user = $user->name;
|
||||
// $loguser->norujukan = $data['norujukan'];
|
||||
$loguser->nota = $request->kodcaw.': '.$request->nama_pembida.' ('.$request->nokp_pembida.'): Bukti Bayaran Telah Sah';
|
||||
$loguser->save();
|
||||
|
||||
|
||||
return redirect()->route('home')->with('success','Pembayaran Berjaya');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -426,7 +426,9 @@ class HomeController extends Controller
|
||||
$user = Auth::user();
|
||||
$dateTime = date('Y-m-d');
|
||||
|
||||
if ($user->hasRole('callcenter')) {
|
||||
if ($user->hasRole('ajk')) {
|
||||
return view('homeajk');
|
||||
} else if ($user->hasRole('callcenter')) {
|
||||
return view('homecallcenter');
|
||||
} else if ($user->hasRole('operasi-kpi')) {
|
||||
return view('homeoperasikpi');
|
||||
|
||||
@@ -54,6 +54,7 @@ use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use App\Jobs\HantarMail;
|
||||
use App\Jobs\WhatsappPemenang;
|
||||
use App\Jobs\AutoTamatlelong;
|
||||
|
||||
class LelongController extends Controller
|
||||
{
|
||||
@@ -1955,6 +1956,8 @@ class LelongController extends Controller
|
||||
$currentdate = Carbon::now();
|
||||
$currenttime = $currentdate->toTimeString();
|
||||
$endtime = $currentdate->addHours(2);
|
||||
// $endtime = $currentdate->addMinutes(3);
|
||||
|
||||
|
||||
$lelong = Lelong::where('id','=',$id)->first();
|
||||
$lelong->masamula_lelong = $currenttime;
|
||||
@@ -1970,6 +1973,20 @@ class LelongController extends Controller
|
||||
$cawlel->status_online = 1; //start lelong
|
||||
$cawlel->save();
|
||||
}
|
||||
//run job tamat lelong
|
||||
AutoTamatLelong::dispatch($id)->delay(Carbon::now()->addHours(2));
|
||||
// AutoTamatLelong::dispatch($id)->delay(Carbon::now()->addMinutes(3));
|
||||
|
||||
|
||||
//insert loguser
|
||||
$loguser = new LogUser;
|
||||
// $loguser->user_id = $user->id;
|
||||
$loguser->date = $currentdate;
|
||||
$loguser->username = 'System';
|
||||
$loguser->nama_user = 'System';
|
||||
// $loguser->norujukan = $data['norujukan'];
|
||||
$loguser->nota = 'Lelongan Mula';
|
||||
$loguser->save();
|
||||
|
||||
return redirect()->route('home');
|
||||
}
|
||||
@@ -3601,9 +3618,37 @@ class LelongController extends Controller
|
||||
|
||||
$datalelbid = LelongBid::where('caw_id','=',$caw->caw_id)->where('lelong_id',$id)->where('status_jual','=', 0)->get();
|
||||
$suratcaw = $datalelbid->all();
|
||||
|
||||
foreach(array_chunk($suratcaw,100) as $data_chunk)
|
||||
{
|
||||
// dd($datalelbid);
|
||||
foreach($data_chunk as $data1)
|
||||
{
|
||||
$biddersag = LelongBidder::where('lelongbid_id', $data1->id)
|
||||
->where('status_bidder','=', 0)->first();
|
||||
if($biddersag){
|
||||
$savedatabidder = $biddersag->replicate();
|
||||
$savedatabidder->setTable('lelongbidder_temp');
|
||||
$savedatabidder->save();
|
||||
|
||||
//insert loguser
|
||||
$loguser = new LogUser;
|
||||
$loguser->user_id = $biddersag->user_id;
|
||||
$loguser->date = $currentdate;
|
||||
$loguser->nama_user = $biddersag->nama_bidder;
|
||||
$loguser->norujukan = $data1->norujukan;
|
||||
$loguser->nota = 'Pernah Bid Sebelum Ini Tapi Kalah';
|
||||
$loguser->save();
|
||||
//hapus lelongbidder yg pernah bid
|
||||
$lelongbidder = LelongBidder::where('lelongbid_id', $data1->id)
|
||||
->where('status_bidder', 0)
|
||||
->delete();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
foreach($data_chunk as $data)
|
||||
{
|
||||
$savedata = $data->replicate();
|
||||
|
||||
@@ -330,6 +330,173 @@ class NotisController extends Controller
|
||||
return $pdf->download('Penjanaan Notis Fasa 1:Batch Lelong ' . $lelong_id . '.pdf');
|
||||
}
|
||||
|
||||
public function jananotis2_new($lelong_id)
|
||||
{
|
||||
// focus only on variable: $marhuns, $lelongid, $caw, $tarikh_cetak
|
||||
// variable not use: $lelong_id, $customer, $listsag
|
||||
|
||||
$user = Auth::user();
|
||||
|
||||
$caw = Cawangan::where('caw_code', '=', $user->kodcaw)->first();
|
||||
|
||||
$currentdate = Carbon::now();
|
||||
$tarikh_cetak = $currentdate->toDateString();
|
||||
|
||||
$current_date_time = $currentdate->toDateTimeString();
|
||||
|
||||
Log::info("Jana notis fasa 1: " . $user->kodcaw . ", " . $user->name);
|
||||
NotifyJanaNotis::dispatch($user->id, $user->kodcaw, $user->name, 'Jana Notis Fasa 1', $current_date_time);
|
||||
|
||||
$lelongid = Lelong::find($lelong_id);
|
||||
|
||||
$arraynorujukan = LelongBid::where('lelong_id', $lelong_id)->where('kodcaw', $caw->caw_code)->pluck('norujukan');
|
||||
|
||||
$marhuns = Gadai::on($caw->caw_code)->whereIn('norujukan', $arraynorujukan)->select('nokp', 'norujukan','bakipjm','tagbaru')->orderBy('nokp', 'asc')->get();
|
||||
|
||||
$marhuns_pluck_nokp = $marhuns->pluck('nokp');
|
||||
|
||||
$customers = Customer::whereIn('kpbaru', $marhuns_pluck_nokp)
|
||||
->orWhereIn('kplama', $marhuns_pluck_nokp)
|
||||
->join('poskod', 'customer.poskod', '=', 'poskod.poskod')
|
||||
->join('daerah', 'poskod.koddaerah', '=', 'daerah.koddaerah')
|
||||
->join('negeri', 'poskod.kodnegeri', '=', 'negeri.kodnegeri')
|
||||
->get();
|
||||
|
||||
$customers_keyBy_noKp = $customers->keyBy(function ($item) {
|
||||
if ($item->kpbaru != '') {
|
||||
return $item->kpbaru;
|
||||
} else if ($item->kplama != '') {
|
||||
return $item->kplama;
|
||||
}
|
||||
});
|
||||
|
||||
foreach ($marhuns as $index => $marhun) {
|
||||
if ($customers_keyBy_noKp[$marhun->nokp]) {
|
||||
$marhuns[$index]['nama'] = $customers_keyBy_noKp[$marhun->nokp];
|
||||
}
|
||||
|
||||
$getdatalelongbid = LelongBid::where('lelong_id', $lelong_id)->where('norujukan', $marhun->norujukan)->first();
|
||||
//jika ambil data dari api
|
||||
$tagbaru = $marhun->tagbaru;
|
||||
// dd($tagbaru);
|
||||
if($tagbaru == '0'){
|
||||
$getkeuntunganhinggatarikhlelong = Http::get(config('app.api_ujrah_url'). 'get/upahtawarruqbytarikh',[
|
||||
'kodcaw' => $user->kodcaw,
|
||||
'norujukan' => $marhun->norujukan,
|
||||
'tarikh' => $getdatalelongbid['t_lelong'],
|
||||
'jeniskeuntungan' => 'asal'
|
||||
])->json();
|
||||
}elseif($tagbaru == '1'){
|
||||
$getkeuntunganhinggatarikhlelong = Http::get(config('app.api_ujrah_url'). 'get/upahtawarruqbytarikh',[
|
||||
'kodcaw' => $user->kodcaw,
|
||||
'norujukan' => $marhun->norujukan,
|
||||
'tarikh' => $getdatalelongbid['t_lelong'],
|
||||
'jeniskeuntungan' => 'onepercent'
|
||||
])->json();
|
||||
}
|
||||
// dd($getkeuntunganhinggatarikhlelong);
|
||||
$nilaitebus = (float) $getkeuntunganhinggatarikhlelong['harga_tebus'];
|
||||
$nilaipembiayaan = (float) $getdatalelongbid['pinjaman'];
|
||||
$nilaikeuntungan = (float) $getkeuntunganhinggatarikhlelong['upahsemasa'];
|
||||
$jumlah = $nilaipembiayaan + $nilaikeuntungan;
|
||||
|
||||
$marhuns[$index]['nilaitebus'] = $nilaitebus;
|
||||
$marhuns[$index]['nilaipembiayaan'] = $nilaipembiayaan;
|
||||
$marhuns[$index]['nilaikeuntungan'] = $nilaikeuntungan;
|
||||
$marhuns[$index]['jumlah'] = $jumlah;
|
||||
}
|
||||
// return view('pdf.jananotis', compact('marhuns', 'lelongid', 'caw', 'tarikh_cetak'));
|
||||
$pdf = PDF::loadView('pdf.jananotis_new', compact('marhuns', 'lelongid', 'caw', 'tarikh_cetak'))
|
||||
->setPaper('a4', 'potrait');
|
||||
|
||||
return $pdf->download('Penjanaan Notis Fasa 1:Batch Lelong ' . $lelong_id . '.pdf');
|
||||
}
|
||||
|
||||
public function jananotis2_new2($lelong_id)
|
||||
{
|
||||
// focus only on variable: $marhuns, $lelongid, $caw, $tarikh_cetak
|
||||
// variable not use: $lelong_id, $customer, $listsag
|
||||
|
||||
$user = Auth::user();
|
||||
|
||||
$caw = Cawangan::where('caw_code', '=', $user->kodcaw)->first();
|
||||
|
||||
$currentdate = Carbon::now();
|
||||
$tarikh_cetak = $currentdate->toDateString();
|
||||
|
||||
$current_date_time = $currentdate->toDateTimeString();
|
||||
|
||||
Log::info("Jana notis fasa 1: " . $user->kodcaw . ", " . $user->name);
|
||||
NotifyJanaNotis::dispatch($user->id, $user->kodcaw, $user->name, 'Jana Notis Fasa 1', $current_date_time);
|
||||
|
||||
$lelongid = Lelong::find($lelong_id);
|
||||
|
||||
$arraynorujukan = LelongBid::where('lelong_id', $lelong_id)->where('kodcaw', $caw->caw_code)->pluck('norujukan');
|
||||
|
||||
$marhuns = Gadai::on($caw->caw_code)->whereIn('norujukan', $arraynorujukan)->select('nokp', 'norujukan','bakipjm','tagbaru')->orderBy('nokp', 'asc')->get();
|
||||
|
||||
$marhuns_pluck_nokp = $marhuns->pluck('nokp');
|
||||
|
||||
$customers = Customer::whereIn('kpbaru', $marhuns_pluck_nokp)
|
||||
->orWhereIn('kplama', $marhuns_pluck_nokp)
|
||||
->join('poskod', 'customer.poskod', '=', 'poskod.poskod')
|
||||
->join('daerah', 'poskod.koddaerah', '=', 'daerah.koddaerah')
|
||||
->join('negeri', 'poskod.kodnegeri', '=', 'negeri.kodnegeri')
|
||||
->get();
|
||||
|
||||
$customers_keyBy_noKp = $customers->keyBy(function ($item) {
|
||||
if ($item->kpbaru != '') {
|
||||
return $item->kpbaru;
|
||||
} else if ($item->kplama != '') {
|
||||
return $item->kplama;
|
||||
}
|
||||
});
|
||||
|
||||
foreach ($marhuns as $index => $marhun) {
|
||||
if ($customers_keyBy_noKp[$marhun->nokp]) {
|
||||
$marhuns[$index]['nama'] = $customers_keyBy_noKp[$marhun->nokp];
|
||||
}
|
||||
|
||||
$getdatalelongbid = LelongBid::where('lelong_id', $lelong_id)->where('norujukan', $marhun->norujukan)->first();
|
||||
//jika ambil data dari api
|
||||
$tagbaru = $marhun->tagbaru;
|
||||
// dd($tagbaru);
|
||||
if($tagbaru == '0'){
|
||||
$getkeuntunganhinggatarikhlelong = Http::get(config('app.api_ujrah_url'). 'get/upahtawarruqbytarikh',[
|
||||
'kodcaw' => $user->kodcaw,
|
||||
'norujukan' => $marhun->norujukan,
|
||||
'tarikh' => $getdatalelongbid['t_lelong'],
|
||||
'jeniskeuntungan' => 'asal'
|
||||
])->json();
|
||||
}elseif($tagbaru == '1'){
|
||||
$getkeuntunganhinggatarikhlelong = Http::get(config('app.api_ujrah_url'). 'get/upahtawarruqbytarikh',[
|
||||
'kodcaw' => $user->kodcaw,
|
||||
'norujukan' => $marhun->norujukan,
|
||||
'tarikh' => $getdatalelongbid['t_lelong'],
|
||||
'jeniskeuntungan' => 'onepercent'
|
||||
])->json();
|
||||
}
|
||||
// dd($getkeuntunganhinggatarikhlelong);
|
||||
$nilaitebus = (float) $getkeuntunganhinggatarikhlelong['harga_tebus'];
|
||||
$nilaipembiayaan = (float) $getdatalelongbid['pinjaman'];
|
||||
$nilaikeuntungan = (float) $getkeuntunganhinggatarikhlelong['upahsemasa'];
|
||||
$jumlah = $nilaipembiayaan + $nilaikeuntungan;
|
||||
|
||||
$marhuns[$index]['nilaitebus'] = $nilaitebus;
|
||||
$marhuns[$index]['nilaipembiayaan'] = $nilaipembiayaan;
|
||||
$marhuns[$index]['nilaikeuntungan'] = $nilaikeuntungan;
|
||||
$marhuns[$index]['jumlah'] = $jumlah;
|
||||
}
|
||||
// return view('pdf.jananotis', compact('marhuns', 'lelongid', 'caw', 'tarikh_cetak'));
|
||||
$pdf = PDF::loadView('pdf.jananotisfasa2_new', compact('marhuns', 'lelongid', 'caw', 'tarikh_cetak'))
|
||||
->setPaper('a4', 'potrait');
|
||||
|
||||
return $pdf->download('Penjanaan Notis Fasa 2:Batch Lelong ' . $lelong_id . '.pdf');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function listnotis(Request $request){
|
||||
|
||||
|
||||
|
||||
@@ -519,6 +519,48 @@ class PembidaController extends Controller
|
||||
$bida->save();
|
||||
// dd($request->user_id);
|
||||
|
||||
//temp lelongbidder
|
||||
$datalelbid = LelongBidder::where('lelongbid_id', $bida->id)
|
||||
->where('user_id', $infos->user_id)->get();
|
||||
$suratcaw = $datalelbid->all();
|
||||
foreach(array_chunk($suratcaw,100) as $data_chunk)
|
||||
{
|
||||
// dd($datalelbid);
|
||||
foreach($data_chunk as $data)
|
||||
{
|
||||
$savedata = $data->replicate();
|
||||
$savedata->setTable('lelongbidder_temp');
|
||||
$savedata->save();
|
||||
|
||||
//audit trail
|
||||
$loguser = new LogUser;
|
||||
$loguser->user_id = $user->id;
|
||||
$loguser->date = $currentdate;
|
||||
$loguser->username = $user->username;
|
||||
$loguser->nama_user = $user->name;
|
||||
$loguser->norujukan = $norujukan;
|
||||
$loguser->nota = 'Isytihar Joy Bidder';
|
||||
$loguser->save();
|
||||
}
|
||||
}
|
||||
|
||||
$datalelbidxlaku = LelongBid::where('norujukan', $bida->norujukan)->get();
|
||||
$suratcawxlaku = $datalelbidxlaku->all();
|
||||
foreach(array_chunk($suratcawxlaku,100) as $data_chunkxlaku)
|
||||
{
|
||||
// dd($datalelbid);
|
||||
foreach($data_chunkxlaku as $dataxlaku)
|
||||
{
|
||||
$savedataxlaku = $dataxlaku->replicate();
|
||||
$savedataxlaku->setTable('lelongbid_xlaku');
|
||||
$savedataxlaku->save();
|
||||
// dd($caw_lelsag);
|
||||
$caw_lelsag = LelongBid::where('norujukan', $dataxlaku->norujukan)->first();
|
||||
$caw_lelsag->status_payment = '0';
|
||||
$caw_lelsag->xlaku = '1';
|
||||
$caw_lelsag->update();
|
||||
}
|
||||
}
|
||||
//hapus lelongbidder
|
||||
$lelongbidder = LelongBidder::where('lelongbid_id', $bida->id)
|
||||
->where('user_id', $infos->user_id)
|
||||
|
||||
@@ -112,12 +112,19 @@ class PenggunaController extends Controller
|
||||
$user->name = $request->name;
|
||||
$user->username = $request->username;
|
||||
$user->kodcaw = $request->caw;
|
||||
$user->notelbimbit = $request->notelbimbit;
|
||||
$user->status = 'active';
|
||||
$user->t_daftar = $currentdate;
|
||||
$user->email = $request->email;
|
||||
$user->email_verified_at = $currentdate;
|
||||
$user->password = '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi'; //password
|
||||
if($arraytaraf[0] == 'ajk'){
|
||||
$user->user_type = 3;
|
||||
}
|
||||
else{
|
||||
$user->user_type = 1;
|
||||
}
|
||||
|
||||
$user->save();
|
||||
|
||||
$user->syncRoles($arraytaraf);
|
||||
@@ -173,7 +180,7 @@ class PenggunaController extends Controller
|
||||
$user->email = $request->emel;
|
||||
$user->kodcaw = $request->caw;
|
||||
$user->username = $request->username;
|
||||
// $user->notelbimbit = $request->notelbimbit;
|
||||
$user->notelbimbit = $request->notelbimbit;
|
||||
// $user->nokp = $request->nokp;
|
||||
$user->updated_at = $currentdate;
|
||||
$user->status = $status;
|
||||
@@ -359,5 +366,17 @@ class PenggunaController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function listajk()
|
||||
{
|
||||
$alluser = User::with('roles','cawangan')->whereHas("roles", function($q) {
|
||||
$q->where("name",'=', 'ajk');})
|
||||
->orderBy('name','ASC')
|
||||
->get();
|
||||
$allroles = Role::all();
|
||||
$allRolesPluck= $allroles->pluck('name');
|
||||
$caw = Cawangan::all();
|
||||
return view('parameter.listajk',compact('alluser','allroles','caw', 'allRolesPluck'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldBeUnique;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use App\Models\Lelong;
|
||||
use Illuminate\Support\Carbon;
|
||||
use App\Events\LelongNotify;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use App\Models\LogUser;
|
||||
use App\Models\User;
|
||||
use App\Models\CawanganLelong;
|
||||
use App\Models\Cart;
|
||||
|
||||
|
||||
|
||||
class AutoTamatLelong implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public $id;
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$dt = Carbon::now();
|
||||
$timeloni = $dt->toTimeString();
|
||||
$tarikhlelong = $dt->toDateString();
|
||||
|
||||
event(new LelongNotify('stop'));
|
||||
$updatestatus = Lelong::where('sts_lelong',1)
|
||||
->where('tarikh_lelong',$tarikhlelong)
|
||||
->update(['sts_lelong' => 2]);
|
||||
|
||||
$cawlelong = CawanganLelong::where('lelong_id','=',$this->id)->get();
|
||||
foreach($cawlelong as $cawlel) //save old harga asas
|
||||
{
|
||||
// $cawlel->masatamat_lelong = $currenttime;
|
||||
$cawlel->status_online = 0; //start lelong
|
||||
$cawlel->save();
|
||||
}
|
||||
|
||||
$hapuscart = Cart::truncate();
|
||||
|
||||
|
||||
|
||||
$getnoajk = User::where('user_type', 3)->get();
|
||||
foreach($getnoajk as $notifikasi){
|
||||
$mobile_no = '6'.$notifikasi->notelbimbit;
|
||||
|
||||
if(config('app.env') != 'production'){
|
||||
$mobile_no = config('app.admin_phone_number');
|
||||
}
|
||||
$response = Http::get(env('WABOT_API'), [
|
||||
'number' => $mobile_no,
|
||||
'type' => 'text',
|
||||
'message' => 'Lelongan Telah Tamat, Sila Jana Pemenang',
|
||||
'instance_id' => env('WABOT_INSTANCES_ID'),
|
||||
'access_token' => env('WABOT_TOKEN_KEYS')
|
||||
]);
|
||||
}
|
||||
|
||||
//insert loguser
|
||||
$loguser = new LogUser;
|
||||
// $loguser->user_id = $user->id;
|
||||
$loguser->date = $dt;
|
||||
$loguser->username = 'System';
|
||||
$loguser->nama_user = 'System';
|
||||
// $loguser->norujukan = $data['norujukan'];
|
||||
$loguser->nota = 'Lelongan Tamat';
|
||||
$loguser->save();
|
||||
|
||||
Log::info("Lelongan Telah Tamat" . $response);
|
||||
// }
|
||||
|
||||
// event(new LelongNotify('stop'));
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldBeUnique;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
use App\Models\Cawangan;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
class WhatsappPengesahanPembida implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public $user_notelbimbit;
|
||||
public $user_namapembida;
|
||||
|
||||
// protected $notisid;
|
||||
// protected $cawid;
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($user_notelbimbit,$user_namapembida)
|
||||
{
|
||||
$this->user_notelbimbit = $user_notelbimbit;
|
||||
$this->user_namapembida = $user_namapembida;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$mobile_no = ltrim($this->user_notelbimbit, '+');
|
||||
$message = 'AR-RAHN PKB: Terima Kasih '.$this->user_namapembida .', Pembayaran Anda Telah Disahkan, Sila Ke Cawangan Berkenaan Untuk Tuntutan Barang Bidaan Anda Hari Ini.';
|
||||
if(config('app.env') != 'production'){
|
||||
$mobile_no = config('app.admin_phone_number');
|
||||
}
|
||||
$response = Http::get(env('WABOT_API'), [
|
||||
'number' => $mobile_no,
|
||||
'type' => 'text',
|
||||
'message' => $message,
|
||||
'instance_id' => env('WABOT_INSTANCES_ID'),
|
||||
'access_token' => env('WABOT_TOKEN_KEYS')
|
||||
]);
|
||||
|
||||
Log::info("WABOT - Akaun Telah Sahkan Pembayaran: ".$this->user_namapembida .'' . $response);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldBeUnique;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
use App\Models\LogUser;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
|
||||
|
||||
class WhatsappTidakSahBayaran implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public $user_namapembida;
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($user_namapembida)
|
||||
{
|
||||
$this->user_namapembida = $user_namapembida;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$getnoajk = User::where('user_type', 3)->get();
|
||||
foreach($getnoajk as $notifikasi){
|
||||
$mobile_no = '6'.$notifikasi->notelbimbit;
|
||||
|
||||
if(config('app.env') != 'production'){
|
||||
$mobile_no = config('app.admin_phone_number');
|
||||
}
|
||||
$response = Http::get(env('WABOT_API'), [
|
||||
'number' => $mobile_no,
|
||||
'type' => 'text',
|
||||
'message' => 'Bayaran Pembida yang bernama *'.$this->user_namapembida.'* Adalah *Tidak Sah*, Mohon Pihak AJK Lelong Untuk Buat Semakan, Terima Kasih.' ,
|
||||
'instance_id' => env('WABOT_INSTANCES_ID'),
|
||||
'access_token' => env('WABOT_TOKEN_KEYS')
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ class Lelong extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'tarikh_lelong',
|
||||
'masamula_lelong',
|
||||
'masatamat_lelong',
|
||||
'kali',
|
||||
'harga_emas_asas',
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class LelongBidderTemp extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'lelongbidder_temp';
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'lelongbid_id',
|
||||
'nama_bidder',
|
||||
'hargabida',
|
||||
'notelbimbit',
|
||||
'nilaimarhun',
|
||||
'cajlelong',
|
||||
'status_bidder',
|
||||
'status_payment',
|
||||
'masa_bidaan'
|
||||
];
|
||||
|
||||
public function lelongbid() {
|
||||
return $this->hasOne(LelongBid::class,'id', 'lelongbid_id');
|
||||
}
|
||||
|
||||
public function payment()
|
||||
{
|
||||
return $this->hasOne(Payment::class, 'lelongbid_id', 'lelongbid_id')->where('remark', '<>', '');
|
||||
}
|
||||
|
||||
public function scanjual() {
|
||||
return $this->hasOne(ScanJual::class, 'lelongbid_id', 'lelongbid_id');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -245,6 +245,8 @@ return [
|
||||
|
||||
'api_url' => env('API_URL', 'http://localhost'),
|
||||
|
||||
'api_ujrah_url' => env('API_UJRAH_URL', 'http://localhost'),
|
||||
|
||||
'api_verify' => env('API_VERIFY', true),
|
||||
|
||||
'api_url_kaunter' => env('API_URL_KAUNTER', 'http://localhost'),
|
||||
|
||||
@@ -244,6 +244,7 @@ class CreateLelongsTable extends Migration
|
||||
$table->string('mora_upah');
|
||||
$table->integer('fasa')->default(0);
|
||||
$table->integer('opencash')->default(0);
|
||||
$table->integer('xlaku')->default(0);
|
||||
$table->timestamps();
|
||||
|
||||
// $table->foreign('caw_id')
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddPara2ToCawanganTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('cawangan', function (Blueprint $table) {
|
||||
$table->longText('para2')->nullable();
|
||||
$table->longText('para3')->nullable();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('cawangan', function (Blueprint $table) {
|
||||
$table->dropColumn('para2') ;
|
||||
$table->dropColumn('para3') ;
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateLelongbidderTempTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('lelongbidder_temp', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger('user_id')->unsigned();
|
||||
$table->unsignedBigInteger('lelongbid_id')->unsigned();
|
||||
$table->string('kodcaw')->nullable();
|
||||
$table->string('nama_bidder');
|
||||
$table->decimal('hargabida');
|
||||
$table->string('notelbimbit');
|
||||
$table->decimal('nilaimarhun');
|
||||
$table->decimal('cajlelong');
|
||||
$table->integer('status_bidder')->nullable(); //1 = win
|
||||
$table->integer('payment_id')->nullable();
|
||||
$table->integer('status_payment')->nullable(); // 1=paid, 2=memerlukan pengesahan operasi (CDM)
|
||||
$table->datetime('masa_bidaan');
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('lelongbidder_temp');
|
||||
}
|
||||
}
|
||||
@@ -201,6 +201,13 @@ class RolesSeeder extends Seeder
|
||||
'name' => 'skoptugasan',
|
||||
'description' => 'Skop Tugasan Cawangan Kegunaan E-KPI'
|
||||
]);
|
||||
|
||||
//ajklelong
|
||||
Permission::create([
|
||||
'name' => 'semakanlelong',
|
||||
'description' => 'Semakan Lelongan'
|
||||
]);
|
||||
|
||||
// create roles and assign existing permissions
|
||||
$role1 = Role::create(['name' => 'admin']);
|
||||
$role1->givePermissionTo('pengguna');
|
||||
@@ -296,6 +303,9 @@ class RolesSeeder extends Seeder
|
||||
$role14->givePermissionTo('pengurusangambar');
|
||||
$role14->givePermissionTo('pendaftaranbatch');
|
||||
|
||||
$role15 = Role::create(['name' => 'ajk']);
|
||||
$role15->givePermissionTo('semakanlelong');
|
||||
|
||||
// $role3 = Role::create(['name' => 'Super-Admin']);
|
||||
// gets all permissions via Gate::before rule; see AuthServiceProvider
|
||||
|
||||
@@ -416,5 +426,13 @@ class RolesSeeder extends Seeder
|
||||
'user_type' => 1
|
||||
]);
|
||||
$user->assignRole($role14);
|
||||
|
||||
$user = \App\Models\User::factory()->create([
|
||||
'name' => 'Ahli Jawatan Kuasa',
|
||||
'username' => 'ajk',
|
||||
'email' => 'ajk@example.com',
|
||||
'user_type' => 3
|
||||
]);
|
||||
$user->assignRole($role15);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,12 @@
|
||||
<input type="hidden" name="kodcaw" value="{{ $cawanganDetail->caw_code }}" />
|
||||
<input type="hidden" name="user_id" value="{{ $user_id }}" />
|
||||
<input type="hidden" name="senarai_sag" value="{{ $senaraisag }}" />
|
||||
<input type="hidden" name="jenis_button" value="terima" id="jenis_button" />
|
||||
<input type="hidden" name="nama_pembida" value="{{ $userdetails['name']}}" />
|
||||
<input type="hidden" name="nokp_pembida" value="{{ $userdetails['nokp'] }}" />
|
||||
<input type="hidden" name="notel_pembida" value="{{ $userdetails['notelbimbit'] }}" />
|
||||
<input type="hidden" name="kodcaw" value="{{ $caw_code }}" />
|
||||
|
||||
<table class="table table-bordered text-center" style="width:100%">
|
||||
{{-- <thead class="bg-primary text-white">
|
||||
<tr>
|
||||
@@ -127,7 +133,8 @@
|
||||
{{-- @if($sag['checking_payment'])
|
||||
<button type="button" class="btn btn-success" disabled>Berjaya Disahkan</button>
|
||||
@else --}}
|
||||
<button type="button" class="btn btn-success" onclick="confirm()" >Sahkan</button>
|
||||
<button type="button" class="btn btn-success" onclick="confirm(this)" id="sah">Sahkan</button>
|
||||
<button type="button" class="btn btn-danger" onclick="xsahconfirm(this)" id="tidaksah" >Tidak Sah</button>
|
||||
{{-- @endif --}}
|
||||
{{-- @endforeach --}}
|
||||
</div>
|
||||
@@ -163,6 +170,7 @@
|
||||
<script>
|
||||
|
||||
function confirm() {
|
||||
let jenis=event.target.id;
|
||||
$.confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
@@ -172,6 +180,7 @@
|
||||
Sahkan: {
|
||||
btnClass: 'btn-warning',
|
||||
action: function () {
|
||||
$('#jenis_button').val(jenis);
|
||||
$("#formsahbayaronline").submit();
|
||||
}
|
||||
},
|
||||
@@ -182,6 +191,33 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function xsahconfirm() {
|
||||
let jenis=event.target.id;
|
||||
$.confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
type: 'orange',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
TidakSah: {
|
||||
btnClass: 'btn-danger',
|
||||
action: function () {
|
||||
$('#jenis_button').val(jenis);
|
||||
$("#formsahbayaronline").submit();
|
||||
}
|
||||
}
|
||||
,
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
var tablekaunter = $('#tablekaunter').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
|
||||
@@ -35,6 +35,12 @@
|
||||
<input type="hidden" name="lelong_id" value="{{ $lelong_id }}" />
|
||||
<input type="hidden" name="user_id" value="{{ $user_id }}" />
|
||||
<input type="hidden" name="senarai_sag" value="{{ $senaraisag }}" />
|
||||
<input type="hidden" name="jenis_button" value="terima" id="jenis_button" />
|
||||
<input type="hidden" name="nama_pembida" value="{{ $userdetails['name']}}" />
|
||||
<input type="hidden" name="nokp_pembida" value="{{ $userdetails['nokp'] }}" />
|
||||
<input type="hidden" name="notel_pembida" value="{{ $userdetails['notelbimbit'] }}" />
|
||||
<input type="hidden" name="kodcaw" value="{{ $caw_code }}" />
|
||||
|
||||
<table class="table table-striped table-xl text-center" id="tablekaunter" style="width:100%">
|
||||
{{-- <thead class="bg-primary text-white">
|
||||
<tr>
|
||||
@@ -124,7 +130,8 @@
|
||||
{{-- @if($sag['checking_payment'])
|
||||
<button type="button" class="btn btn-success" disabled>Berjaya Disahkan</button>
|
||||
@else --}}
|
||||
<button type="button" class="btn btn-success" onclick="confirm()" >Sahkan</button>
|
||||
<button type="button" class="btn btn-success" onclick="confirm(this)" id="sah">Sahkan</button>
|
||||
<button type="button" class="btn btn-danger" onclick="xsahconfirm(this)" id="tidaksah" >Tidak Sah</button>
|
||||
{{-- @endif --}}
|
||||
{{-- @endforeach --}}
|
||||
</div>
|
||||
@@ -160,6 +167,7 @@
|
||||
<script>
|
||||
|
||||
function confirm() {
|
||||
let jenis=event.target.id;
|
||||
$.confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
@@ -169,6 +177,7 @@
|
||||
Sahkan: {
|
||||
btnClass: 'btn-warning',
|
||||
action: function () {
|
||||
$('#jenis_button').val(jenis);
|
||||
$("#formsahbayaronline").submit();
|
||||
}
|
||||
},
|
||||
@@ -179,6 +188,30 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function xsahconfirm() {
|
||||
let jenis=event.target.id;
|
||||
$.confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
type: 'orange',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
TidakSah: {
|
||||
btnClass: 'btn-danger',
|
||||
action: function () {
|
||||
$('#jenis_button').val(jenis);
|
||||
$("#formsahbayaronline").submit();
|
||||
}
|
||||
}
|
||||
,
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
var tablekaunter = $('#tablekaunter').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-11 mx-auto">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Dashboard') }}</div>
|
||||
<div class="card-body">
|
||||
Ahli Jawatan Kuasa Page
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -88,7 +88,8 @@
|
||||
@else
|
||||
@endif
|
||||
@elseif ($lel['info']['sts_lelong'] == 1)
|
||||
<a class="stoplelongall btn btn-danger" href="{{ route('lelong.stopall',$lel['info']['id']) }}" data-toggle="tooltip" data-placement="top" title="Tamat Lelong">Tamat Lelong Semua Cawangan</a>
|
||||
<!-- <a class="stoplelongall btn btn-danger" href="{{ route('lelong.stopall',$lel['info']['id']) }}" data-toggle="tooltip" data-placement="top" title="Tamat Lelong">Tamat Lelong Semua Cawangan</a> -->
|
||||
<a class="stoplelongall btn btn-danger" data-placement="top" title="Tamat Lelong">Tamat Lelong Semua Cawangan</a>
|
||||
@elseif ($lel['info']['sts_lelong'] == 2)
|
||||
<a class="janapemenangall btn btn-success" href="{{ route('lelong.janapemenangallcaw',$lel['info']['id']) }}" data-toggle="tooltip" data-placement="top" title="Jana Pemenang">Jana Pemenang <i class="fas fa-users-cog"></i></a>
|
||||
@else
|
||||
@@ -124,7 +125,8 @@
|
||||
@if($cawangan_detail['status_online'] == 0 && $cawangan_detail['belum_semak'] == 0)
|
||||
<a class="btn btn-success btn-sm" href="{{ route('lelong.startcawangan',[$lel['info']['id'], 'cawid'=>$cawangan_detail['caw_id']]) }}" data-toggle="tooltip" data-placement="top" title="Mula Lelong Cawangan">Mula Lelong</a>
|
||||
@elseif($cawangan_detail['status_online'] == 1)
|
||||
<a class="btn btn-danger btn-sm" href="{{ route('lelong.stopcawangan',[$lel['info']['id'], 'cawid'=>$cawangan_detail['caw_id']]) }}" data-toggle="tooltip" data-placement="top" title="Tamat Lelong Cawangan">Tamat Lelong</a>
|
||||
<a class="btn btn-danger btn-sm" data-placement="top" title="Tamat Lelong Cawangan">Tamat Lelong</a>
|
||||
<!-- <a class="btn btn-danger btn-sm" href="{{ route('lelong.stopcawangan',[$lel['info']['id'], 'cawid'=>$cawangan_detail['caw_id']]) }}" data-toggle="tooltip" data-placement="top" title="Tamat Lelong Cawangan">Tamat Lelong</a> -->
|
||||
@endif
|
||||
@elseif($lel['info']['sts_lelong'] == 2)
|
||||
@endif
|
||||
@@ -215,7 +217,7 @@
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<td class="text-left">
|
||||
<td class="text-left" style="white-space: nowrap;">
|
||||
@foreach($lel['detailsinfo'] as $details)
|
||||
<a href="{{ route('pembida.senaraipemenangbycaw', ['lelong_id'=>$lel['detail']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a>
|
||||
<span class="m-2"><b>{{ $details['caw_name']}}</b>
|
||||
@@ -265,11 +267,11 @@
|
||||
@if($winner['jenisbayaran'] != NULL)
|
||||
{{-- {{ dump($winner['jenisbayaran'])}} --}}
|
||||
@if($winner['jenisbayaran']['status_payment_opt'] == 1)
|
||||
TUNAI
|
||||
<span class="badge badge-pill badge-dark">TUNAI</span>
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 2)
|
||||
FPX
|
||||
<span class="badge badge-pill badge-primary">FPX</span>
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 3)
|
||||
KAUNTER BANK/CDM
|
||||
<span class="badge badge-pill badge-secondary">CDM</span>
|
||||
|
||||
@endif
|
||||
@else
|
||||
@@ -289,15 +291,15 @@
|
||||
@forelse($details['listwinner'] as $winner)
|
||||
@if($winner['jenisbayaran'] != NULL)
|
||||
@if($winner['jenisbayaran']['disahkan_oleh'] != NULL)
|
||||
SELESAI
|
||||
<button class="btn btn-sm btn-success" disabled>SELESAI</button>
|
||||
@elseif($winner['jenisbayaran']['disahkan_oleh'] == NULL)
|
||||
TUNGGU PENGESAHAN
|
||||
<span class="badge badge-warning">TUNGGU PENGESAHAN</span>
|
||||
@else
|
||||
BELUM SELESAI
|
||||
<button class="btn btn-sm btn-danger" disabled>BELUM SELESAI</button>
|
||||
|
||||
@endif
|
||||
@else
|
||||
BELUM SELESAI
|
||||
<button class="btn btn-sm btn-danger" disabled>BELUM SELESAI</button>
|
||||
@endif
|
||||
<br>
|
||||
@empty
|
||||
@@ -347,24 +349,24 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('a.stoplelongall').confirm({
|
||||
title: 'Tamat Lelong Semua Cawangan',
|
||||
content: 'Adakah anda pasti?',
|
||||
type: 'red',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
Kembali: {
|
||||
btnClass: 'btn-default',
|
||||
action: function() {}
|
||||
},
|
||||
Teruskan: {
|
||||
btnClass: 'btn-danger',
|
||||
action: function() {
|
||||
location.href = this.$target.attr('href');
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
// $('a.stoplelongall').confirm({
|
||||
// title: 'Tamat Lelong Semua Cawangan',
|
||||
// content: 'Adakah anda pasti?',
|
||||
// type: 'red',
|
||||
// typeAnimated: true,
|
||||
// buttons: {
|
||||
// Kembali: {
|
||||
// btnClass: 'btn-default',
|
||||
// action: function() {}
|
||||
// },
|
||||
// Teruskan: {
|
||||
// btnClass: 'btn-danger',
|
||||
// action: function() {
|
||||
// location.href = this.$target.attr('href');
|
||||
// }
|
||||
// },
|
||||
// }
|
||||
// });
|
||||
|
||||
$('a.janapemenangall').confirm({
|
||||
title: 'Jana Pemenang',
|
||||
|
||||
@@ -211,6 +211,16 @@
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ (request()->is('parameter/listajk') || request()->is('parameter/listajk/*')) ? 'active' : '' }}">
|
||||
<a href="{{url('parameter/listajk')}}">
|
||||
<div class="sidebar-menu-main-title">
|
||||
<span class="material-symbols-rounded sidebar-menu-item-main">
|
||||
phone
|
||||
</span>
|
||||
Parameter AJK
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
@endhasrole
|
||||
@hasrole('callcenter')
|
||||
<li>
|
||||
@@ -1042,6 +1052,33 @@
|
||||
</a>
|
||||
</li>
|
||||
@endhasrole
|
||||
@hasrole('ajk')
|
||||
<li>
|
||||
<a href="#pembidaSubmenu" data-toggle="collapse" aria-expanded="false">
|
||||
<div class="sidebar-menu">
|
||||
<div class="sidebar-menu-main-title">
|
||||
<span class="material-symbols-rounded sidebar-menu-item-main">
|
||||
assignment_ind
|
||||
</span>
|
||||
Pembida
|
||||
</div>
|
||||
<span class="material-symbols-rounded sidebar-menu-item-expand">expand_more</span>
|
||||
</div>
|
||||
</a>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('pembida/*')) ? 'show' : '' }}" id="pembidaSubmenu">
|
||||
<li class="{{ (request()->is('report/lapbidaanpembidaindex/*') || request()->is('report/lapbidaanpembidaindex') ) ? 'active' : '' }}">
|
||||
<a href="{{url('report/lapbidaanpembidaindex')}}">Bidaan Pembida</a>
|
||||
</li>
|
||||
<li class="{{ (request()->is('pembida/statuspembayaran/*') || request()->is('pembida/statuspembayaran') ) ? 'active' : '' }}">
|
||||
<a href="{{url('pembida/statuspembayaran')}}">Status Pembayaran</a>
|
||||
</li>
|
||||
{{-- <li class="{{ (request()->is('pembida/statusserahanbidaan/*') || request()->is('pembida/statusserahanbidaan') ) ? 'active' : '' }}">
|
||||
<a href="{{url('pembida/statusserahanbidaan')}}">Status Serahan Bidaan</a>
|
||||
</li> --}}
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
@endhasrole
|
||||
</ul>
|
||||
<div class="sidebar-footer">
|
||||
<div class="sidebar-footer-content">Beta V1.0</div>
|
||||
|
||||
@@ -33,7 +33,12 @@
|
||||
@foreach ($lelongid as $bid)
|
||||
<tr>
|
||||
{{-- <td><input type="checkbox" aria-label="Checkbox for following text input" name="checkboxdata[]" value="{{ $bid->id }}"></td> --}}
|
||||
<td>{{ $bid->lelong_id}}</td>
|
||||
<td>@if($bid->fasa == '1')
|
||||
<a href="{{ route('jananotis.jananotis_new',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun dummy" style="margin-right:40px" >{{ $bid->lelong_id}}</a>
|
||||
@elseif($bid->fasa == '2')
|
||||
<a href="{{ route('jananotis.jananotis_new2',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun dummy" style="margin-right:40px" >{{ $bid->lelong_id}}</a>
|
||||
@endif
|
||||
</td>
|
||||
<td> @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $bid->tarikh_lelong );
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
|
||||
@@ -0,0 +1,304 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col mx-auto">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<div class="header-style-title">
|
||||
Senarai Ahli Jawatan Kuasa Lelong
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@endif
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@endif
|
||||
<?php
|
||||
$totaluser = count($alluser);
|
||||
?>
|
||||
<form id="exportform" action="{{route('pengguna.export')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="User">
|
||||
<div class="overflow-auto">
|
||||
<table class="table table-bordered" id="pengguna" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Nama</th>
|
||||
<th>Nama AJK</th>
|
||||
<th>Emel</th>
|
||||
<th class="text-center">No.Telefon</th>
|
||||
<th class="text-center">Taraf</th>
|
||||
<th>Status</th>
|
||||
<!-- <th class="text-center">Tindakan</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($alluser as $user)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td style='white-space:nowrap;'>{{ $user->name }}</td>
|
||||
<td>{{ $user->username }}</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
<td>{{ $user->notelbimbit }}</td>
|
||||
<td class="text-center">
|
||||
@foreach ($user->roles as $taraf)
|
||||
<span class="badge badge-pill badge-primary">{{$taraf->name}}</span>
|
||||
@endforeach
|
||||
</td>
|
||||
<td>
|
||||
@if ($user->status =='active')
|
||||
<span class="badge badge-pill badge-success">Aktif</span>
|
||||
@elseif ($user->status == 'inactive')
|
||||
<span class="badge badge-pill badge-warning">Tidak Aktif</span>
|
||||
@elseif ($user->status =='banned')
|
||||
<span class="badge badge-pill badge-danger">Disekat</span>
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<!-- <td class="text-center" style="white-space:nowrap;"> -->
|
||||
<!-- <a class="btn m-1 btn-primary" href="{{ route('pengguna.show',$user->id) }}" data-toggle="tooltip" data-placement="top" title="Kemaskini" style="margin-right:30px"><i class="far fa-edit"></i></a> -->
|
||||
<!-- <a class="confirmdel btn m-1 btn-danger" href="{{ route('pengguna.delete',$user->id) }}" data-toggle="tooltip" data-placement="top" title="Padam"><i class="far fa-trash-alt"></i></a> -->
|
||||
<!-- </td> -->
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal fade" tabindex="-1" id="myModal">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Tambah Pengguna</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="{{ route('pengguna.storepengguna') }}" method="POST" id="formpengguna">
|
||||
@csrf
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-6">
|
||||
<label for="name">Nama</label>
|
||||
<input type="text" class="form-control" name="name" id="name" required>
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label for="username">Nama Pengguna</label>
|
||||
<input type="text" class="form-control" name="username" id="username" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-6">
|
||||
<label for="name">Cawangan</label>
|
||||
<select class="custom-select" name="caw" id="caw" required>
|
||||
<option disabled>Pilih Cawangan</option>
|
||||
<option selected value="">-</option>
|
||||
@foreach ($caw as $item)
|
||||
<option value="{{$item->caw_code}}">{{$item->caw_name}}</option>
|
||||
@endforeach
|
||||
|
||||
<!-- <option value="all">Select All</option> -->
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label for="email">Emel</label>
|
||||
<input type="email" class="form-control" name="email" id="email" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<label for="notelbimbit">No.Telefon Bimbit</label>
|
||||
<input type="text" class="form-control" name="notelbimbit" id="notelbimbit" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<h4 class="col-md-3">Taraf Pengguna</h4>
|
||||
<div class="form-group col-md-9">
|
||||
@foreach ($allRolesPluck as $namataraf)
|
||||
<div class="col-4 form-check form-check-inline">
|
||||
<input class="form-check-input checkbox" name="taraf{{$namataraf}}" onclick="checkboxRoles(this)" type="checkbox" id="taraf{{$namataraf}}" value="{{$namataraf}}">
|
||||
<label class="form-check-label" for="taraf{{$namataraf}}">{{$namataraf}}</label>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Tutup</button>
|
||||
<button type="button" class="btn btn-primary" onclick="storepengguna()">Simpan</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var allRoles = JSON.parse('<?php echo json_encode($allRolesPluck) ?>');
|
||||
var allRolesWithTaraf = [];
|
||||
for (item of allRoles) {
|
||||
var itemToAdded = "";
|
||||
itemToAdded = itemToAdded.concat("taraf", item);
|
||||
allRolesWithTaraf.push(itemToAdded);
|
||||
}
|
||||
|
||||
function checkboxRoles(taraf) {
|
||||
for (const item of allRolesWithTaraf) {
|
||||
if (taraf.id == item) {
|
||||
if (taraf.checked == true) {
|
||||
if (taraf.id == "tarafadmin") {
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafadmin').prop("disabled", true);
|
||||
});
|
||||
} else if (taraf.id == "tarafaccount") {
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafaccount').prop("disabled", true);
|
||||
});
|
||||
}else if (taraf.id == "tarafajk") {
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafajk').prop("disabled", true);
|
||||
});
|
||||
} else if (taraf.id == "tarafcallcenter") {
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafcallcenter').prop("disabled", true);
|
||||
});
|
||||
} else if (taraf.id == "tarafpembida") {
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafpembida').prop("disabled", true);
|
||||
});
|
||||
} else if (taraf.id == "tarafpenilai" || taraf.id == "tarafkhazanah" || taraf.id == "tarafpengurus-cawangan") {
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafpenilai, #tarafkhazanah, #tarafpengurus-cawangan').prop("disabled", true);
|
||||
});
|
||||
} else if (taraf.id == "tarafoperasi" || taraf.id == "tarafjurulelong" || taraf.id == "tarafpengurus-operasi") {
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafoperasi, #tarafjurulelong, #tarafpengurus-operasi').prop("disabled", true);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
$(".checkbox").each(function() {
|
||||
if ($('.checkbox:checked').length == 0) {
|
||||
$(this).prop("disabled", false);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//Enable tooltips everywhere
|
||||
$(function() {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
$('a.confirmdel').confirm({
|
||||
title: 'Padam Simulasi',
|
||||
content: 'Adakah anda pasti? Tindakan ini tidak dapat dikembalikan.',
|
||||
icon: 'fa fa-exclamation-triangle',
|
||||
type: 'red',
|
||||
boxWidth: '500px',
|
||||
useBootstrap: false,
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function() {}
|
||||
},
|
||||
Hapus: {
|
||||
btnClass: 'btn-red',
|
||||
action: function() {
|
||||
location.href = this.$target.attr('href');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var tablepengguna = $('#pengguna').DataTable({
|
||||
"columnDefs": [{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 4,
|
||||
// "orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 5,
|
||||
// "orderable": false
|
||||
}
|
||||
],
|
||||
order: [
|
||||
[0, 'asc']
|
||||
],
|
||||
// "ordering": false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
// 'copy', 'excel', 'pdf'
|
||||
// { text: 'copy', className: 'btn btn-primary' },
|
||||
// {
|
||||
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm adduser',
|
||||
// text: '<i class="fas fa-plus" id="test"></i>',
|
||||
// titleAttr: 'Tambah Pengguna',
|
||||
// action: function(e, dt, node, config) {
|
||||
// //alert( 'Button activated' );
|
||||
// // console.log('hye');
|
||||
|
||||
// $('#myModal').modal("show");
|
||||
// $('#myModal').on('shown.bs.modal', function() {
|
||||
// $('#rolename').trigger('focus')
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
|
||||
// {
|
||||
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Eksport kpd CSV',
|
||||
// text: '<i class="fas fa-download"></i>',
|
||||
// action: function(e, dt, node, config) {
|
||||
// $("#exportform").submit();
|
||||
// }
|
||||
// }
|
||||
]
|
||||
});
|
||||
|
||||
$('.adduser').tooltip();
|
||||
$('.export').tooltip();
|
||||
// $( '.dt-buttons').addClass('btn-group');
|
||||
$('.adduser').removeClass('dt-button');
|
||||
$('.export').removeClass('dt-button');
|
||||
|
||||
|
||||
function selectall(cb) {
|
||||
tablepengguna.rows().nodes().to$().find('input[type="checkbox"]').each(function() {
|
||||
$(this).prop('checked', cb.checked);
|
||||
})
|
||||
}
|
||||
|
||||
function storepengguna() {
|
||||
$("#formpengguna").submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,356 @@
|
||||
<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; */
|
||||
|
||||
}
|
||||
.page-break {
|
||||
page-break-before: always;
|
||||
}
|
||||
</style>
|
||||
@foreach($marhuns as $index1=> $notis)
|
||||
{{-- {{dd($notis['nama']['alamat1'])}} --}}
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="container">
|
||||
<table id="header">
|
||||
<tr>
|
||||
{{-- <th rowspan="4"style="width:100px"><br><img src="{{ asset('img/icon_pkb.png') }}" style="width:70px"></img></th> --}}
|
||||
<th colspan="1">{{ $caw['caw_name'] }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top;">{{ $caw['alamat1'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top;">{{ $caw['alamat2'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top;">{{ ' No Tel : '. $caw['notel'] . ' No Faks : '. $caw['nofaks'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
|
||||
<div>
|
||||
<table class="tablestyle">
|
||||
<tr>
|
||||
<td width="15%">NO.RUJUKAN</td>
|
||||
<td width="1%">:</td>
|
||||
<td width="50%">{{$notis['norujukan']}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">TARIKH
|
||||
</td>
|
||||
<td width="1%">:</td>
|
||||
<td width="50%">@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$datez = $myDateTime->format('d M Y');
|
||||
// echo($datez);
|
||||
|
||||
$fmt = datefmt_create(
|
||||
'ms_MY',
|
||||
IntlDateFormatter::LONG,
|
||||
IntlDateFormatter::NONE,
|
||||
'Asia/Kuala_Lumpur',
|
||||
IntlDateFormatter::GREGORIAN
|
||||
);
|
||||
$cal = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
|
||||
echo '' . strtoupper($fmt->format($cal));
|
||||
@endphp
|
||||
<td colspan="3"></td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td width="14%"></td>
|
||||
<td width="1%"></td>
|
||||
<td></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<table class="tablestyle">
|
||||
|
||||
<tr>
|
||||
<td style="vertical-align:top;">KEPADA :</td>
|
||||
<!-- <td style="vertical-align:top;">:</td> -->
|
||||
<td style="vertical-align:top;">{{ $notis['nama']['nama']}}
|
||||
<br> {{ strtoupper($notis['nama']['alamat1']) }}
|
||||
{{-- {!! ($notis['nama']['alamat1'] === null || $notis['nama']['alamat1'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat1']) !!} <br> --}} <br>
|
||||
{{ ' ' . $notis['nama']['poskod'] . ' ' . strtoupper($notis['nama']['namadaerah']) . ' ' . strtoupper($notis['nama']['negeri'])}}</td>
|
||||
|
||||
<!-- <td></td> -->
|
||||
<td></td>
|
||||
<td style="vertical-align:top;"></td>
|
||||
<td style="vertical-align:top;"></td>
|
||||
<td style="vertical-align:top;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p>Tuan/Puan,</p>
|
||||
<h4>NOTIS LELONGAN AWAM BARANG GADAIAN
|
||||
{{-- @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
|
||||
@endphp --}}
|
||||
</h4>
|
||||
<p>Dengan hormatnya kami ingin memaklumkan bahawa barang-barang cagaran tuan/puan keatas pembiayaan yang diberikan di cawangan seperti di atas akan dilelong.</p>
|
||||
|
||||
<p>Butiran lelongan adalah seperti berikut :-</p>
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td>Tarikh Lelongan</td>
|
||||
<td>:</td>
|
||||
<td> @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
//echo($datez);
|
||||
$fmttlelong = datefmt_create(
|
||||
'ms_MY',
|
||||
IntlDateFormatter::LONG,
|
||||
IntlDateFormatter::NONE,
|
||||
'Asia/Kuala_Lumpur',
|
||||
IntlDateFormatter::GREGORIAN
|
||||
);
|
||||
$tlelong = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong);
|
||||
|
||||
echo '' . strtoupper($fmttlelong->format($tlelong));
|
||||
@endphp</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cawangan</td>
|
||||
<td>:</td>
|
||||
<td>{{ $caw['caw_name'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Waktu</td>
|
||||
<td>:</td>
|
||||
{{-- <td>{{ date('H:i',strtotime($notis['masa'])). ' pagi' }}</td> --}}
|
||||
<td>{{ '10.30 pagi' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>No.SAG</td>
|
||||
<td>:</td>
|
||||
<td>{{$notis['norujukan']}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p>Tuan/Puan adalah dikehendaki untuk membuat urusan berikut dikaunter cawangan selewat-lewatnya <b>pada atau sebelum
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong );
|
||||
$datez = $myDateTime->modify('-3 day')->format('d-m-Y');
|
||||
//echo($datez);
|
||||
$fmtsblm = datefmt_create(
|
||||
'ms_MY',
|
||||
IntlDateFormatter::LONG,
|
||||
IntlDateFormatter::NONE,
|
||||
'Asia/Kuala_Lumpur',
|
||||
IntlDateFormatter::GREGORIAN
|
||||
);
|
||||
$tlelong = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong);
|
||||
$datez = $tlelong->modify('-3 day');
|
||||
echo '' . strtoupper($fmtsblm->format($datez));
|
||||
@endphp
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong );
|
||||
$datez = $myDateTime->modify('-3 day')->format('d-m-Y');
|
||||
//echo($datez);
|
||||
$fmtsblm = datefmt_create(
|
||||
'ms_MY',
|
||||
IntlDateFormatter::FULL,
|
||||
IntlDateFormatter::FULL,
|
||||
'Asia/Kuala_Lumpur',
|
||||
IntlDateFormatter::GREGORIAN
|
||||
);
|
||||
$tlelong = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong);
|
||||
$datez = $tlelong->modify('-3 day');
|
||||
$fmtsblm->setPattern('EEEE');
|
||||
echo '(' . strtoupper($fmtsblm->format($datez).')');
|
||||
@endphp:-</b></p>
|
||||
|
||||
|
||||
{{-- @php $upah = $notis['keuntungan']['keuntunganrebet']+$notis['keuntungan']['bakipjm'] @endphp --}}
|
||||
{{-- {{dd($notis['nilaips'])}} --}}
|
||||
{{--<ol>
|
||||
<li>Bayar Keuntungan Semasa RM{{number_format($notis['keuntungan']['keuntungan'], 2, '.', ',') }}</li>
|
||||
<li>Pembiayaan Semula RM{{number_format($notis['nilaitebus'], 2, '.', ',') }}</li>
|
||||
<li>Penyelesaian Penuh RM{{number_format($notis['nilaitebus'], 2, '.', ',')}}</li>
|
||||
</ol> --}}
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Pembiayaan</td>
|
||||
<td>:</td>
|
||||
<td>RM</td>
|
||||
<td align="right">{{number_format($notis['nilaipembiayaan'], 2, '.', ',') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Keuntungan</td>
|
||||
<td>:</td>
|
||||
<td>RM</td>
|
||||
<td align="right">{{number_format($notis['nilaikeuntungan'], 2, '.', ',') }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>RM</td>
|
||||
<td style='border-top: 1px solid black; border-bottom: 1px solid black;' align="right">{{ number_format($notis['jumlah'], 2, '.', ',') }}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>Tuan/Puan juga boleh membuat bayaran secara atas talian melalui portal arrahnPay di<a href="https://pay.arrahn.com.my">https://pay.arrahn.com.my</a>.
|
||||
Pembayaran terakhir atas talian adalah (3)hari sebelum tarikh lelongan.
|
||||
Untuk sebarang pertanyaan, Tuan/Puan boleh menghubungi nombor tertera.</p>
|
||||
|
||||
<p>Sekiranya tuan/puan masih tidak berurusan sehingga tarikh dinyatakan, maka pihak kami berhak menjual secara lelongan awam barang gadaian tersebut.<br />
|
||||
Sekian, terima kasih.</p>
|
||||
|
||||
<p>Nota:</p>
|
||||
<i>Sila bawa bersama Surat Akaun Gadai (SAG) untuk sebarang urusan.</i><br>
|
||||
{{--<i>Jumlah bayaran yang dipaparkan mengikut tarikh surat dicetak.</i>--}}
|
||||
<i>Sila abaikan notis ini sekiranya pembayaran telah dibuat.</i>
|
||||
|
||||
<p>Surat ini adalah cetakan komputer dan tiada tandatangan diperlukan.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@@ -0,0 +1,341 @@
|
||||
<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; */
|
||||
|
||||
}
|
||||
.page-break {
|
||||
page-break-before: always;
|
||||
}
|
||||
</style>
|
||||
@foreach($marhuns as $index1=> $notis)
|
||||
{{-- {{dd($notis['nama']['alamat1'])}} --}}
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="container">
|
||||
<table id="header">
|
||||
<tr>
|
||||
{{-- <th rowspan="4"style="width:100px"><br><img src="{{ asset('img/icon_pkb.png') }}" style="width:70px"></img></th> --}}
|
||||
<th colspan="1">{{ $caw['caw_name'] }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top;">{{ $caw['alamat1'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top;">{{ $caw['alamat2'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top;">{{ ' No Tel : '. $caw['notel'] . ' No Faks : '. $caw['nofaks'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
|
||||
<div>
|
||||
<table class="tablestyle">
|
||||
<tr>
|
||||
<td width="15%">NO.RUJUKAN</td>
|
||||
<td width="1%">:</td>
|
||||
<td width="50%">{{$notis['norujukan']}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">TARIKH
|
||||
</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);
|
||||
$fmt = datefmt_create(
|
||||
'ms_MY',
|
||||
IntlDateFormatter::LONG,
|
||||
IntlDateFormatter::NONE,
|
||||
'Asia/Kuala_Lumpur',
|
||||
IntlDateFormatter::GREGORIAN
|
||||
);
|
||||
$cal = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
|
||||
echo '' . strtoupper($fmt->format($cal));
|
||||
@endphp
|
||||
<td colspan="3"></td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td width="14%"></td>
|
||||
<td width="1%"></td>
|
||||
<td></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<table class="tablestyle">
|
||||
<tr>
|
||||
<td style="vertical-align:top;">KEPADA</td>
|
||||
<td style="vertical-align:top;">:</td>
|
||||
<td style="vertical-align:top;">{{ $notis['nama']['nama']}}
|
||||
<br> {{ strtoupper($notis['nama']['alamat1']) }} <br>
|
||||
{{-- {!! ($notis['nama']['alamat1'] === null || $notis['nama']['alamat1'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat1']) !!} <br> --}}
|
||||
{{-- {!! ($notis['nama']['alamat2'] === null || $notis['nama']['alamat2'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat2']) !!} <br> --}}
|
||||
{{ ' ' . $notis['nama']['poskod'] . ' ' . strtoupper($notis['nama']['namadaerah']) . ' ' . strtoupper($notis['nama']['negeri'])}}</td>
|
||||
<td></td>
|
||||
<td style="vertical-align:top;"></td>
|
||||
<td style="vertical-align:top;"></td>
|
||||
<td style="vertical-align:top;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p>Tuan/Puan,</p>
|
||||
<h4>NOTIS LELONGAN AWAM BARANG GADAIAN
|
||||
{{-- @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
|
||||
@endphp --}}
|
||||
</h4>
|
||||
<p>Dengan hormatnya kami ingin memaklumkan bahawa barang-barang cagaran tuan/puan keatas pembiayaan yang diberikan di cawangan seperti di atas <strong>akan/telah tamat kontrak dan akan dilelong.</strong></p>
|
||||
|
||||
<p>Butiran lelongan adalah seperti berikut :-</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Tarikh Lelongan</td>
|
||||
<td>:</td>
|
||||
<td> @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
//echo($datez);
|
||||
$fmttlelong = datefmt_create(
|
||||
'ms_MY',
|
||||
IntlDateFormatter::LONG,
|
||||
IntlDateFormatter::NONE,
|
||||
'Asia/Kuala_Lumpur',
|
||||
IntlDateFormatter::GREGORIAN
|
||||
);
|
||||
$tlelong = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong);
|
||||
|
||||
echo '' . strtoupper($fmttlelong->format($tlelong));
|
||||
@endphp</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cawangan</td>
|
||||
<td>:</td>
|
||||
<td>{{ $caw['caw_name'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Waktu</td>
|
||||
<td>:</td>
|
||||
{{-- <td>{{ date('H:i',strtotime($notis['masa'])). ' pagi' }}</td> --}}
|
||||
<td>{{ '10.30 pagi' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>No.SAG</td>
|
||||
<td>:</td>
|
||||
<td>{{$notis['norujukan']}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p>Tuan/Puan adalah dikehendaki untuk membuat urusan berikut dikaunter cawangan selewat-lewatnya <b>pada atau sebelum
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong );
|
||||
$datez = $myDateTime->modify('-3 day')->format('d-m-Y');
|
||||
//echo($datez);
|
||||
$fmtsblm = datefmt_create(
|
||||
'ms_MY',
|
||||
IntlDateFormatter::LONG,
|
||||
IntlDateFormatter::NONE,
|
||||
'Asia/Kuala_Lumpur',
|
||||
IntlDateFormatter::GREGORIAN
|
||||
);
|
||||
$tlelong = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong);
|
||||
$datez = $tlelong->modify('-3 day');
|
||||
echo '' . strtoupper($fmtsblm->format($datez));
|
||||
@endphp
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong );
|
||||
$datez = $myDateTime->modify('-3 day')->format('d-m-Y');
|
||||
//echo($datez);
|
||||
$fmtsblm = datefmt_create(
|
||||
'ms_MY',
|
||||
IntlDateFormatter::FULL,
|
||||
IntlDateFormatter::FULL,
|
||||
'Asia/Kuala_Lumpur',
|
||||
IntlDateFormatter::GREGORIAN
|
||||
);
|
||||
$tlelong = DateTime::createFromFormat('Y-m-d', $lelongid->tarikh_lelong);
|
||||
$datez = $tlelong->modify('-3 day');
|
||||
$fmtsblm->setPattern('EEEE');
|
||||
echo '(' . strtoupper($fmtsblm->format($datez).')');
|
||||
@endphp:-</b></p>
|
||||
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Pembiayaan</td>
|
||||
<td>:</td>
|
||||
<td>RM</td>
|
||||
<td align="right">{{number_format($notis['nilaipembiayaan'], 2, '.', ',') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Keuntungan</td>
|
||||
<td>:</td>
|
||||
<td>RM</td>
|
||||
<td align="right">{{number_format($notis['nilaikeuntungan'], 2, '.', ',') }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>RM</td>
|
||||
<td style='border-top: 1px solid black; border-bottom: 1px solid black;' align="right">{{ number_format($notis['jumlah'], 2, '.', ',') }}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<p>Sekiranya tuan/puan masih tidak berurusan sehingga tarikh dinyatakan, maka pihak kami berhak menjual secara lelongan awam barang gadaian tersebut.
|
||||
Untuk sebarang pertanyaan, Tuan/Puan boleh menghubungi nombor tertera.<br />
|
||||
|
||||
Sekian, terima kasih.</p>
|
||||
|
||||
<p>Nota:</p>
|
||||
<i>Sila bawa bersama Surat Akaun Gadai (SAG) untuk sebarang urusan.</i><br>
|
||||
<i>Sila abaikan notis ini sekiranya pembayaran telah dibuat.</i>
|
||||
|
||||
|
||||
<p>Surat ini adalah cetakan komputer dan tiada tandatangan diperlukan.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@@ -130,6 +130,13 @@
|
||||
<input type="email" class="form-control" name="email" id="email" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<label for="notelbimbit">No.Telefon Bimbit</label>
|
||||
<input type="text" class="form-control" name="notelbimbit" id="notelbimbit" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<h4 class="col-md-3">Taraf Pengguna</h4>
|
||||
<div class="form-group col-md-9">
|
||||
@@ -172,6 +179,10 @@
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafaccount').prop("disabled", true);
|
||||
});
|
||||
}else if (taraf.id == "tarafajk") {
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafajk').prop("disabled", true);
|
||||
});
|
||||
} else if (taraf.id == "tarafcallcenter") {
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafcallcenter').prop("disabled", true);
|
||||
|
||||
@@ -40,6 +40,12 @@
|
||||
<!-- <option value="all">Select All</option> -->
|
||||
</select>
|
||||
</div>
|
||||
@if($user->user_type == 3)
|
||||
<div class="form-group col-md-6">
|
||||
<label for="inputPassword4">No.Telefon</label>
|
||||
<input type="text" value="{{$user->notelbimbit}}" class="form-control" name="notelbimbit" id="notelbimbit" required>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<h4 class="col-md-3">Taraf Pengguna</h4>
|
||||
@@ -53,7 +59,7 @@
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@if($user->user_type == 1)
|
||||
@if($user->user_type == 1 | $user->user_type == 3)
|
||||
<div class="d-flex form-group">
|
||||
<div class="d-flex col-md-6">
|
||||
<div style="margin-right:2%;">
|
||||
@@ -110,7 +116,12 @@
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafaccount').prop("disabled", true);
|
||||
});
|
||||
} else if (taraf.id == "tarafcallcenter") {
|
||||
}else if (taraf.id == "tarafajk") {
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafajk').prop("disabled", true);
|
||||
});
|
||||
}
|
||||
else if (taraf.id == "tarafcallcenter") {
|
||||
$(".checkbox").each(function() {
|
||||
$(this).not('#tarafcallcenter').prop("disabled", true);
|
||||
});
|
||||
|
||||
@@ -501,6 +501,9 @@ Route::group(['middleware' => ['permission:pengesahanbayaran'],'prefix'=>'accoun
|
||||
Route::post('/laporanakaundetailexport',['as'=>'account.laporanakaundetailexport','uses'=>'AccountController@laporanakaundetailexport']);
|
||||
Route::get('/laporanakaundetailall/{lelong_id}',['as'=>'account.laporanakaundetailall','uses'=>'AccountController@laporanakaundetailall']);
|
||||
Route::post('/laporanakaundetailallexport',['as'=>'account.laporanakaundetailallexport','uses'=>'AccountController@laporanakaundetailallexport']);
|
||||
|
||||
Route::post('/xsahbayaronline', ['as'=>'account.xsahbayaronline','uses'=>'AccountController@xsahbayaronline']);
|
||||
|
||||
});
|
||||
|
||||
// Pengurus Cawangan
|
||||
@@ -516,6 +519,9 @@ Route::group(['middleware' => ['permission:jananotis'],'prefix'=>'jananotis'], f
|
||||
Route::get('/pembida',['as'=>'jananotis.pembida','uses'=>'NotisController@pembida']);
|
||||
Route::get('/senarainotis/{lelong_id}',['as'=>'jananotis.senarainotis','uses'=>'NotisController@senarainotis2']);
|
||||
Route::get('/jananotis/{lelong_id}',['as'=>'jananotis.jananotis','uses'=>'NotisController@jananotis2']);
|
||||
Route::get('/jananotis_new/{lelong_id}',['as'=>'jananotis.jananotis_new','uses'=>'NotisController@jananotis2_new']);
|
||||
Route::get('/jananotis_new2/{lelong_id}',['as'=>'jananotis.jananotis_new2','uses'=>'NotisController@jananotis2_new2']);
|
||||
|
||||
Route::post('/listnotis',['as'=>'jananotis.listnotis','uses'=>'NotisController@listnotis2']);
|
||||
Route::get('/send-email',['as'=>'jananotis.email','uses'=>'MailController@sendEmail']);
|
||||
|
||||
@@ -597,6 +603,9 @@ Route::get('/searchforecastgadaian', ['as'=>'report.searchforecastgadaian','uses
|
||||
|
||||
Route::get('/senarailapbidaanresult/{lelong_id}/{kodcaw}',['as' =>'report.senarailapbidaanresult','uses'=>'ReportController@senarailapbidaanresult']);
|
||||
Route::post('/kemaskinibidaan',['as'=>'report.kemaskinibidaan','uses'=>'ReportController@kemaskinibidaan']);
|
||||
|
||||
Route::get('/joybidder',['as'=>'report.joybidder','uses'=>'ReportController@joybidder']);
|
||||
|
||||
});
|
||||
|
||||
//Report by KALI
|
||||
@@ -753,6 +762,11 @@ Route::group(['middleware' => ['permission:parameter'],'prefix'=>'parameter'], f
|
||||
Route::get('/kemaskininotislelwabot',['as'=>'parameter.kemaskininotislelwabot','uses'=>'NotisController@kemaskininotislelwabot']);
|
||||
Route::post('/storepara2blast',['as'=>'parameter.storepara2blast','uses'=>'NotisController@storepara2blast']);
|
||||
Route::post('/storepara3blast',['as'=>'parameter.storepara3blast','uses'=>'NotisController@storepara3blast']);
|
||||
|
||||
//blastnotifikasitamatlelongajk
|
||||
Route::get('/notifikasitamatlelong',['as'=>'parameter.notifikasitamatlelong','uses'=>'PenggunaController@notifikasitamatlelong']);
|
||||
Route::get('/listajk',['as'=>'parameter.listajk','uses'=>'PenggunaController@listajk']);
|
||||
|
||||
});
|
||||
|
||||
Route::group(['middleware' => ['permission:WTD'],'prefix'=>'wtd'], function () {
|
||||
|
||||
Reference in New Issue
Block a user