Merge branch 'main' of gitlab.com:online-sistem1/lelong
This commit is contained in:
@@ -19,6 +19,8 @@ use App\Models\LelongBidMarhun;
|
||||
use App\Models\LelKarat;
|
||||
use App\Models\Cart;
|
||||
use Carbon\Carbon;
|
||||
use App\Models\FileMarhun;
|
||||
|
||||
|
||||
class CartController extends Controller
|
||||
{
|
||||
@@ -78,6 +80,9 @@ class CartController extends Controller
|
||||
$total_surat = 0;
|
||||
|
||||
foreach ($cart as $index1 => $data) {
|
||||
$fileMarhun = FileMarhun::where('lelongbid_id', $data['id'])->get();
|
||||
$cart[$index1]['filemarhun'] = $fileMarhun;
|
||||
|
||||
$total_hargabida += $data['hargabida'];
|
||||
$total_berat += $data['berat'];
|
||||
$total_surat += 1;
|
||||
|
||||
@@ -164,6 +164,8 @@ class LelongController extends Controller
|
||||
->where('kodcaw', '=', $cawanganLelong->cawangan->caw_code)
|
||||
->sum('total_payment');
|
||||
|
||||
// dd($cawanganLelong->cawangan->caw_code, $request->tarikh_lelong, $lelongDetails->masamula_lelong, $lelongDetails->masatamat_lelong, $lelongBidMaster->toArray(), $lelongbidmarhun->toArray(), floatval($paymentOnline), floatval($paymentTunai));
|
||||
|
||||
$exportData = Http::withOptions(['verify' => config('app.api_verify')])->post(
|
||||
config('app.api_url') . 'exportLelong',
|
||||
[
|
||||
@@ -859,7 +861,14 @@ class LelongController extends Controller
|
||||
if($detail_sag['tempohbayar'] == $detail_sag['tempoh'] ){
|
||||
$keuntungan = 0.00;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($detail_sag['tempoh']-$detail_sag['tempohbayar'])*$detail_sag['kadarupah']/100*$detail_sag['bakipjm'],1,1)-$beza_keuntungan;
|
||||
// $keuntungan = bcdiv(($detail_sag['tempoh']-$detail_sag['tempohbayar'])*$detail_sag['kadarupah']/100*$detail_sag['bakipjm'],1,1)-$beza_keuntungan;
|
||||
$jbg = $detail_sag['tempoh']-$detail_sag['tempohbayar'];
|
||||
$jbg2 = 12- $detail_sag['tempohbayar'];
|
||||
if($detail_sag['tempoh'] <= '12.00'){
|
||||
$keuntungan = bcdiv(($jbg)*$detail_sag['kadarupah']/100*$detail_sag['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($jbg2)*$detail_sag['kadarupah']/100*$detail_sag['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
}
|
||||
|
||||
$sumhargaasas = 0;
|
||||
@@ -1242,6 +1251,10 @@ class LelongController extends Controller
|
||||
public function senaraipemenang(Request $request, $lelong_id){
|
||||
|
||||
$caw_code = $request->caw_code;
|
||||
|
||||
$lelonglel = Lelong::with('cawangan')->find($lelong_id);
|
||||
|
||||
$cawanganDetail = $lelonglel->cawangan->where('caw_code', $caw_code)->first();
|
||||
|
||||
$listwinner = LelongBidder::join('lelongbid', 'lelongbidder.lelongbid_id', '=', 'lelongbid.id')
|
||||
->where('lelongbidder.status_bidder', 1)
|
||||
@@ -1269,13 +1282,17 @@ class LelongController extends Controller
|
||||
// $listwinner[$index1]['kodcaw'] = $kodcaw;
|
||||
}
|
||||
|
||||
return view('lelong.senaraipemenang',compact('listwinner','lelong_id','caw_code'));
|
||||
return view('lelong.senaraipemenang',compact('listwinner','lelong_id','caw_code','cawanganDetail'));
|
||||
}
|
||||
|
||||
public function senaraisagpemenang($user_id, $lelong_id, $kodcaw){
|
||||
|
||||
$userdetails = User::where('id', $user_id)->first();
|
||||
|
||||
$lelonglel = Lelong::with('cawangan')->find($lelong_id);
|
||||
|
||||
$cawanganDetail = $lelonglel->cawangan->where('caw_code', $kodcaw)->first();
|
||||
|
||||
$senaraisag = LelongBid::join('lelongbidder', 'lelongbid.id', '=', 'lelongbidder.lelongbid_id')
|
||||
->where('lelongbid.lelong_id', $lelong_id)
|
||||
->where('lelongbid.kodcaw', $kodcaw)
|
||||
@@ -1284,7 +1301,7 @@ class LelongController extends Controller
|
||||
->get();
|
||||
|
||||
|
||||
return view('lelong.senaraisagpemenang', compact('senaraisag', 'user_id', 'lelong_id','userdetails'));
|
||||
return view('lelong.senaraisagpemenang', compact('senaraisag', 'user_id', 'lelong_id','userdetails','cawanganDetail'));
|
||||
}
|
||||
|
||||
public function senaraimarhun($lelongid, $cawid){
|
||||
@@ -1305,6 +1322,7 @@ class LelongController extends Controller
|
||||
|
||||
$marhuns = LelongBid::where('caw_id', '=', $cawid)
|
||||
->where('lelong_id', '=', $lelongid)
|
||||
->orderBy('norujukan', 'ASC')
|
||||
->get();
|
||||
// dd($marhuns);
|
||||
$arraymarhun = [];
|
||||
@@ -2042,16 +2060,24 @@ class LelongController extends Controller
|
||||
$month = $current->month;
|
||||
$year = $current->format('y');
|
||||
|
||||
$today = $current->format('Y-m-d');
|
||||
// dd($today);
|
||||
|
||||
$lelong = Lelong::where('id', '=', $lelong_id)->first();
|
||||
$lelongbid = LelongBid::where('lelong_id', '=', $lelong_id)->get();
|
||||
foreach ($lelongbid as $bid) {
|
||||
$highestprice = LelongBidder::where('lelongbid_id', '=', $bid->id)->orderBy('lelongbidder.hargabida', 'DESC')->first();
|
||||
$highestprice = LelongBidder::where('lelongbid_id', '=', $bid->id)
|
||||
->where('masa_bidaan', 'LIKE', '%'.$today.'%')
|
||||
->orderBy('lelongbidder.hargabida', 'DESC')
|
||||
->first();
|
||||
// dd($highestprice);
|
||||
|
||||
// dd($highestprice->hargabida);
|
||||
if ($highestprice) {
|
||||
// foreach($highestprice as $price){
|
||||
// $bidders = LelongBidder::where('lelongbid_id','=',$bid->id)->where('hargabida','=',$highestprice->hargabida)->orderBy('masa_bidaan','ASC' )->get();
|
||||
$bidders = LelongBidder::join('lelongbid', 'lelongbid.id', '=', 'lelongbidder.lelongbid_id')
|
||||
->where('masa_bidaan', 'LIKE', '%'.$today.'%')
|
||||
->where('lelongbid.lelong_id', '=', $lelong_id)
|
||||
->where('lelongbid_id', '=', $bid->id)
|
||||
->where('hargabida', '=', $highestprice->hargabida)->orderBy('masa_bidaan', 'ASC')
|
||||
@@ -2082,7 +2108,7 @@ class LelongController extends Controller
|
||||
// dd($totalbaki);
|
||||
$updatebid->hargajual = $bidder->hargabida;
|
||||
$updatebid->t_jual = $currentdate;
|
||||
$updatebid->cajlelong = bcdiv($sumcajlelong, 1, 1);
|
||||
$updatebid->cajlelong = round($sumcajlelong, 1, 1);
|
||||
$updatebid->baki = $totalbaki;
|
||||
$updatebid->nopembeli = $bidder->user_id;
|
||||
$updatebid->status_jual = 1;
|
||||
@@ -2161,20 +2187,27 @@ class LelongController extends Controller
|
||||
$cawid = $caw['caw_id'];
|
||||
$marhun = LelongBid::join('cawangan', 'lelongbid.caw_id', '=', 'cawangan.id')
|
||||
->where('lelong_id','=',$lelong_id)
|
||||
->where('caw_id','=',$caw['caw_id']);
|
||||
->where('caw_id','=',$caw['caw_id'])
|
||||
->select('lelongbid.norujukan','lelongbid.fasa','lelongbid.kodcaw');
|
||||
|
||||
$arraynorujukan = $marhun->pluck('norujukan')->toArray();
|
||||
$datalelong = $marhun->get();
|
||||
// dd($datalelong[$index]['kodcaw']);
|
||||
// dd($datalelong[$index]['fasa']);
|
||||
$kodcaw = $datalelong[$index]['kodcaw'];
|
||||
|
||||
$senaraisag = Gadai::on($datalelong[$index]['kodcaw'])->whereIn('norujukan', $arraynorujukan)
|
||||
->get();
|
||||
// dd($senaraisag);
|
||||
foreach($senaraisag as $data)
|
||||
{
|
||||
// dd($data['norujukan']);
|
||||
// dd($datalelong[$index]['fasa']);
|
||||
if($datalelong[$index]['fasa'] == 1){
|
||||
|
||||
$marhunitemfasa = LelongBid::where('lelong_id','=',$lelong_id)
|
||||
->where('kodcaw','=',$kodcaw)
|
||||
->where('norujukan','=',$data['norujukan'])
|
||||
->select('lelongbid.norujukan','lelongbid.fasa')
|
||||
->first();
|
||||
// dd($marhunitemfasa->fasa);
|
||||
if($marhunitemfasa->fasa == 1){
|
||||
//insert lelong_tebus
|
||||
if($data['sttebus'] == "T")
|
||||
{
|
||||
@@ -2241,7 +2274,14 @@ class LelongController extends Controller
|
||||
$total_untung_rebet = TransaksiKeuntungan::on('main')->where('norujukan','=',$data['norujukan'])->sum('keuntungan_rebet');
|
||||
$total_untung_asal = TransaksiKeuntungan::on('main')->where('norujukan','=',$data['norujukan'])->sum('bayaran_keuntungan');
|
||||
$beza_keuntungan = $total_untung_asal - $total_untung_rebet;
|
||||
$keuntungan = bcdiv(($data['tempoh']-$data['tempohbayar'])*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
// $keuntungan = bcdiv(($data['tempoh']-$data['tempohbayar'])*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
$jbg = $data['tempoh']-$data['tempohbayar'];
|
||||
$jbg2 = 12- $data['tempohbayar'];
|
||||
if($data['tempoh'] <= '12.00'){
|
||||
$keuntungan = bcdiv(($jbg)*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($jbg2)*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
// dd($keuntungan);
|
||||
//update dalam simulasibid
|
||||
$updatetempoh = LelongBid::where('norujukan', $data['norujukan'])
|
||||
@@ -2266,24 +2306,32 @@ class LelongController extends Controller
|
||||
$lelong = Lelong::where('id','=',$lelong_id)->first();
|
||||
$lelong->masakemaskini_data = $date;
|
||||
$lelong->save();
|
||||
}
|
||||
}else if($datalelong[$index]['fasa'] == 2){
|
||||
// dd($datasimulasi[$index]['fasa']);
|
||||
if($data['sttebus'] == "T")
|
||||
{
|
||||
$lelongtebus = new LelongTebus;
|
||||
$lelongtebus->tarikh = $currentdate;
|
||||
$lelongtebus->kodcaw = $data['kodcaw'];
|
||||
$lelongtebus->teller = $user->name;
|
||||
$lelongtebus->norujukan = $data['norujukan'];
|
||||
$lelongtebus->batch_no = $lelong_id;
|
||||
$lelongtebus->nilaimarhun = $data['nilaimarhun'];
|
||||
$lelongtebus->pinjaman = $data['pinjaman'];
|
||||
$lelongtebus->upah = $data['bakiupah'];
|
||||
$lelongtebus->jbg = $data['jbg'];
|
||||
$lelongtebus->jenis_tebus = 'T';
|
||||
$lelongtebus->save();
|
||||
|
||||
|
||||
}
|
||||
}else if($marhunitemfasa->fasa == 2){
|
||||
// dd($datasimulasi[$index]['fasa']);
|
||||
if($data['sttebus'] == "T")
|
||||
{
|
||||
$lelongtebus = new LelongTebus;
|
||||
$lelongtebus->tarikh = $currentdate;
|
||||
$lelongtebus->kodcaw = $data['kodcaw'];
|
||||
$lelongtebus->teller = $user->name;
|
||||
$lelongtebus->norujukan = $data['norujukan'];
|
||||
$lelongtebus->batch_no = $lelong_id;
|
||||
$lelongtebus->nilaimarhun = $data['nilaimarhun'];
|
||||
$lelongtebus->pinjaman = $data['pinjaman'];
|
||||
$lelongtebus->upah = $data['bakiupah'];
|
||||
$lelongtebus->jbg = $data['jbg'];
|
||||
$lelongtebus->jenis_tebus = 'T';
|
||||
$lelongtebus->save();
|
||||
|
||||
$updategadai = Http::withOptions(['verify' => config('app.api_verify')])
|
||||
->post(config('app.api_url').'taglel/revert',[
|
||||
'kodcaw'=>$data['kodcaw'],
|
||||
'norujukan'=>$data['norujukan']
|
||||
])
|
||||
->json();
|
||||
|
||||
// dd($data['norujukan']);
|
||||
$updatelelong = LelongBid::where('norujukan','=',$data['norujukan'])->first();
|
||||
$updatelelong->delete();
|
||||
@@ -2297,18 +2345,54 @@ class LelongController extends Controller
|
||||
$loguser->nota = ' LELONG TEBUS '.$lelong_id;
|
||||
$loguser->save();
|
||||
|
||||
|
||||
|
||||
}
|
||||
else{
|
||||
//kemaskini keuntungan
|
||||
$total_untung_rebet = TransaksiKeuntungan::on('main')->where('norujukan','=',$data['norujukan'])->sum('keuntungan_rebet');
|
||||
$total_untung_asal = TransaksiKeuntungan::on('main')->where('norujukan','=',$data['norujukan'])->sum('bayaran_keuntungan');
|
||||
$beza_keuntungan = $total_untung_asal - $total_untung_rebet;
|
||||
// $keuntungan = bcdiv(($data['tempoh']-$data['tempohbayar'])*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
$jbg = $data['tempoh']-$data['tempohbayar'];
|
||||
$jbg2 = 12- $data['tempohbayar'];
|
||||
if($data['tempoh'] <= '12.00'){
|
||||
$keuntungan = bcdiv(($jbg)*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($jbg2)*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
// dd($keuntungan);
|
||||
//update dalam simulasibid
|
||||
$updatetempoh = LelongBid::where('norujukan', $data['norujukan'])
|
||||
->where('lelong_id', $lelong_id)
|
||||
->first();
|
||||
$updatetempoh->jbg = $data['tempoh'];
|
||||
$updatetempoh->pinjaman = $data['bakipjm'];
|
||||
$updatetempoh->bakiupah = bcdiv($keuntungan,1,1);
|
||||
$updatetempoh->update();
|
||||
|
||||
//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 = $lelong_id.' Kemaskini Tempoh/Bakipjm/Keuntungan' ;
|
||||
$loguser->save();
|
||||
}
|
||||
$date = Carbon::now()->toDateTimeString();
|
||||
$lelong = Lelong::where('id','=',$lelong_id)->first();
|
||||
$lelong->masakemaskini_data = $date;
|
||||
$lelong->save();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// dd($datalelong[$index]['fasa']);
|
||||
return redirect()->route('lelong.senarailelong')
|
||||
->with('success','Kemaskini Berjaya');
|
||||
}
|
||||
@@ -2320,7 +2404,7 @@ class LelongController extends Controller
|
||||
$lelong = CawanganLelong::join('lelong', 'cawangan_lelong.lelong_id', '=', 'lelong.id')
|
||||
->select('lelong_id','tarikh_lelong','lelong.fasa','lelong.masatamat_lelong','harga_emas_asas','jbg','cajlelong','sts_lelong')
|
||||
->groupBy('lelong_id')
|
||||
// ->where('lelong.sts_lelong', 3)
|
||||
->where('lelong.sts_lelong', 0)
|
||||
->get()->toArray();
|
||||
|
||||
foreach($lelong as $laporan)
|
||||
@@ -2395,10 +2479,15 @@ class LelongController extends Controller
|
||||
$data = Lelong::where('lelong.id','=',$lelong_id)
|
||||
->get();
|
||||
}
|
||||
$datapindah = lelong::select("id","tarikh_lelong")
|
||||
->where('sts_lelong', 0)
|
||||
->where('id','!=', $lelong_id)
|
||||
->where('kali','=', $kali)
|
||||
// dd($cawangan['caw_code']);
|
||||
$datapindah = lelong::join('cawangan_lelong','cawangan_lelong.lelong_id','=','lelong.id')
|
||||
->join('cawangan','cawangan.id','=','cawangan_lelong.caw_id')
|
||||
->select("lelong.id","lelong.tarikh_lelong")
|
||||
->where('cawangan_lelong.caw_id','!=', $cawangan['id'])
|
||||
->where('lelong.sts_lelong', 0)
|
||||
->where('cawangan_lelong.lelong_id','!=', $lelong_id)
|
||||
->where('lelong.id','!=', $lelong_id)
|
||||
->where('lelong.kali','=', $kali)
|
||||
->get()->toArray();
|
||||
foreach($datapindah as $row)
|
||||
{
|
||||
@@ -2706,12 +2795,13 @@ class LelongController extends Controller
|
||||
// $keuntungan = $cal['bakipjm'] - ($cal['bakihargajualan'] - ($cal['upah12'] - $cal['ansakhir'])-(($cal['tempoh']-$cal['tempohbayar'])*$cal['kadarupah']/100*$cal['bakipjm']) );
|
||||
// $marhuns[$index1]['keuntungan'] = bcdiv($keuntungan,1,1);
|
||||
|
||||
// $simulasilel = Lelong::where('id',$lelongid)->get();
|
||||
// $sumcajlelong = $cal['hargaasas'] * ($simulasilel[0]['cajlelong']/100);
|
||||
// $totalbaki = $cal['hargaasas'] - $cal['pinjaman'] - bcdiv($keuntungan,1,1) - bcdiv($sumcajlelong,1,1);
|
||||
$simulasilel = Lelong::where('id',$lelongid)->get();
|
||||
$sumcajlelong = $cal['hargaasas'] * ($simulasilel[0]['cajlelong']/100);
|
||||
$cajlelongnew = bcdiv($sumcajlelong,1,1);
|
||||
$totalbaki = $cal['hargaasas'] - $cal['pinjaman'] - $cal['bakiupah'] - $cajlelongnew;
|
||||
|
||||
// $marhuns[$index1]['cajlelong'] = bcdiv($sumcajlelong,1,1);
|
||||
// $marhuns[$index1]['baki'] = $totalbaki;
|
||||
$marhuns[$index1]['cajlelong'] = $cajlelongnew;
|
||||
$marhuns[$index1]['baki'] = $totalbaki;
|
||||
}
|
||||
|
||||
$arrayinfo = [];
|
||||
@@ -2767,19 +2857,48 @@ class LelongController extends Controller
|
||||
$pindahlelongsag->lelong_id = $lelongidbaru;
|
||||
$pindahlelongsag->update();
|
||||
|
||||
//insert loguser
|
||||
$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 = 'Pindah Lelong '.$lelongidasal.'-'.$lelongidbaru;
|
||||
$loguser->save();
|
||||
|
||||
$checksag = LelongBid::where('lelong_id',$request->lelongid)
|
||||
->first();
|
||||
// dd($checksag);
|
||||
|
||||
if($checksag)
|
||||
{
|
||||
|
||||
//insert loguser
|
||||
$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 = 'Pindah Lelong '.$lelongidasal.'-'.$lelongidbaru;
|
||||
$loguser->save();
|
||||
}
|
||||
else{
|
||||
$lelongbatch = Lelong::where('id','=',$lelongidasal)->first();
|
||||
$lelongbatch->delete();
|
||||
|
||||
$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 = 'Pindah Lelong '.$lelongidasal.'-'.$lelongidbaru;
|
||||
$loguser->save();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if($checksag){
|
||||
return redirect()->route('lelong.listsagpindah',['lelongid'=>$request->lelongid,'cawid'=>$request->cawid])
|
||||
->with('success','Pindah ID Lelong Berjaya');
|
||||
}else{
|
||||
return redirect()->route('lelong.pindahsenarailelong')
|
||||
->with('success','Pindah ID Lelong Berjaya');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function temprenewlelongxlaku(Request $request)
|
||||
@@ -3081,7 +3200,14 @@ class LelongController extends Controller
|
||||
$total_untung_rebet = TransaksiKeuntungan::on('main')->where('norujukan','=',$listing['norujukan'])->sum('keuntungan_rebet');
|
||||
$total_untung_asal = TransaksiKeuntungan::on('main')->where('norujukan','=',$listing['norujukan'])->sum('bayaran_keuntungan');
|
||||
$beza_keuntungan = $total_untung_asal - $total_untung_rebet;
|
||||
$keuntungan = bcdiv(($listing['tempoh']-$listing['tempohbayar'])*$listing['kadarupah']/100*$listing['bakipjm'],1,1)-$beza_keuntungan;
|
||||
// $keuntungan = bcdiv(($listing['tempoh']-$listing['tempohbayar'])*$listing['kadarupah']/100*$listing['bakipjm'],1,1)-$beza_keuntungan;
|
||||
$jbg = $listing['tempoh']-$listing['tempohbayar'];
|
||||
$jbg2 = 12- $listing['tempohbayar'];
|
||||
if($listing['tempoh'] <= '12.00'){
|
||||
$keuntungan = bcdiv(($jbg)*$listing['kadarupah']/100*$listing['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($jbg2)*$listing['kadarupah']/100*$listing['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
// dd($keuntungan);
|
||||
$listsag[$index]['ktlhbyr'] = $ktlhbyr;
|
||||
$listsag[$index]['keuntungan'] = $keuntungan;
|
||||
@@ -3822,7 +3948,7 @@ class LelongController extends Controller
|
||||
$total_bakiupah = $total_bakiupah + $bakiupah;
|
||||
|
||||
|
||||
$data = Simulasi::where('kali','=',$kali)
|
||||
$data = Lelong::where('kali','=',$kali)
|
||||
->first();
|
||||
// dd($data);
|
||||
|
||||
@@ -5193,7 +5319,7 @@ class LelongController extends Controller
|
||||
'id_cawangan'=> $cawlel['caw_id'],
|
||||
'cawangan' => $cawlel->cawangan->caw_name,
|
||||
't_lelong'=>$lelong['tarikh_lelong'],
|
||||
'bil_marhun'=>sizeof($cawlel->lelongBid),
|
||||
'bil_marhun'=>sizeof($databid),
|
||||
'berat'=>$berat,
|
||||
'n_marhun'=>$nilai_marhun,
|
||||
'pinjaman'=>$pinjaman,
|
||||
@@ -5206,7 +5332,7 @@ class LelongController extends Controller
|
||||
'bakilelong'=>$bakilelong,
|
||||
]);
|
||||
|
||||
$total_marhun += sizeof($cawlel->lelongBid);
|
||||
$total_marhun += sizeof($databid);
|
||||
|
||||
// $total_marhun = $total_marhun + sizeof($databid);
|
||||
// $total_berat = $total_berat + $berat;
|
||||
@@ -5991,6 +6117,26 @@ class LelongController extends Controller
|
||||
}
|
||||
|
||||
|
||||
public function exporthargaemas($lelong_id){
|
||||
|
||||
$lelong = Lelong::with(['lelKarat'])->find($lelong_id);
|
||||
// dd($lelong);
|
||||
$lelkarat = $lelong->lelKarat;
|
||||
$tarikhkemaskini = $lelong->lelKarat[0];
|
||||
$jeniskarat = JenisKarat::all();
|
||||
$today = date('d-m-Y');
|
||||
|
||||
$pdf1 = PDF::loadView('pdf.exporthargaemas', compact('lelong_id','lelkarat','jeniskarat','tarikhkemaskini'))
|
||||
->setPaper('a4', 'potrait');
|
||||
|
||||
return $pdf1->download('Harga Emas Lelong '.$today.'.pdf');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -731,7 +731,7 @@ class MarhunController extends Controller
|
||||
->where('kodcaw', '=', $user['kodcaw'])
|
||||
->get()
|
||||
->toArray();
|
||||
dd($lelongs);
|
||||
//dd($lelongs);
|
||||
|
||||
$arraycaw = [];
|
||||
|
||||
@@ -1680,14 +1680,14 @@ class MarhunController extends Controller
|
||||
$senaraiScanKeluar = ScanSemak::where('kodcaw', '=', $caw->caw_code)
|
||||
->where('lelong_id', $lelong_id)
|
||||
->whereNull('terima_marhun')
|
||||
->orderBy('id', 'desc')
|
||||
->orderBy('norujukan', 'asc')
|
||||
->get();
|
||||
|
||||
$sedangDinilai = ScanSemak::where('kodcaw', '=', $caw->caw_code)
|
||||
->whereNotNull('terima_marhun')
|
||||
->whereNull('serah_marhun')
|
||||
->where('lelong_id', $lelong_id)
|
||||
->orderBy('id', 'desc')
|
||||
->orderBy('norujukan', 'asc')
|
||||
->get();
|
||||
foreach ($sedangDinilai as $key => $dinilai) {
|
||||
$sdhdisemak = LelongBid::where('lelongbid.lelong_id', $lelong_id)
|
||||
@@ -1702,7 +1702,7 @@ class MarhunController extends Controller
|
||||
$sudahSerah = ScanSemak::where('kodcaw', '=', $caw->caw_code)
|
||||
->whereNotNull('serah_marhun')
|
||||
->where('lelong_id', $lelong_id)
|
||||
->orderBy('id', 'desc')
|
||||
->orderBy('norujukan', 'asc')
|
||||
->get();
|
||||
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ use App\Models\Resit;
|
||||
use App\Models\FileResit;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\JenisEmas;
|
||||
use App\Services\MarhunPhotoService;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
@@ -204,6 +205,9 @@ class LelongMobileController extends Controller
|
||||
$total_hargabida = 0;
|
||||
$total_berat = 0;
|
||||
foreach ($lelongBidder as $index1 => $data) {
|
||||
$fileMarhun = FileMarhun::where('lelongbid_id', $data['id'])->get();
|
||||
$lelongBidder[$index1]['filemarhun'] = $fileMarhun;
|
||||
|
||||
$total_hargabida += $data['hargabida'];
|
||||
$total_berat += $data['berat'];
|
||||
$marhun = LelongBidMarhun::where('lelongbid_id', '=', $data['id'])->get()->toArray();
|
||||
@@ -345,6 +349,7 @@ class LelongMobileController extends Controller
|
||||
if ($lelong) {
|
||||
$lelongbid = LelongBid::where('lelong_id', $lelong['lelong_id'])
|
||||
->where('caw_id', '=', $request->caw_id)
|
||||
->where('status_jual', '=', 0)
|
||||
->select('id', 'kodcaw')
|
||||
->get();
|
||||
$pluckedLelongBid = $lelongbid->pluck('id')->toArray();
|
||||
@@ -377,6 +382,20 @@ class LelongMobileController extends Controller
|
||||
$lelongbid['lelongbidmarhun'] = $lelongbidmarhun;
|
||||
|
||||
$fileMarhun = FileMarhun::where('lelongbid_id', $lelongbid['id'])->get();
|
||||
// dd($fileMarhun);
|
||||
|
||||
// foreach ($fileMarhun as $index) {
|
||||
// dd($index);
|
||||
// // $eachmarhun = FileMarhun::where('lelongbidmarhun_id', '=', $index['id'])->first();
|
||||
// // if (isset($eachmarhun)) {
|
||||
// // $index->eachmarhun_filename = route('marhun.showphotomarhun', ['norujukan_sag' => $lelongbid['norujukan'], 'filemarhun_id' => $index->id]);
|
||||
// // $test = route('marhun.showphotomarhun', ['norujukan_sag' => $lelongbid['norujukan'], 'filemarhun_id' => $index->id]);
|
||||
// $marhunPhotoService = new MarhunPhotoService();
|
||||
// $marhun_photo = $marhunPhotoService->get($lelongbid['norujukan'], $index);
|
||||
// dd($marhun_photo);
|
||||
// return $marhun_photo;
|
||||
// }
|
||||
// // dd($fileMarhun);
|
||||
|
||||
if ($fileMarhun->isNotEmpty()) {
|
||||
$lelongbid['filemarhun'] = $fileMarhun;
|
||||
@@ -398,6 +417,14 @@ class LelongMobileController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function photoMarhun(Request $request)
|
||||
{
|
||||
$fileMarhun = FileMarhun::find($request->filemarhun_id);
|
||||
$marhunPhotoService = new MarhunPhotoService();
|
||||
$marhun_photo = $marhunPhotoService->get($request->norujukan, $fileMarhun);
|
||||
return base64_encode($marhun_photo);
|
||||
}
|
||||
|
||||
public function lelongOnline()
|
||||
{
|
||||
$lelong = Lelong::where('sts_lelong', '=', 1)->first();
|
||||
|
||||
@@ -154,7 +154,9 @@ class ReportCawanganController extends Controller
|
||||
|
||||
|
||||
$lelongid = Lelong::join('cawangan_lelong','lelong.id','=','cawangan_lelong.lelong_id')
|
||||
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
|
||||
->where('cawangan_lelong.lelong_id','=',$lelong_id)
|
||||
->where('cawangan.caw_code',$user->kodcaw)
|
||||
->select('lelong_id','tarikh_lelong','lelong.fasa')
|
||||
->groupBy('lelong_id')
|
||||
->get()->toArray();
|
||||
@@ -192,9 +194,6 @@ class ReportCawanganController extends Controller
|
||||
|
||||
]);
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf = PDF::loadView('pdf.laporanbrgleldetailscaw',compact('lelongs','arraycaw','total_nmarhun','total_berat','total_harga','total_hargaasas','arrayinfo'
|
||||
))->setPaper('a4', 'potrait');
|
||||
|
||||
@@ -336,6 +335,7 @@ class ReportCawanganController extends Controller
|
||||
|
||||
foreach($laporanlelong as $index1=>$laplelong)
|
||||
{
|
||||
$margin = ($laplelong['pinjaman']/ $laplelong['nilaimarhun'])*100;
|
||||
|
||||
$total_nmarhun = $total_nmarhun + $laplelong['nilaimarhun'];
|
||||
$total_pembiayaan = $total_pembiayaan + $laplelong['pinjaman'];
|
||||
@@ -344,6 +344,8 @@ class ReportCawanganController extends Controller
|
||||
$total_hargalelong = $total_hargalelong + $laplelong['hargabida'];
|
||||
$total_bakirugi = $total_bakirugi + $laplelong['baki'];
|
||||
$total_hargaasas = $total_hargaasas + $laplelong['hargaasas'];
|
||||
|
||||
$laporanlelong[$index1]['margin']=$margin;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -554,9 +554,9 @@ class ReportController extends Controller
|
||||
|
||||
Public function lelongtebus ($lelong_id, $kodcaw){
|
||||
|
||||
$total_berat = 0;
|
||||
$total_hargaasas = 0;
|
||||
$total_hargalelong = 0;
|
||||
$total_nmarhun = 0;
|
||||
$total_pinjaman = 0;
|
||||
$total_upah = 0;
|
||||
$arrayinfocaw = [];
|
||||
|
||||
|
||||
@@ -584,16 +584,15 @@ class ReportController extends Controller
|
||||
->get()->toArray();
|
||||
// dd($laporantebus);
|
||||
|
||||
// foreach( $brglelpembida as $index1=>$totalbrglelpembida){
|
||||
foreach( $laporantebus as $index1=>$totalbrglelpembida){
|
||||
|
||||
// $total_berat = $total_berat + $totalbrglelpembida['berat'];
|
||||
// $total_hargaasas = $total_hargaasas + $totalbrglelpembida['hargaasas'];
|
||||
// $total_hargalelong = $total_hargalelong + $totalbrglelpembida['hargabida'];
|
||||
|
||||
// }
|
||||
$total_nmarhun += $totalbrglelpembida['nilaimarhun'];
|
||||
$total_pinjaman += $totalbrglelpembida['pinjaman'];
|
||||
$total_upah += $totalbrglelpembida['upah'];
|
||||
}
|
||||
|
||||
|
||||
$pdf = PDF::loadView('pdf.pdflelongtebus',compact('lelong_id','info','laporantebus','total_berat','total_hargaasas','total_hargalelong','arrayinfocaw'))
|
||||
$pdf = PDF::loadView('pdf.pdflelongtebus',compact('lelong_id','info','laporantebus','total_nmarhun','total_pinjaman','total_upah','arrayinfocaw'))
|
||||
->setPaper('a4','potrait');
|
||||
|
||||
return $pdf->download('Laporan Barang Lelong Pembida.pdf');
|
||||
|
||||
@@ -1137,8 +1137,15 @@ class SimulasiController extends Controller
|
||||
if($detail_sag['tempohbayar'] == $detail_sag['tempoh'] ){
|
||||
$keuntungan = 0.00;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($detail_sag['tempoh']-$detail_sag['tempohbayar'])*$detail_sag['kadarupah']/100*$detail_sag['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
// $keuntungan = bcdiv(($detail_sag['tempoh']-$detail_sag['tempohbayar'])*$detail_sag['kadarupah']/100*$detail_sag['bakipjm'],1,1)-$beza_keuntungan;
|
||||
$jbg = $detail_sag['tempoh']-$detail_sag['tempohbayar'];
|
||||
$jbg2 = 12- $detail_sag['tempohbayar'];
|
||||
if($detail_sag['tempoh'] <= '12.00'){
|
||||
$keuntungan = bcdiv(($jbg)*$detail_sag['kadarupah']/100*$detail_sag['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($jbg2)*$detail_sag['kadarupah']/100*$detail_sag['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
}
|
||||
|
||||
$sumhargaasas = 0;
|
||||
$simulasibidmarhun = SimulasiBidMarhun::where('simulasibid_id','=',$bid['id'])->get();
|
||||
@@ -1719,8 +1726,14 @@ class SimulasiController extends Controller
|
||||
$beza_keuntungan = $total_untung_asal - $total_untung_rebet;
|
||||
|
||||
// dd($beza_keuntungan);
|
||||
$keuntungan = bcdiv(($surats['tempoh']-$surats['tempohbayar'])*$surats['kadarupah']/100*$surats['bakipjm'],1,1)-$beza_keuntungan;
|
||||
|
||||
// $keuntungan = bcdiv(($surats['tempoh']-$surats['tempohbayar'])*$surats['kadarupah']/100*$surats['bakipjm'],1,1)-$beza_keuntungan;
|
||||
$jbg = $surats['tempoh']-$surats['tempohbayar'];
|
||||
$jbg2 = 12- $surats['tempohbayar'];
|
||||
if($surats['tempoh'] <= '12.00'){
|
||||
$keuntungan = bcdiv(($jbg)*$surats['kadarupah']/100*$surats['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($jbg2)*$surats['kadarupah']/100*$surats['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
// dd($surats['hargajualan']);
|
||||
$ktlhbyr = $surats['hargajualan']-$surats['bakihargajualan'];
|
||||
// dd($ktlhbyr);
|
||||
@@ -1855,7 +1868,14 @@ class SimulasiController extends Controller
|
||||
$total_untung_rebet = TransaksiKeuntungan::on('main')->where('norujukan','=',$data['norujukan'])->sum('keuntungan_rebet');
|
||||
$total_untung_asal = TransaksiKeuntungan::on('main')->where('norujukan','=',$data['norujukan'])->sum('bayaran_keuntungan');
|
||||
$beza_keuntungan = $total_untung_asal - $total_untung_rebet;
|
||||
$keuntungan = bcdiv(($data['tempoh']-$data['tempohbayar'])*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
|
||||
$jbg = $data['tempoh']-$data['tempohbayar'];
|
||||
$jbg2 = 12- $data['tempohbayar'];
|
||||
if($data['tempoh'] <= '12.00'){
|
||||
$keuntungan = bcdiv(($jbg)*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($jbg2)*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
// dd($keuntungan);
|
||||
//update dalam simulasibid
|
||||
$updatetempoh = SimulasiBid::where('norujukan', $data['norujukan'])
|
||||
@@ -1919,6 +1939,39 @@ class SimulasiController extends Controller
|
||||
$loguser->nota = ' LELONG TEBUS '.$simulasi_id;
|
||||
$loguser->save();
|
||||
}
|
||||
else{
|
||||
//kemaskini keuntungan
|
||||
$total_untung_rebet = TransaksiKeuntungan::on('main')->where('norujukan','=',$data['norujukan'])->sum('keuntungan_rebet');
|
||||
$total_untung_asal = TransaksiKeuntungan::on('main')->where('norujukan','=',$data['norujukan'])->sum('bayaran_keuntungan');
|
||||
$beza_keuntungan = $total_untung_asal - $total_untung_rebet;
|
||||
|
||||
$jbg = $data['tempoh']-$data['tempohbayar'];
|
||||
$jbg2 = 12- $data['tempohbayar'];
|
||||
if($data['tempoh'] <= '12.00'){
|
||||
$keuntungan = bcdiv(($jbg)*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($jbg2)*$data['kadarupah']/100*$data['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
// dd($keuntungan);
|
||||
//update dalam simulasibid
|
||||
$updatetempoh = SimulasiBid::where('norujukan', $data['norujukan'])
|
||||
->where('simulasi_id', $simulasi_id)
|
||||
->first();
|
||||
$updatetempoh->jbg = $data['tempoh'];
|
||||
$updatetempoh->pinjaman = $data['bakipjm'];
|
||||
$updatetempoh->bakiupah = bcdiv($keuntungan,1,1);
|
||||
$updatetempoh->update();
|
||||
|
||||
//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 = $simulasi_id.' Kemaskini Tempoh/Bakipjm/Keuntungan' ;
|
||||
$loguser->save();
|
||||
}
|
||||
$date = Carbon::now()->toDateTimeString();
|
||||
$simulasi = Simulasi::where('id','=',$simulasi_id)->first();
|
||||
$simulasi->masakemaskini_data = $date;
|
||||
@@ -1971,8 +2024,16 @@ class SimulasiController extends Controller
|
||||
$total_untung_rebet = TransaksiKeuntungan::on('main')->where('norujukan','=',$listing['norujukan'])->sum('keuntungan_rebet');
|
||||
$total_untung_asal = TransaksiKeuntungan::on('main')->where('norujukan','=',$listing['norujukan'])->sum('bayaran_keuntungan');
|
||||
$beza_keuntungan = $total_untung_asal - $total_untung_rebet;
|
||||
$keuntungan = bcdiv(($listing['tempoh']-$listing['tempohbayar'])*$listing['kadarupah']/100*$listing['bakipjm'],1,1)-$beza_keuntungan;
|
||||
|
||||
// $keuntungan = bcdiv(($listing['tempoh']-$listing['tempohbayar'])*$listing['kadarupah']/100*$listing['bakipjm'],1,1)-$beza_keuntungan;
|
||||
// dd($keuntungan);
|
||||
$jbg = $listing['tempoh']-$listing['tempohbayar'];
|
||||
$jbg2 = 12- $listing['tempohbayar'];
|
||||
if($listing['tempoh'] <= '12.00'){
|
||||
$keuntungan = bcdiv(($jbg)*$listing['kadarupah']/100*$listing['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($jbg2)*$listing['kadarupah']/100*$listing['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
$listsag[$index]['ktlhbyr'] = $ktlhbyr;
|
||||
$listsag[$index]['keuntungan'] = $keuntungan;
|
||||
}
|
||||
@@ -2370,8 +2431,14 @@ class SimulasiController extends Controller
|
||||
$beza_keuntungan = $total_untung_asal - $total_untung_rebet;
|
||||
|
||||
// dd($beza_keuntungan);
|
||||
$keuntungan = bcdiv(($surats['tempoh']-$surats['tempohbayar'])*$surats['kadarupah']/100*$surats['bakipjm'],1,1)-$beza_keuntungan;
|
||||
|
||||
$jbg = $surats['tempoh']-$surats['tempohbayar'];
|
||||
$jbg2 = 12- $surats['tempohbayar'];
|
||||
if($surats['tempoh'] <= '12.00'){
|
||||
$keuntungan = bcdiv(($jbg)*$surats['kadarupah']/100*$surats['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($jbg2)*$surats['kadarupah']/100*$surats['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
// dd($surats['hargajualan']);
|
||||
$ktlhbyr = $surats['hargajualan']-$surats['bakihargajualan'];
|
||||
// dd($ktlhbyr);
|
||||
@@ -2470,8 +2537,14 @@ class SimulasiController extends Controller
|
||||
$beza_keuntungan = $total_untung_asal - $total_untung_rebet;
|
||||
|
||||
// dd($beza_keuntungan);
|
||||
$keuntungan = bcdiv(($surats['tempoh']-$surats['tempohbayar'])*$surats['kadarupah']/100*$surats['bakipjm'],1,1)-$beza_keuntungan;
|
||||
|
||||
// $keuntungan = bcdiv(($surats['tempoh']-$surats['tempohbayar'])*$surats['kadarupah']/100*$surats['bakipjm'],1,1)-$beza_keuntungan;
|
||||
$jbg = $surats['tempoh']-$surats['tempohbayar'];
|
||||
$jbg2 = 12- $surats['tempohbayar'];
|
||||
if($surats['tempoh'] <= '12.00'){
|
||||
$keuntungan = bcdiv(($jbg)*$surats['kadarupah']/100*$surats['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}else{
|
||||
$keuntungan = bcdiv(($jbg2)*$surats['kadarupah']/100*$surats['bakipjm'],1,1)-$beza_keuntungan;
|
||||
}
|
||||
// dd($surats['hargajualan']);
|
||||
$ktlhbyr = $surats['hargajualan']-$surats['bakihargajualan'];
|
||||
// dd($ktlhbyr);
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ class Kernel extends HttpKernel
|
||||
'api' => [
|
||||
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
|
||||
\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
|
||||
'throttle:api',
|
||||
// 'throttle:api',
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
],
|
||||
];
|
||||
|
||||
@@ -92,4 +92,23 @@ class MarhunPhotoService
|
||||
header('Content-Disposition: inline; filename="'.basename($filePath).'"');
|
||||
readfile($filePath);
|
||||
}
|
||||
|
||||
public function get($norujukan_sag, $marhun)
|
||||
{
|
||||
$lelongbidmarhun_id = $marhun->lelongbidmarhun_id;
|
||||
|
||||
$photo_type_name = $marhun->photo_type === 1 ? 'overall_photo' : 'by_marhun_photo';
|
||||
|
||||
$directory = "/{$norujukan_sag}/{$photo_type_name}/";
|
||||
$imageExtension = $marhun->file_type;
|
||||
|
||||
$marhunImageFileName = "overall.{$imageExtension}";
|
||||
|
||||
if (!empty($lelongbidmarhun_id)) {
|
||||
$marhunImageFileName = "$lelongbidmarhun_id.$imageExtension";
|
||||
}
|
||||
|
||||
return Storage::disk('marhun')->get("{$directory}${marhunImageFileName}");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6 d-flex flex-column justify-content-center align-items-center border-right">
|
||||
<h1 class="text-light"><i class="fa fa-fw fa-gavel"></i>ArrahnBid</h1>
|
||||
<p class="pb-4 text-light">Bida Harga Lelong Emas Anda Sekarang Secara Atas Talian</p>
|
||||
<p class="pb-4 text-light">Sistem Lelongan Atas Talian</p>
|
||||
</div>
|
||||
<div class="col-md-6 flex-column active show p-5 border-left">
|
||||
<form method="POST" action="{{ route('login') }}">
|
||||
@@ -67,9 +67,9 @@
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
<small class="form-text text-muted text-right">
|
||||
{{-- <small class="form-text text-muted text-right">
|
||||
<a href="{{ route('termasyarat') }}" class="link-terma text-light"> Sila Baca Terma Dan Syarat Terlebih Dahulu Klik Disini</a>
|
||||
</small>
|
||||
</small> --}}
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
@@ -92,7 +92,7 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<p class="mb-0">© Sistem Lelong. All rights reserved</p>
|
||||
<p class="mb-0"> ArrahnBid © Permodalan Kelantan Berhad</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('reportcaw/*')) ? 'show' : '' }}" id="reportSubmenu">
|
||||
<li class="{{ (request()->is('reportcaw/indexnamapembidacaw/*') || request()->is('reportcaw/indexnamapembidacaw') ) ? 'active' : '' }}">
|
||||
<a href="{{url('reportcaw/indexnamapembidacaw')}}">Keseluruhan Pembida</a>
|
||||
<a href="{{url('reportcaw/indexnamapembidacaw')}}">Bidaan Pembida</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('reportcaw/*')) ? 'show' : '' }}" id="reportSubmenu">
|
||||
@@ -505,7 +505,7 @@
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('report/*')) ? 'show' : '' }}" id="reportSubmenu">
|
||||
<li class="{{ (request()->is('report/lapbidaanpembidaindex/*') || request()->is('report/lapbidaanpembidaindex') ) ? 'active' : '' }}">
|
||||
<a href="{{url('report/lapbidaanpembidaindex')}}">Keseluruhan Pembida</a>
|
||||
<a href="{{url('report/lapbidaanpembidaindex')}}">Bidaan Pembida</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('report/*')) ? 'show' : '' }}" id="reportSubmenu">
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
<td>{{ $loop->iteration }} </td>
|
||||
<td>{{ $notis['nokp']}}</td>
|
||||
{{-- <td style='word-wrap'>{{ $notis['nama']['nama']}}</td> --}}
|
||||
|
||||
<td>@foreach($notis['listsag'] as $item){{ $item['norujukan']}}<br>@endforeach</td>
|
||||
<td>@foreach($notis['listsag'] as $item){{ $item['tempoh']}}<br>@endforeach</td>
|
||||
<td>@foreach($notis['listsag'] as $item){{ number_format($item['pinjaman'], 2, '.', ',')}}<br>@endforeach</td>
|
||||
|
||||
@@ -2,9 +2,17 @@
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col mx-auto p-4">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
|
||||
<div class="header-style-title">
|
||||
Senarai Pemenang
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
@@ -12,7 +20,7 @@
|
||||
@endif
|
||||
<form id="exportform" action="" method="POST">
|
||||
<input type="hidden" name="type" value="User">
|
||||
<table class="table table-striped table-xl text-center" id="tablelelong" style="width:100%">
|
||||
<table class="table table-bordered table-xl text-center" id="tablelelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
@@ -40,7 +48,7 @@
|
||||
@foreach($lel['detailsinfo'] as $details)
|
||||
@if($details['status_jual'] == 1)
|
||||
|
||||
<a href=" {{ route('pemenang.senaraipemenang', [ 'lelong_id'=>$lel['detail']['lelong_id'], 'caw_code'=>$details['caw_code'] ]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a>
|
||||
<a class="btn m-1 btn-info" href=" {{ route('pemenang.senaraipemenang', [ 'lelong_id'=>$lel['detail']['lelong_id'], 'caw_code'=>$details['caw_code'] ]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a>
|
||||
@endif
|
||||
<span class="m-2">{{$details['caw_name']}}</span><br>
|
||||
@endforeach
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-md-12 mx-auto card p-4" style="margin-top:2%; margin-bottom:2%;">
|
||||
<p> <b>Nama Cawangan : </b>{{ $getnamacaw->caw_name }}</p>
|
||||
<table class="table table-striped table-xl text-center" id="tablekaunter" style="width:100%">
|
||||
<table class="table table-bordered table-xl text-center" id="tablekaunter" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<div class="card-header header-style">
|
||||
<div class="header-style-title">
|
||||
Butiran Laporan Barang Lelong
|
||||
Butiran Barang Lelong
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<form id="exportform" action="" method="POST">
|
||||
<input type="hidden" name="type" value="User">
|
||||
<table class="table table-striped table-xl" id="tablenotislelong" style="width:100%">
|
||||
<table class="table table-bordered table-xl" id="tablenotislelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<div class="card-header header-style">
|
||||
<div class="header-style-title">
|
||||
Senarai Lelong Keseluruhan
|
||||
Laporan Lelongan
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<form id="exportform" action="" method="POST">
|
||||
<input type="hidden" name="type" value="User">
|
||||
<table class="table table-striped table-xl" id="tablenotislelong" style="width:100%">
|
||||
<table class="table table-bordered table-xl" id="tablenotislelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<div class="card-header header-style">
|
||||
<div class="header-style-title">
|
||||
Senarai Keseluruhan Pembida
|
||||
Senarai Bidaan Pembida
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<form id="exportform" action="" method="POST">
|
||||
<input type="hidden" name="type" value="User">
|
||||
<table class="table table-striped table-xl" id="tablenotislelong" style="width:100%">
|
||||
<table class="table table-bordered table-xl" id="tablenotislelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<form id="exportform" action="" method="POST">
|
||||
<input type="hidden" name="type" value="User">
|
||||
<table class="table table-striped table-xl" id="tablenotislelong" style="width:100%">
|
||||
<table class="table table-bordered table-xl" id="tablenotislelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<th>No.KP</th>
|
||||
<th>No.Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat(gm)</th>
|
||||
<th>Berat Asal(gm)</th>
|
||||
<th>Nilai Marhun Asal(RM)</th>
|
||||
<th>Pembiayaan Asal(RM)</th>
|
||||
<th>Baki Pembiayaan(RM)</th>
|
||||
|
||||
@@ -10,28 +10,28 @@
|
||||
<a href="javascript:window.history.go(-1);" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
@foreach ($arrayinfo as $laporan)
|
||||
@foreach ($arrayinfo as $laporan)
|
||||
<div class="header-style-title">
|
||||
Senarai SAG(Pindah Batch Lelong) : @foreach($laporan['details'] as $details)
|
||||
<b>{{ $details['caw_name']}}</b>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
<span class="pt-3" style="margin-left:1%;"><b>Batch Lelong : {{ $laporan['laporan']['lelong_id']}}</b></span><br>
|
||||
<span class="pt-3" style="margin-left:1%;"><b>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
@endphp</b></span>
|
||||
@endforeach
|
||||
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<span class="pt-3" style="margin-left:1%;"><b>Batch Lelong : {{ $laporan['laporan']['lelong_id']}}</b></span><br>
|
||||
<span class="pt-3" style="margin-left:1%;"><b>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
@endphp</b></span>
|
||||
|
||||
@endforeach
|
||||
|
||||
<form id="deletesag" action="{{route('lelong.pindahlelongbysag')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="lelongid" value="{{$lelongid}}">
|
||||
@@ -47,8 +47,9 @@
|
||||
<table class="table text-right table-bordered" id="marhun" 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>Pilih</th>
|
||||
<th>No</th>
|
||||
{{-- <th>No</th> --}}
|
||||
<th>No Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat (gm)</th>
|
||||
@@ -65,8 +66,8 @@
|
||||
<tbody>
|
||||
@foreach ($marhuns as $index=> $marhun)
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<input type="checkbox" aria-label="Checkbox for following text input" onclick="btnDelete(this)" name="checkboxdata[]" value="{{ $marhun['norujukan'] }}">
|
||||
<td class="text-center">
|
||||
<input type="checkbox" aria-label="Checkbox for following text input" onclick="btnDelete(this)" name="checkboxdata[]" value="{{ $marhun['norujukan'] }}" class="checkbox">
|
||||
</td>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td style="white-space: nowrap;">{{ $marhun['norujukan']}}</td>
|
||||
@@ -110,7 +111,34 @@
|
||||
</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>
|
||||
$("#btndelete").prop("disabled", true);
|
||||
function btnDelete(e) {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<table class="table text-right table-bordered" id="senarailelongtaklaku" style="width:100%">
|
||||
<table class="table text-center table-bordered" id="senarailelongtaklaku" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
@@ -70,21 +70,6 @@
|
||||
<td>{{$data['laporan']['cajlelong']}}</td>
|
||||
|
||||
<td class="text-center">
|
||||
@hasrole('jurulelong')
|
||||
<a class="btn btn-primary" href="{{ route('lelong.show',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Butiran" style="margin-right:40px" ><i class="far fa-edit"></i></a>
|
||||
<!-- @if($data['laporan']['sts_lelong'] == 0) -->
|
||||
<!-- <a href="{{ route('lelong.refresh',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Kemaskini Data" style="margin-right:40px"><i class="fas fa-sync-alt"></i></a> -->
|
||||
<!-- <a class="startlelong" href="{{ route('lelong.start',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Mula Lelong" style="margin-right:40px"><i class="fa fa-play"></i></a> -->
|
||||
<!-- <a href="{{ route('lelong.show',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Butiran" style="margin-right:40px" ><i class="far fa-edit"></i></a> -->
|
||||
<!-- <a class="confirmdel" href="{{ route('lelong.delete',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Padam" ><i class="far fa-trash-alt"></i></a> -->
|
||||
<!-- @elseif ($data['laporan']['sts_lelong'] == 2) -->
|
||||
<!-- <a href="{{ route('lelong.janapemenang',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Jana Pemenang"><i class="fas fa-users-cog"></i></a> -->
|
||||
<!-- @elseif ($data['laporan']['sts_lelong'] == 3) -->
|
||||
<!-- <a href="{{ route('lelong.senaraipemenang',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Senarai Pemenang"><i class="fas fa-trophy"></i></a> -->
|
||||
<!-- @else -->
|
||||
<!-- <a class="stoplelong" href="{{ route('lelong.stop',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Tamat Lelong"><i class="fa fa-stop"></i></a> -->
|
||||
<!-- @endif -->
|
||||
@endhasrole
|
||||
@hasrole('operasi')
|
||||
|
||||
@if($data['laporan']['sts_lelong'] == 0)
|
||||
|
||||
@@ -4,16 +4,23 @@
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
||||
<button type="button" class="btn btn-light" ><a href="javascript:window.history.go(-1);"><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
|
||||
</div><br>
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<a href="{{ route('lelong.listpemenang') }}" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
senarai lelong : {{ $cawanganDetail->caw_name }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<table class="table table-striped table-xl text-center" id="tablekaunter" style="width:100%">
|
||||
<table class="table table-bordered table-xl text-center" id="tablekaunter" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
@@ -37,7 +44,7 @@
|
||||
<td>{{ $winner['total_surat']}}</td>
|
||||
<td>{{ number_format($winner['totalBid'], 2, '.', ',') }}</td>
|
||||
<td>
|
||||
<a href=" {{ route('lelong.senaraisagpemenang', ['user_id'=>$winner['user_id'],'lelong_id'=>$lelong_id ,'kodcaw'=>$caw_code]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan" ><i class="far fa-edit"></i></a>
|
||||
<a class="btn m-1 btn-info" href=" {{ route('lelong.senaraisagpemenang', ['user_id'=>$winner['user_id'],'lelong_id'=>$lelong_id ,'kodcaw'=>$caw_code]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan" ><i class="far fa-edit"></i></a>
|
||||
{{-- <a href=" {{ route('lelong.senaraisagpemenang', ['user_id'=>$winner['user_id'],'lelong_id'=>$lelong_id,'ic'=>$winner['nokp']]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan" ><i class="far fa-edit"></i></a> --}}
|
||||
|
||||
</td>
|
||||
|
||||
@@ -4,10 +4,17 @@
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
||||
<button type="button" class="btn btn-light" ><a href="javascript:window.history.go(-1);"><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
|
||||
<div class="col mx-auto p-4">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<a href="javascript:window.history.go(-1);" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
senarai Sag : {{ $cawanganDetail->caw_name }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
@@ -22,7 +29,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-striped table-xl text-center" id="tablesagmenang" style="width:100%">
|
||||
<table class="table table-bordered table-xl text-center" id="tablesagmenang" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
@foreach ($arraycaw as $index=>$caw)
|
||||
<tr>
|
||||
<td>{{$index+1}}</td>
|
||||
<td><a href=" {{ route('lelong.senaraimarhun',['lelongid'=>$lelong_id,'cawid'=>$caw['id_cawangan']]) }} " target="blank" style="color:#3490dc">{{ $caw['cawangan'] }}</a></td>
|
||||
<td style='white-space:nowrap;'><a href=" {{ route('lelong.senaraimarhun',['lelongid'=>$lelong_id,'cawid'=>$caw['id_cawangan']]) }} " target="blank" style="color:#3490dc">{{ $caw['cawangan'] }}</a></td>
|
||||
<td align = 'center'>{{ $caw['bil_marhun'] }}</td>
|
||||
<td align = 'right'>{{ number_format($caw['berat'], 2, '.', ',') }}</td>
|
||||
<td align = 'right' >{{ number_format($caw['n_marhun'], 2, '.', ',') }}</td>
|
||||
@@ -265,10 +265,17 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="nav-hargaasas" role="tabpanel" aria-labelledby="nav-hargaasas-tab">
|
||||
<br>
|
||||
{{-- <form id="exporthargaemas" action="{{route('lelong.exporthargaemas')}}" method="POST"> --}}
|
||||
{{-- @csrf
|
||||
<input type="hidden" name="type" value="User">
|
||||
<input type="hidden" name="lelongid" value="{{ $lelong_id }}"> --}}
|
||||
|
||||
<div class="row ">
|
||||
<div class="col-md-10 mx-auto ">
|
||||
<button type="button" class="btn mb-5 btn-outline-success" ><a href="{{ route('lelong.exporthargaemas', $lelong_id)}}"><h3><i class="fas fa-print"></i></h3></a></button>
|
||||
<button class="btn btn-primary float-right " onclick="kemaskini()" id="btnkemaskini" >Ubah</button>
|
||||
|
||||
<div id="hideform">
|
||||
@@ -280,6 +287,8 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row ">
|
||||
<div class="col-md-10 mx-auto">
|
||||
|
||||
@@ -307,7 +316,7 @@
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
{{-- </form> --}}
|
||||
</div>
|
||||
</div>
|
||||
{{-- <a class="btn btn-primary" href="{{ route('lelong.kemaskinihargaasas',$lelong_id) }}">Kemaskini</a> --}}
|
||||
|
||||
@@ -158,12 +158,12 @@
|
||||
@foreach ($arraycaw as $index=>$caw)
|
||||
<tr>
|
||||
<td>{{$index+1}}</td>
|
||||
<td>@php
|
||||
<td style='white-space:nowrap;'>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $caw['t_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<td>{{ $caw['cawangan'] }}</td>
|
||||
<td style='white-space:nowrap;'>{{ $caw['cawangan'] }}</td>
|
||||
<td>{{ $caw['bil_marhun'] }}</td>
|
||||
<td>{{ number_format($caw['berat'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['n_marhun'], 2, '.', ',') }}</td>
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
@foreach ($arraycaw as $index=>$caw)
|
||||
<tr>
|
||||
<td>{{$index+1}}</td>
|
||||
<td><a href=" {{ route('jananotis.senaraimarhundone',['lelongid'=>$lelong_id,'cawid'=>$caw['id_cawangan']]) }} " target="blank" style="color:#3490dc">{{ $caw['cawangan'] }}</a></td>
|
||||
<td><a href=" {{ route('lelong.senaraimarhundone',['lelongid'=>$lelong_id,'cawid'=>$caw['id_cawangan']]) }} " target="blank" style="color:#3490dc">{{ $caw['cawangan'] }}</a></td>
|
||||
<td>{{ $caw['bil_marhun'] }}</td>
|
||||
<td>{{ number_format($caw['berat'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['n_marhun'], 2, '.', ',') }}</td>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
@csrf
|
||||
|
||||
<div style="text-align: center;">Scan Barcode Marhun Yang Dibawa Keluar Dari Peti Besi</div>
|
||||
<input type="text" style="text-align: center;" class="form-control" name="norujukan_barcode" autocomplete="off" id="norujukan_barcode" placeholder="SILA SCAN BARCODE PADA SAG" />
|
||||
<input type="text" style="text-align: center;" class="form-control" name="norujukan_barcode" autofocus autocomplete="off" id="norujukan_barcode" placeholder="SILA SCAN BARCODE PADA SAG" />
|
||||
<input type="hidden" name="lelong_id" value="{{$lelong_id}}">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<form action="{{ route('marhun.scanmasukmarhun') }}" method="POST">
|
||||
@csrf
|
||||
<label>Scan Barcode Marhun Yang Dimasukkan Ke Peti Besi</label>
|
||||
<input type="text" style="text-align: center;" class="form-control" name="norujukan_barcode" autocomplete="off" id="norujukan_barcode" placeholder="SILA SCAN BARCODE PADA SAG" />
|
||||
<input type="text" style="text-align: center;" class="form-control" name="norujukan_barcode" autofocus autocomplete="off" id="norujukan_barcode" placeholder="SILA SCAN BARCODE PADA SAG" />
|
||||
<input type="hidden" name="lelong_id" value="{{$lelong_id}}">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="7">No Data</td>
|
||||
<td colspan="12">No Data</td>
|
||||
</tr>
|
||||
|
||||
@endforelse
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<td>{{ $laporan['brg']['fasa']}}</td>
|
||||
<td align="left">
|
||||
@foreach($laporan['detailsbrg'] as $details)
|
||||
<a class="btn m-1 btn-primary" href=" {{ route('report.lapubahmarhunlelongindex', ['lelong_id'=>$laporan['brg']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Muat Turun"><i class="far fa-edit"></i></a>
|
||||
<a class="btn m-1 btn-danger" href=" {{ route('report.lapubahmarhunlelongindex', ['lelong_id'=>$laporan['brg']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Muat Turun"><i class="far fa-edit"></i></a>
|
||||
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{ $details['caw_name']}}</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
<style>
|
||||
#customers {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:13px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#customers td, #customers th {
|
||||
border: 1px solid black;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
|
||||
#customers th {
|
||||
/* text-align: left; */
|
||||
table-layout:auto
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
#customers1 {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:13px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#customers1 td, #customers1 th {
|
||||
border: 0px solid black;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#customers1 th {
|
||||
text-align: left;
|
||||
table-layout:auto
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<table width="100%" border="0" id="customers1">
|
||||
<tr>
|
||||
<td width="50%" style="font-size:14px"><u>HARGA PASARAN EMAS LELONGAN</u></td>
|
||||
<td width="50%" align="right"><span style="font-size:14px">PERMODALAN KELANTAN BERHAD</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tarikh : @php
|
||||
$today = date('d/m/Y');
|
||||
@endphp
|
||||
{{$today}}</td>
|
||||
<td align="right">Bahagian Operasi</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table cellspacing="0" cellpadding="5" style="float:right;" width="100%" height="80" id="customers">
|
||||
<thead>
|
||||
<tr >
|
||||
<th>Karat</th>
|
||||
<th>Keterangan</th>
|
||||
<th>Harga/gm(RM)</th>
|
||||
{{-- <th>Harga</th> --}}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($lelkarat as $index=>$karat)
|
||||
<tr>
|
||||
<td align="center">{{$karat->karat}}</td>
|
||||
<td align="center">{{$karat->keterangan}}</td>
|
||||
<td class="input" align="center">{{$karat->harga2}}</td>
|
||||
{{-- <td class="input">{{$karat->harga}}</td> --}}
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<div style="font:Trebuchet MS, Arial, Helvetica, sans-serif; font-size:14px">*Dikeluarkan Oleh Bahagian Operasi</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
@@ -128,47 +128,22 @@ tr:nth-child(even) {
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{{-- <table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id ="sim2">
|
||||
<thead>
|
||||
<br>
|
||||
<tr>
|
||||
@foreach ($arrayinfo as $laporan)
|
||||
<td>Batch Lelong : {{$laporan['laporan']['lelong_id']}}</td>
|
||||
<td>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<td>Fasa : {{$laporan['laporan']['fasa']}}</td>
|
||||
|
||||
@foreach ($laporan['details'] as $details)
|
||||
<td>Cawangan : {{$details['caw_name']}}
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
</table> --}}
|
||||
|
||||
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim2">
|
||||
<thead>
|
||||
<br>
|
||||
<tr>
|
||||
@foreach ($arrayinfo as $laporan)
|
||||
<td>Batch Lelong: {{$laporan['laporan']['lelong_id']}}</td>
|
||||
@foreach ($laporan['details'] as $details)
|
||||
<td>Cawangan : {{$details['caw_name']}}
|
||||
@endforeach
|
||||
<td>Batch Lelong: {{$laporan['laporan']['lelong_id']}}</td>
|
||||
@foreach ($laporan['details'] as $details)
|
||||
<td>Cawangan : {{$details['caw_name']}}
|
||||
@endforeach
|
||||
<tr>
|
||||
<td>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<tr>
|
||||
{{-- <td>Fasa: {{$info['fasa']}} --}}
|
||||
{{-- <td>Nama Cawangan : {{$info['caw_name']}} --}}
|
||||
@endforeach
|
||||
</tr>
|
||||
@endphp</td>
|
||||
@endforeach
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
@@ -221,12 +196,12 @@ tr:nth-child(even) {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
{{-- <td colspan="4" align="left"></td>
|
||||
<td align="right">{{ number_format($marhun['berat'], 2, '.', ',') }}</td>
|
||||
<td colspan="4" align="left"></td>
|
||||
<td align="right"><b>{{ number_format($marhun['berat'], 2, '.', ',') }}</b></td>
|
||||
<td></td>
|
||||
<td align="right"><b>{{ number_format($marhun['nilaimarhun'], 2, '.', ',') }}</b></td>
|
||||
<td align="right"><b>{{ number_format($marhun['hargaasas'], 2, '.', ',') }}</b></td>
|
||||
<td></td>
|
||||
<td align="right">{{ number_format($marhun['nilaimarhun'], 2, '.', ',') }}</td>
|
||||
<td align="right">{{ number_format($marhun['hargaasas'], 2, '.', ',') }}</td>
|
||||
<td></td> --}}
|
||||
</tr>
|
||||
@endforeach
|
||||
@foreach ($arraycaw as $index=>$caw)
|
||||
@@ -234,7 +209,8 @@ tr:nth-child(even) {
|
||||
<tr>
|
||||
<td colspan="4" align="left"><strong>Jumlah Keseluruhan</strong></td>
|
||||
<td align="right"><strong>{{ number_format($total_berat, 2, '.', ',') }}</strong></td>
|
||||
<td align="right"><strong>{{ number_format($total_harga, 2, '.', ',') }}</strong></td>
|
||||
<td></td>
|
||||
{{-- <td align="right"><strong>{{ number_format($total_harga, 2, '.', ',') }}</strong></td> --}}
|
||||
<td align="right"><strong>{{ number_format($total_nmarhun, 2, '.', ',') }}</strong></td>
|
||||
<td align="right"><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
|
||||
<td></td>
|
||||
|
||||
@@ -158,17 +158,17 @@ tr:nth-child(even) {
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>No</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Nilai Marhun Asal(RM)</th>
|
||||
<th>Pembiayaan(RM)</th>
|
||||
<th>Margin(%)</th>
|
||||
<th>Keuntungan(RM)</th>
|
||||
<th>Caj Lelong(RM)</th>
|
||||
<th>Harga Lelong(RM)</th>
|
||||
<th>Baki Lelong(RM)</th>
|
||||
{{-- <th>Rugi</th> --}}
|
||||
<th>Harga Asas(RM)</th>
|
||||
<th>Nama Pembeli</th> >
|
||||
<th>Nama Pembeli</th> >
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -179,6 +179,7 @@ tr:nth-child(even) {
|
||||
<td>{{ $laporan['norujukan'] }}</td>
|
||||
<td align="right">{{ number_format($laporan['nilaimarhun'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['margin'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['upahsimpan'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['cajlelong'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['hargabida'], 2, '.', ',')}}</td>
|
||||
@@ -211,6 +212,7 @@ tr:nth-child(even) {
|
||||
<td colspan="2" align="left"><strong>Jumlah Keseluruhan</strong></td>
|
||||
<td align="right"><strong>{{ number_format($total_nmarhun, 2, '.', ',') }}</strong></td>
|
||||
<td align = 'right'><strong>{{ number_format($total_pembiayaan, 2, '.', ',') }}</strong></td>
|
||||
<td></td>
|
||||
<td align = 'right'><strong>{{ number_format($total_upahsimpan, 2, '.', ',') }}</strong></td>
|
||||
<td align = 'right'><strong>{{ number_format($total_cajlelong, 2, '.', ',') }}</strong></td>
|
||||
<td align = 'right'><strong>{{ number_format($total_hargalelong, 2,'.',',') }}</strong></td>
|
||||
|
||||
@@ -20,7 +20,9 @@
|
||||
/* border-bottom: 1px solid #ddd; */
|
||||
}
|
||||
|
||||
#sim tr:hover {}
|
||||
#sim tr {
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
#sim th {
|
||||
/* text-align: left; */
|
||||
|
||||
@@ -105,12 +105,15 @@
|
||||
<td>Caj Lelong Keseluruhan: RM{{ number_format($total_cazlelong, 2, '.', ',') }}</td>
|
||||
<td>Baki Lelong Keseluruhan: RM{{ number_format($total_bakilelong, 2, '.', ',') }}</td>
|
||||
<td>Rugi Lelong Keseluruhan: RM{{ number_format($total_rugilelong, 2, '.', ',') }}</td> --}}
|
||||
<div>Batch Lelong : {{$lelong_id}}</div>
|
||||
<div>Tarikh Lelong :@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $data['tarikh_lelong'] );
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
@endphp
|
||||
</div>
|
||||
@endphp</div>
|
||||
</tr>
|
||||
<tr>
|
||||
<div>Harga Emas Lelong 916: RM {{ $data['harga_emas_asas']}}</div>
|
||||
<div>Tempoh: {{ $data['jbg']}}</div>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -1,141 +1,142 @@
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<style>
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim2 {
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 40%;
|
||||
border: 0px solid #ddd;
|
||||
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
text-align: center;
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-right:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: right;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
/* text-align: left; */
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
/* text-align: left; */
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-left:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: right;
|
||||
padding: 16px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
}
|
||||
|
||||
</style>
|
||||
.column {
|
||||
/* float: left; */
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 0px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
th{
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
/* background-color:gainsboro; */
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
/* background-color: #f2f2f2; */
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
{{-- <h6>PERMODALAN KELANTAN BERHAD</h6> --}}
|
||||
<u><b><h5>LAPORAN BARANG LELONG</h5></b></u>
|
||||
|
||||
<table width="100%" border="0" id="sim">
|
||||
<tr>
|
||||
<td width="50%"><h3>PERMODALAN KELANTAN BERHAD</h3></td>
|
||||
</tr>
|
||||
|
||||
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim2">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="2"><u><b>SENARAI BARANG LELONG</b></u></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim">
|
||||
<thead>
|
||||
<br>
|
||||
<tr>
|
||||
<td>Batch Lelong: {{$test['id']}}</td>
|
||||
<td>Cawangan : {{$cawangan[0]['caw_name']}}
|
||||
<tr>
|
||||
<div>Fasa : {{$test['fasa']}}</div>
|
||||
<div>Batch Lelong : {{$test['id']}}</div>
|
||||
<div>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $test['tarikh_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</div>
|
||||
|
||||
|
||||
<div>Cawangan : {{$cawangan[0]['caw_name']}}</div>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<td>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $test['tarikh_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<tr>
|
||||
{{-- <td>Fasa: {{$info['fasa']}} --}}
|
||||
{{-- <td>Nama Cawangan : {{$info['caw_name']}} --}}
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%" align="left">No</th>
|
||||
<th width="25%" align="left">No Rujukan</th>
|
||||
<th width="25%" align="left">Marhun</th>
|
||||
<th width="25%" align="left">Berat (gm)</th>
|
||||
<th width="25%" align="left">Harga Asas</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="5%" align="left">No</th>
|
||||
<th width="25%" align="center">No Rujukan</th>
|
||||
<th width="25%" align="left">Marhun</th>
|
||||
<th width="25%" align="right">Berat (gm)</th>
|
||||
<th width="25%" align="right">Harga Asas</th>
|
||||
<th width="25%" align="center">Harga Tawaran</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@foreach ($lelong_bid as $index=> $details)
|
||||
<tr>
|
||||
|
||||
|
||||
<td width="5%" align="center">{{ $loop->iteration }} </td>
|
||||
<td width="14%" align="center">{{ $details['norujukan']}}</td>
|
||||
<td width="14%" align="center">{{ $details['marhun']}}</td>
|
||||
<td width="17%" align="center">{{ number_format($details['berat'], 2, '.', ',') }}</td>
|
||||
<td width="17%" align="center">{{ number_format($details['hargaasas'], 2, '.', ',') }}</td>
|
||||
|
||||
</tr>
|
||||
<td width="17%" align="left">{{ $details['marhun']}}</td>
|
||||
<td width="17%" align="right">{{ number_format($details['berat'], 2, '.', ',') }}</td>
|
||||
<td width="12%" align = 'right'>{{ number_format($details['hargaasas'], 2, '.', ',') }}</td>
|
||||
<td width="12%" align = 'center'>________________</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td colspan="3"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($total_berat, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($total_hargaasas, 2, '.', ',') }}</td>
|
||||
<td align = 'right'><b>{{ number_format($total_berat, 2, '.', ',') }}</b></td>
|
||||
<td align = 'right'><b>{{ number_format($total_hargaasas, 2, '.', ',') }}</b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
@@ -1,109 +1,147 @@
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<style>
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim2 {
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 40%;
|
||||
border: 0px solid #ddd;
|
||||
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
text-align: center;
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-right:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: right;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
|
||||
/* text-align: left; */
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
/* text-align: left; */
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
#sim2 {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim2 td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
|
||||
/* text-align: left; */
|
||||
|
||||
}
|
||||
|
||||
#sim2 tr:nth-child(even){
|
||||
/* border-bottom: 1px solid #ddd; */
|
||||
}
|
||||
|
||||
#sim2 tr:hover {}
|
||||
|
||||
#sim2 th {
|
||||
/* text-align: left; */
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-left:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: right;
|
||||
padding: 16px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
}
|
||||
|
||||
</style>
|
||||
.column {
|
||||
/* float: left; */
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 0px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
th{
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
/* text-align: left; */
|
||||
table-layout:auto
|
||||
color: black;
|
||||
border-bottom: 1px solid #ddd;
|
||||
/* background-color:gainsboro; */
|
||||
}
|
||||
|
||||
|
||||
tr:nth-child(even) {
|
||||
/* background-color: #f2f2f2; */
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
{{-- <h6>PERMODALAN KELANTAN BERHAD</h6> --}}
|
||||
<u><b><h5>LAPORAN BARANG LELONG DETAILS</h5></b></u>
|
||||
<table width="100%" border="0" id ="sim2">
|
||||
<tr>
|
||||
<td width="50%"><h3>PERMODALAN KELANTAN BERHAD</h3></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><u><b>BUTIRAN SENARAI BARANG LELONG </b></u></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim2">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($arrayinfo as $laporan)
|
||||
<div>Fasa : {{$laporan['laporan']['fasa']}}</div>
|
||||
<div>Batch Lelong : {{$laporan['laporan']['lelong_id']}}</div>
|
||||
<div>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</div>
|
||||
|
||||
<td>Batch Lelong: {{$laporan['laporan']['lelong_id']}}</td>
|
||||
@foreach ($laporan['details'] as $details)
|
||||
<div>Cawangan : {{$details['caw_name']}}</div>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
@@ -129,39 +167,39 @@
|
||||
|
||||
@foreach ($lelongs as $marhun)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }} </td>
|
||||
<td>{{ $marhun['norujukan'] }}</td>
|
||||
<td>@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['marhun'] }}<br>
|
||||
@endforeach</td>
|
||||
<td>@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['karat'] }}<br>
|
||||
@endforeach</td>
|
||||
<td>@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['berat'] }}<br>
|
||||
@endforeach</td>
|
||||
<td>@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['harga'] }}<br>
|
||||
@endforeach</td>
|
||||
<td>@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['n_marhun'] }}<br>
|
||||
@endforeach</td>
|
||||
<td>@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['hargaasas'] }}<br>
|
||||
@endforeach</td>
|
||||
<td>@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['nota'] }}<br>
|
||||
@endforeach</td>
|
||||
<td>{{ $loop->iteration }} </td>
|
||||
<td>{{ $marhun['norujukan'] }}</td>
|
||||
<td>@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['marhun'] }}<br>
|
||||
@endforeach</td>
|
||||
<td align="center">@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['karat'] }}<br>
|
||||
@endforeach</td>
|
||||
<td align="right">@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['berat'] }}<br>
|
||||
@endforeach</td>
|
||||
<td align="right">@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['harga'] }}<br>
|
||||
@endforeach</td>
|
||||
<td align="right">@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ number_format($item['n_marhun'], 2, '.', ',') }}<br>
|
||||
@endforeach</td>
|
||||
<td align="right">@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ number_format($item['hargaasas'], 2, '.', ',') }}<br>
|
||||
@endforeach</td>
|
||||
<td>@foreach ($marhun['detailmarhun'] as $item)
|
||||
{{ $item['nota'] }}<br>
|
||||
@endforeach</td>
|
||||
|
||||
|
||||
</tr>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="4" align="left"></td>
|
||||
<td><b>{{ number_format($marhun['berat'], 2, '.', ',') }}</td>
|
||||
<td align="right"><b>{{ number_format($marhun['berat'], 2, '.', ',') }}</td>
|
||||
<td></td>
|
||||
<td><b>{{ number_format($marhun['nmarhuns'], 2, '.', ',') }}</td>
|
||||
<td><b>{{ number_format($marhun['hargaasas'], 2, '.', ',') }}</td>
|
||||
<td align="right"><b>{{ number_format($marhun['nmarhuns'], 2, '.', ',') }}</td>
|
||||
<td align="right"><b>{{ number_format($marhun['hargaasas'], 2, '.', ',') }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@@ -169,10 +207,11 @@
|
||||
|
||||
<tr>
|
||||
<td colspan="4" align="left"><strong>Jumlah Keseluruhan</strong></td>
|
||||
<td><strong>{{ number_format($total_berat, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_harga, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_nmarhun, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
|
||||
<td align="right"><strong>{{ number_format($total_berat, 2, '.', ',') }}</strong></td>
|
||||
<td></td>
|
||||
{{-- <td align="right"><strong>{{ number_format($total_harga, 2, '.', ',') }}</strong></td> --}}
|
||||
<td align="right"><strong>{{ number_format($total_nmarhun, 2, '.', ',') }}</strong></td>
|
||||
<td align="right"><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@@ -1,81 +1,138 @@
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<style>
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
text-align: left;
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-left:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: left;
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
|
||||
#sim tr {
|
||||
border-bottom: 1px black;
|
||||
}
|
||||
#sim th {
|
||||
border: 1px black;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sim2 th {
|
||||
text-align: center;
|
||||
border: 0px solid ;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-right:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: right;
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 0px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: right;
|
||||
padding: 16px;
|
||||
border: 1px solid;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 0px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: left;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: left;
|
||||
padding: 16px;
|
||||
background-color:gainsboro;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
.font{
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<style>
|
||||
/** Define now the real margins of every page in the PDF **/
|
||||
body {
|
||||
margin-top: 1cm;
|
||||
/* margin-left: 2cm; */
|
||||
/* margin-right: 2cm; */
|
||||
margin-bottom: 2cm;
|
||||
}
|
||||
|
||||
/** Define the header rules **/
|
||||
header {
|
||||
position: fixed;
|
||||
top: -1cm;
|
||||
left: 0cm;
|
||||
right: 0cm;
|
||||
height: 0cm;
|
||||
/** Extra personal styles **/
|
||||
/* background-color: #eaeaea; */
|
||||
color: black;
|
||||
text-align: center;
|
||||
line-height: 1.5cm;
|
||||
}
|
||||
|
||||
<div class="row">
|
||||
{{-- <div class="first-prgph"><img src="http://lelong.test/img/icon_pkb.png" alt="PKB LOGO" width="100" height="100"><br></div> --}}
|
||||
/** Define the footer rules **/
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 0cm;
|
||||
left: 0cm;
|
||||
right: 0cm;
|
||||
height: 2cm;
|
||||
|
||||
/** Extra personal styles **/
|
||||
/* background-color: #eaeaea; */
|
||||
color: black;
|
||||
text-align: center;
|
||||
line-height: 1.5cm;
|
||||
}
|
||||
footer .pagenum:before {
|
||||
content: counter(page);
|
||||
}
|
||||
|
||||
.font{
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
{{--
|
||||
<div>
|
||||
|
||||
<div class="first-prgph1">
|
||||
<h5> {{$caw['caw_name']}}<br>
|
||||
@@ -84,8 +141,16 @@ tr:nth-child(even) {
|
||||
No Tel: {{$caw['notel']}}<br>
|
||||
No Faks: {{$caw['nofaks']}}
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>--}}
|
||||
<body>
|
||||
<header>
|
||||
<div class="font"><u><b><h5>SENARAI LELONGAN MENGIKUT PELANGGAN</h5></b></u></div>
|
||||
</header>
|
||||
|
||||
<div class="font">Batch Lelong: {{ $lelong_id }} </div>
|
||||
|
||||
|
||||
|
||||
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
||||
<thead>
|
||||
@@ -106,7 +171,7 @@ tr:nth-child(even) {
|
||||
<td>{{ $notis['nokp']}}</td>
|
||||
{{-- <td style='word-wrap'>{{ $notis['nama']['nama']}}</td> --}}
|
||||
|
||||
<td>@foreach($notis['listsag'] as $item){{ $item['norujukan']}}<br>@endforeach</td>
|
||||
<td align="center">@foreach($notis['listsag'] as $item){{ $item['norujukan']}}<br>@endforeach</td>
|
||||
<td>@foreach($notis['listsag'] as $item){{ $item['tempoh']}}<br>@endforeach</td>
|
||||
<td>@foreach($notis['listsag'] as $item){{ number_format($item['pinjaman'], 2, '.', ',')}}<br>@endforeach</td>
|
||||
<td>@foreach($notis['listsag'] as $item){{ number_format($item['bakiupah'], 2, '.', ',')}}<br>@endforeach</td>
|
||||
@@ -123,6 +188,7 @@ tr:nth-child(even) {
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,86 +1,120 @@
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<style>
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim2 {
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 40%;
|
||||
border: 0px solid #ddd;
|
||||
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
text-align: center;
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-right:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: right;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
|
||||
/* text-align: left; */
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){
|
||||
/* border-bottom: 1px solid #ddd; */
|
||||
}
|
||||
|
||||
#sim tr {
|
||||
/* border-bottom: 1px solid #ddd; */
|
||||
}
|
||||
|
||||
#sim th {
|
||||
/* text-align: left; */
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
#sim2 {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim2 td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
|
||||
/* text-align: left; */
|
||||
|
||||
}
|
||||
|
||||
#sim2 tr:nth-child(even){
|
||||
/* border-bottom: 1px solid #ddd; */
|
||||
}
|
||||
|
||||
#sim2 tr:hover {}
|
||||
|
||||
#sim2 th {
|
||||
/* text-align: left; */
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-left:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: right;
|
||||
padding: 16px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
}
|
||||
|
||||
</style>
|
||||
.column {
|
||||
/* float: left; */
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 0px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
th{
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
/* text-align: left; */
|
||||
table-layout:auto
|
||||
color: black;
|
||||
border-bottom: 1px solid #ddd;
|
||||
/* background-color:gainsboro; */
|
||||
}
|
||||
|
||||
|
||||
tr:nth-child(even) {
|
||||
/* background-color: #f2f2f2; */
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -130,12 +164,12 @@
|
||||
@foreach ($brglelpembida as $laporan)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $laporan['norujukan'] }}</td>
|
||||
<td style='white-space:nowrap;'>{{ $laporan['norujukan'] }}</td>
|
||||
<td>{{ $laporan['marhun']}}</td>
|
||||
<td>{{ number_format($laporan['berat'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['hargaasas'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['hargabida'], 2, '.', ',')}}</td>
|
||||
<td>{{$laporan['nama_bidder']}}</td>
|
||||
<td align = 'right'>{{ number_format($laporan['hargaasas'], 2, '.', ',')}}</td>
|
||||
<td align = 'right'>{{ number_format($laporan['hargabida'], 2, '.', ',')}}</td>
|
||||
<td style='white-space:nowrap;'>{{$laporan['nama_bidder']}}</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
@@ -145,8 +179,8 @@
|
||||
<tr>
|
||||
<td colspan="3" align="left"><strong>Jumlah Keseluruhan</strong></td>
|
||||
<td><strong>{{ number_format($total_berat, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_hargalelong, 2, '.', ',') }}</strong></td>
|
||||
<td align = 'right'><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
|
||||
<td align = 'right'><strong>{{ number_format($total_hargalelong, 2, '.', ',') }}</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -1,114 +1,156 @@
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<style>
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim2 {
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 40%;
|
||||
border: 0px solid #ddd;
|
||||
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
text-align: center;
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-right:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: right;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
|
||||
/* text-align: left; */
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){
|
||||
/* border-bottom: 1px solid #ddd; */
|
||||
}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
/* text-align: left; */
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
#sim2 {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim2 td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
|
||||
/* text-align: left; */
|
||||
|
||||
}
|
||||
|
||||
#sim2 tr:nth-child(even){
|
||||
/* border-bottom: 1px solid #ddd; */
|
||||
}
|
||||
|
||||
#sim2 tr:hover {}
|
||||
|
||||
#sim2 th {
|
||||
/* text-align: left; */
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-left:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: right;
|
||||
padding: 16px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
}
|
||||
|
||||
</style>
|
||||
.column {
|
||||
/* float: left; */
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 0px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
th{
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
/* text-align: left; */
|
||||
table-layout:auto
|
||||
color: black;
|
||||
border-bottom: 1px solid #ddd;
|
||||
/* background-color:gainsboro; */
|
||||
}
|
||||
|
||||
|
||||
tr:nth-child(even) {
|
||||
/* background-color: #f2f2f2; */
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
{{-- <h6>PERMODALAN KELANTAN BERHAD</h6> --}}
|
||||
<u><b><h5>LAPORAN LELONG KESELURUHAN</h5></b></u>
|
||||
<table width="100%" border="0" id="sim2">
|
||||
<tr>
|
||||
<td width="50%"><h3>PERMODALAN KELANTAN BERHAD</h3></td>
|
||||
</tr>
|
||||
|
||||
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim2">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($info as $info)
|
||||
<div>Fasa: {{$info->fasa}}</div>
|
||||
<div>Batch Lelong: {{$lelong_id}}</div>
|
||||
|
||||
<div>Tarikh Lelong:@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $info->tarikh_lelong );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</div>
|
||||
<tr>
|
||||
<td colspan="2"><u><b>LAPORAN LELONG KESELURUHAN</b></u></td>
|
||||
|
||||
@endforeach
|
||||
@foreach ($arrayinfocaw as $laporancaw)
|
||||
@foreach ($laporancaw['cawangan'] as $details)
|
||||
<div>Cawangan : {{$details['caw_name']}}</div>
|
||||
@endforeach
|
||||
@endforeach
|
||||
|
||||
</thead>
|
||||
</table>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim2">
|
||||
<thead>
|
||||
<br>
|
||||
<tr>
|
||||
<td>Batch Lelong: {{$lelong_id}}</td>
|
||||
@foreach ($arrayinfocaw as $laporancaw)
|
||||
@foreach ($laporancaw['cawangan'] as $details)
|
||||
<td>Cawangan : {{$details['caw_name']}}
|
||||
@endforeach
|
||||
@endforeach
|
||||
@foreach ($info as $info)
|
||||
<tr>
|
||||
<td>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $info['tarikh_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
</tr>
|
||||
{{-- <td>Fasa: {{$info['fasa']}} --}}
|
||||
@endforeach
|
||||
|
||||
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
@@ -116,45 +158,48 @@
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
( <th>No</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Nilai Marhun</th>
|
||||
<th>Pembiayaan</th>
|
||||
<th>Margin%</th>
|
||||
<th>Upah Simpan</th>
|
||||
<th>Caj Lelong</th>
|
||||
<th>Harga Lelong</th>
|
||||
<th>Baki</th>
|
||||
<th>Harga Asas</th>
|
||||
<th>Nama Pembeli</th>
|
||||
<th>Nilai Marhun Asal(RM)</th>
|
||||
<th>Pembiayaan(RM)</th>
|
||||
<th>Margin(%)</th>
|
||||
<th>Keuntungan(RM)</th>
|
||||
<th>Caj Lelong(RM)</th>
|
||||
<th>Harga Lelong(RM)</th>
|
||||
<th>Baki Lelong(RM)</th>
|
||||
<th>Harga Asas(RM)</th>
|
||||
<th>Nama Pembeli</th> )
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@php $total_baki = 0; @endphp
|
||||
@foreach ($arraydetails as $laporan)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $laporan['laplelong']['norujukan'] }}</td>
|
||||
<td>{{ number_format($laporan['laplelong']['nilaimarhun'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['laplelong']['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['margin'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['laplelong']['upahsimpan'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['laplelong']['cajlelong'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['laplelong']['hargabida'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['laplelong']['baki'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['laplelong']['nilaimarhun'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['laplelong']['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['margin'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['laplelong']['upahsimpan'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['laplelong']['cajlelong'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['laplelong']['hargabida'], 2, '.', ',')}}</td>
|
||||
|
||||
|
||||
<?php
|
||||
$rugi = 0;
|
||||
$baki = 0;
|
||||
if(strpos($laporan['laplelong']['baki'], '-') !== false)
|
||||
{
|
||||
$rugi = $laporan['laplelong']['baki'];
|
||||
$total_baki += $laporan['laplelong']['baki'];
|
||||
}
|
||||
else {
|
||||
$baki = $laporan['laplelong']['baki'];
|
||||
$total_baki += $laporan['laplelong']['baki'];
|
||||
}
|
||||
?>
|
||||
<td>{{ number_format($laporan['laplelong']['hargaasas'], 2, '.', ',')}}</td>
|
||||
<td align="right">@if($laporan['laplelong']['baki'] > 0)
|
||||
{{number_format($laporan['laplelong']['baki'], 2, '.', ',')}}
|
||||
@elseif($laporan['laplelong']['baki'] < 0 ) ({{number_format(-($laporan['laplelong']['baki']), 2, '.', ',')}}) @endif </td>
|
||||
<td align="right">{{ number_format($laporan['laplelong']['hargaasas'], 2, '.', ',')}}</td>
|
||||
<td>{{$laporan['laplelong']['nama_bidder']}}</td>
|
||||
|
||||
</tr>
|
||||
@@ -164,29 +209,18 @@
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align="left"><strong>Jumlah Keseluruhan</strong></td>
|
||||
<td><strong>{{ number_format($total_nmarhun, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_pembiayaan, 2, '.', ',') }}</strong></td>
|
||||
<td align="right"><strong>{{ number_format($total_nmarhun, 2, '.', ',') }}</strong></td>
|
||||
<td align = 'right'><strong>{{ number_format($total_pembiayaan, 2, '.', ',') }}</strong></td>
|
||||
<td></td>
|
||||
<td><strong>{{ number_format($total_upahsimpan, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_cajlelong, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_hargalelong, 2,'.',',') }}</strong></td>
|
||||
|
||||
|
||||
<?php
|
||||
$total_rugi = 0;
|
||||
$total_baki = 0;
|
||||
if(strpos($total_bakirugi, '-') !== false)
|
||||
{
|
||||
$total_rugi = $total_bakirugi;
|
||||
}
|
||||
else {
|
||||
$total_baki = $total_bakirugi;
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
<td><strong>{{number_format($total_baki, 2, '.', ',')}}</strong></td>
|
||||
<td><strong>{{number_format($total_hargaasas, 2, '.', ',')}}</strong></td>
|
||||
<td align = 'right'><strong>{{ number_format($total_upahsimpan, 2, '.', ',') }}</strong></td>
|
||||
<td align = 'right'><strong>{{ number_format($total_cajlelong, 2, '.', ',') }}</strong></td>
|
||||
<td align = 'right'><strong>{{ number_format($total_hargalelong, 2,'.',',') }}</strong></td>
|
||||
<td align="right"><b>@if($total_baki > 0)
|
||||
{{ number_format($total_baki, 2, '.', ',') }}
|
||||
@else
|
||||
({{number_format(-($total_baki), 2, '.', ',')}})
|
||||
@endif</b></td>
|
||||
<td align="right"><strong>{{number_format($total_hargaasas, 2, '.', ',')}}</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
@@ -194,7 +228,7 @@
|
||||
|
||||
</table>
|
||||
|
||||
<table cellspacing="0" cellpadding="1" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
||||
{{-- <table cellspacing="0" cellpadding="1" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
||||
<br><br><br><br><br><br><br><br><br><br>
|
||||
|
||||
|
||||
@@ -205,7 +239,7 @@
|
||||
<td><b>Baki A - Baki B: RM{{number_format($total_baki, 2, '.', ',')}}<b></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</table> --}}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
#sim2 th {
|
||||
text-align: center;
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
@@ -68,6 +68,13 @@
|
||||
|
||||
tr:nth-child(even) {
|
||||
}
|
||||
|
||||
.font{
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
@@ -92,6 +99,8 @@
|
||||
color: black;
|
||||
text-align: center;
|
||||
line-height: 1.5cm;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:15px;
|
||||
}
|
||||
|
||||
/** Define the footer rules **/
|
||||
@@ -117,30 +126,23 @@
|
||||
|
||||
<header>
|
||||
@foreach($datacaw as $data)
|
||||
<u><b><h5>LAPORAN SIMULASI CAWANGAN: {{$data['caw_name']}}</h5></b></u>
|
||||
<div class="class="font><u><b><h5>LAPORAN SIMULASI CAWANGAN: {{$data['caw_name']}}</h5></b></u></div>
|
||||
@endforeach
|
||||
</header>
|
||||
|
||||
<footer>
|
||||
<div class="pagenum-container"><span class="pagenum"></span></div>
|
||||
</footer>
|
||||
{{-- <table cellspacing="" cellpadding="4" text-align="left" border="0" height="25" align="left" id="sim" class="table table-striped table-xl">
|
||||
<thead class="bg-light ">
|
||||
@foreach ($arrayinfo as $laporan)
|
||||
<tr>
|
||||
<td><b>Batch Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
|
||||
<td><b>Fasa Lelong: {{ $laporan['laporan']['fasa']}} <b></td>
|
||||
<td><b>Tarikh Lelong : @php
|
||||
<div class="font">Batch Lelong: {{ $laporan['laporan']['lelong_id']}} </div>
|
||||
{{-- <td><b>Fasa Lelong: {{ $laporan['laporan']['fasa']}} <b></td> --}}
|
||||
<div class="font">Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
@endphp</b></td>
|
||||
@endphp</div>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</thead>
|
||||
</table> --}}
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
@@ -11,19 +11,54 @@
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
/* text-align: left; */
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
#sim tr:nth-child(even){
|
||||
/* border-bottom: 1px solid #ddd; */
|
||||
}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
text-align: left;
|
||||
/* text-align: left; */
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
#sim2 {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim2 td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
|
||||
/* text-align: left; */
|
||||
|
||||
}
|
||||
|
||||
#sim2 tr:nth-child(even){
|
||||
/* border-bottom: 1px solid #ddd; */
|
||||
}
|
||||
|
||||
#sim2 tr:hover {}
|
||||
|
||||
#sim2 th {
|
||||
/* text-align: left; */
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
@@ -37,7 +72,7 @@
|
||||
}
|
||||
|
||||
.column {
|
||||
float: left;
|
||||
/* float: left; */
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
@@ -57,18 +92,24 @@ table {
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: left;
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: left;
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
background-color:gainsboro;
|
||||
/* text-align: left; */
|
||||
table-layout:auto
|
||||
color: black;
|
||||
border-bottom: 1px solid #ddd;
|
||||
/* background-color:gainsboro; */
|
||||
}
|
||||
|
||||
|
||||
tr:nth-child(even) {
|
||||
background-color: #f2f2f2;
|
||||
/* background-color: #f2f2f2; */
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -117,8 +158,8 @@ tr:nth-child(even) {
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tarikh</th>
|
||||
<th>No Rujukan</th>
|
||||
<th align="center">Tarikh</th>
|
||||
<th align="center">No Rujukan</th>
|
||||
<th>Nilai Marhun(RM)</th>
|
||||
<th>Pinjaman(RM)</th>
|
||||
<th>Keuntungan (RM)</th>
|
||||
@@ -130,11 +171,11 @@ tr:nth-child(even) {
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $laporan['tarikh']}}</td>
|
||||
<td>{{ $laporan['norujukan'] }}</td>
|
||||
<td>{{ number_format($laporan['nilaimarhun'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($laporan['upah'], 2, '.', ',')}}</td>
|
||||
<td>{{$laporan['jbg']}}</td>
|
||||
<td align="center">{{ $laporan['norujukan'] }}</td>
|
||||
<td align="right">{{ number_format($laporan['nilaimarhun'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td align="right">{{ number_format($laporan['upah'], 2, '.', ',')}}</td>
|
||||
<td align="center">{{$laporan['jbg']}}</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
@@ -143,9 +184,9 @@ tr:nth-child(even) {
|
||||
|
||||
<tr>
|
||||
<td colspan="3" align="left"><strong>Jumlah Keseluruhan</strong></td>
|
||||
<td><strong>{{ number_format($total_berat, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
|
||||
<td><strong>{{ number_format($total_hargalelong, 2, '.', ',') }}</strong></td>
|
||||
<td align="right"><strong>{{ number_format($total_nmarhun, 2, '.', ',') }}</strong></td>
|
||||
<td align="right"><strong>{{ number_format($total_pinjaman, 2, '.', ',') }}</strong></td>
|
||||
<td align="right"><strong>{{ number_format($total_upah, 2, '.', ',') }}</strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -1,126 +1,171 @@
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<style>
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim2 {
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 40%;
|
||||
border: 0px solid #ddd;
|
||||
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim th {
|
||||
text-align: center;
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-right:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: right;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
|
||||
/* text-align: left; */
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){
|
||||
/* border-bottom: 1px solid #ddd; */
|
||||
}
|
||||
|
||||
#sim tr {
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
#sim th {
|
||||
/* text-align: left; */
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
#sim2 {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim2 td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
border: 0px solid;
|
||||
padding: 1px;
|
||||
|
||||
/* text-align: left; */
|
||||
|
||||
}
|
||||
|
||||
#sim2 tr:nth-child(even){
|
||||
/* border-bottom: 1px solid #ddd; */
|
||||
}
|
||||
|
||||
#sim2 tr:hover {}
|
||||
|
||||
#sim2 th {
|
||||
/* text-align: left; */
|
||||
border: 0px solid;
|
||||
table-layout:auto;
|
||||
color: black;
|
||||
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-left:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: right;
|
||||
padding: 16px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
}
|
||||
.column {
|
||||
/* float: left; */
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 0px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
th{
|
||||
/* text-align: left; */
|
||||
padding: 16px;
|
||||
/* text-align: left; */
|
||||
table-layout:auto
|
||||
color: black;
|
||||
border-bottom: 1px solid #ddd;
|
||||
/* background-color:gainsboro; */
|
||||
}
|
||||
|
||||
|
||||
tr:nth-child(even) {
|
||||
/* background-color: #f2f2f2; */
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body>
|
||||
|
||||
{{-- <h6>PERMODALAN KELANTAN BERHAD</h6> --}}
|
||||
<u><b><h5>LAPORAN SENARAI BIDAAN PEMBIDA</h5></b></u>
|
||||
<table width="100%" border="0" id="sim2">
|
||||
<tr>
|
||||
<td width="50%"><h3>PERMODALAN KELANTAN BERHAD</h3></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><u><b>SENARAI BIDAAN PEMBIDA</b></u></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim2">
|
||||
<thead>
|
||||
<br>
|
||||
<tr>
|
||||
<td>Batch Lelong: {{$lelong_id}}</td>
|
||||
@foreach ($arrayinfocaw as $laporancaw)
|
||||
@foreach ($laporancaw['cawangan'] as $details)
|
||||
<td>Cawangan : {{$details['caw_name']}}
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tr>
|
||||
@foreach ($lelongid as $info)
|
||||
<div>Fasa : {{ $info->fasa}}</div>
|
||||
<div>Batch Lelong: {{$lelong_id}}</div>
|
||||
<div>Tarikh Lelong:@php
|
||||
<td>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $info->tarikh_lelong );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</div>
|
||||
@endforeach
|
||||
@foreach ($arrayinfocaw as $laporancaw)
|
||||
@foreach ($laporancaw['cawangan'] as $details)
|
||||
<div>Cawangan : {{$details['caw_name']}}</div>
|
||||
@endforeach
|
||||
@endphp</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%" align="left">No</th>
|
||||
<th width="12%" align="left">No Rujukan</th>
|
||||
<th width="12%" align="left">Harga Asas(RM)</th>
|
||||
<th width="12%" align="left">Nama Pembida</th>
|
||||
<th width="15%" align="left">Harga Bidaan(RM)</th>
|
||||
<th width="12%" align="left">Masa Bidaan</th>
|
||||
<th width="5%" align="left">No</th>
|
||||
<th width="12%" align="left">No Rujukan</th>
|
||||
<th width="12%" align="right">Harga Asas(RM)</th>
|
||||
<th width="12%" align="left">Nama Pembida</th>
|
||||
<th width="15%" align="right">Harga Bidaan(RM)</th>
|
||||
<th width="12%" align="left">Masa Bidaan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -128,34 +173,38 @@
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $laporan['laporan']['norujukan']}}</td>
|
||||
<td>{{ $laporan['laporan']['hargaasas']}}</td>
|
||||
<td>
|
||||
<td align="right">{{ number_format($laporan['laporan']['hargaasas'], 2, '.', ',')}}</td>
|
||||
<td style="white-space: nowrap;">
|
||||
@foreach($laporan['details'] as $details)
|
||||
<span class="m-2">{{ $details['nama_bidder']}}</span><br>
|
||||
<span class="m-2">{{ $loop->iteration }}.{{ $details['nama_bidder']}}</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<td align="right">
|
||||
@foreach($laporan['details'] as $details)
|
||||
<span class="m-2">{{ $details['hargabida']}}</span><br>
|
||||
<span class="m-2">{{ number_format($details['hargabida'], 2, '.', ',')}}</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
<td>
|
||||
@foreach($laporan['details'] as $details)
|
||||
<span class="m-2">{{ $details['masa_bidaan']}}</span><br>
|
||||
@endforeach
|
||||
@foreach($laporan['details'] as $details)
|
||||
<span class="m-2"> @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d H:i:s', $details['masa_bidaan'] );
|
||||
$t_lelong = $myDateTime->format('h:i:s');
|
||||
echo($t_lelong);
|
||||
@endphp</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
{{-- <tr>
|
||||
<td colspan="2" align="left"><strong>Jumlah Keseluruhan</strong></td>
|
||||
<td><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tr> --}}
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
@@ -133,12 +133,12 @@ tr:nth-child(even) {
|
||||
<th>No.Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat(gm)</th>
|
||||
<th>Keuntungan Telah Bayar (RM)</th>
|
||||
<th>Keuntungan 6 Bulan (RM)</th>
|
||||
<th>Keuntungan Semasa (RM)</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<th>Pembiayaan Asal (RM)</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<th>Keuntungan 6 Bulan (RM)</th>
|
||||
<th>Keuntungan Telah Bayar (RM)</th>
|
||||
<th>Keuntungan Semasa (RM)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -162,31 +162,64 @@ tr:nth-child(even) {
|
||||
$jumberat = $jumberat + $item['berat'];
|
||||
@endphp
|
||||
{{ number_format($item['berat'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumberat, 2, '.', ',') }}</strong>
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumktlhbyr = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumktlhbyr = $jumktlhbyr + $item['ktlhbyr'];
|
||||
@endphp
|
||||
{{ number_format($item['ktlhbyr'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumktlhbyr, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jum6bulan = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumnilaimarhun = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumnilaimarhun = $jumnilaimarhun + $item['nilaimarhun'];
|
||||
@endphp
|
||||
{{ number_format($item['nilaimarhun'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumnilaimarhun, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumpinjasal = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumpinjasal = $jumpinjasal + $item['pinjaman'];
|
||||
@endphp
|
||||
{{ number_format($item['pinjaman'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumpinjasal, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumpinjaman = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumpinjaman = $jumpinjaman + $item['bakipjm'];
|
||||
@endphp
|
||||
{{ number_format($item['bakipjm'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumpinjaman, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jum6bulan = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jum6bulan = $jum6bulan + $item['bakiupah'];
|
||||
@endphp
|
||||
{{ number_format($item['bakiupah'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
@endforeach
|
||||
<strong>{{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumktlhbyr = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumktlhbyr = $jumktlhbyr + $item['ktlhbyr'];
|
||||
@endphp
|
||||
{{ number_format($item['ktlhbyr'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumktlhbyr, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jum6bulan = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@@ -198,41 +231,8 @@ tr:nth-child(even) {
|
||||
<strong>{{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumpinjasal = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumpinjasal = $jumpinjasal + $item['pinjaman'];
|
||||
@endphp
|
||||
{{ number_format($item['pinjaman'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumpinjasal, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumpinjaman = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumpinjaman = $jumpinjaman + $item['bakipjm'];
|
||||
@endphp
|
||||
{{ number_format($item['bakipjm'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumpinjaman, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td align = 'right'>
|
||||
@php $jumnilaimarhun = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumnilaimarhun = $jumnilaimarhun + $item['nilaimarhun'];
|
||||
@endphp
|
||||
{{ number_format($item['nilaimarhun'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumnilaimarhun, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<!-- <td align = 'right'>
|
||||
@php $jumhargaasas = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<th>No.KP</th>
|
||||
<th>No.Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat(gm)</th>
|
||||
<th>Berat Asal(gm)</th>
|
||||
<th>Nilai Marhun Asal(RM)</th>
|
||||
<th>Pembiayaan Asal (RM)</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<table class="table text-right 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" class="check_all"></th>
|
||||
<th><input type="checkbox" aria-label="Checkbox for following text input" id="checkall"></th>
|
||||
<th>Bil</th>
|
||||
<th>Kod Cawangan</th>
|
||||
<th>Cawangan</th>
|
||||
@@ -84,7 +84,7 @@
|
||||
@if($send['bil_lelong'] > 0)
|
||||
|
||||
<tr>
|
||||
<td><input type="checkbox" aria-label="Checkbox for following text input" name="caw[]" id="caw" value = "{{ $send['kodcaw'] }}" class="custom_name"></td>
|
||||
<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>{{ $send['kodcaw'] }}</td>
|
||||
<td >{{ $send['caw_name'] }}</td>
|
||||
@@ -163,17 +163,34 @@
|
||||
// $( '.addcaw').removeClass('dt-button');
|
||||
// $( '.export').removeClass('dt-button');
|
||||
</script>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.js"
|
||||
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
|
||||
crossorigin="anonymous"></script>
|
||||
<script>
|
||||
$(".check_all").on("click", function(){
|
||||
$(".custom_name").each(function(){
|
||||
$(this).attr("checked", true);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<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>
|
||||
$(function() {
|
||||
$( "form" ).submit(function() {
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
</p>
|
||||
|
||||
<p style="text-align: center;">
|
||||
<a href="{{'http://lelong2.test/forgot-password/'.$user['token']}}" class="btn">Tukar Katalaluan Anda</a>
|
||||
<a href="{{'https://adminbid.arrahn.com.my/forgot-password/'.$user['token']}}" class="btn">Tukar Katalaluan Anda</a>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ Route::group(['middleware' => ['auth:sanctum']], function () {
|
||||
Route::get('/lelongDetails/listSuratLelong', [LelongMobileController::class, 'listSuratLelong']);
|
||||
//list lelong online
|
||||
Route::get('/lelongOnline', [LelongMobileController::class, 'lelongOnline']);
|
||||
//photo marhun
|
||||
Route::get('/photoMarhun',[LelongMobileController::class, 'photoMarhun']);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -175,6 +175,9 @@ Route::group(['prefix'=>'lelong'], function () {
|
||||
Route::post('/export',['as'=>'lelong.export','uses'=>'LelongController@export']);
|
||||
Route::post('/exportkali',['as'=>'lelong.exportkali','uses'=>'LelongController@exportkali']);
|
||||
|
||||
Route::get('/exporthargaemas/{lelong_id}',['as'=>'lelong.exporthargaemas','uses'=>'LelongController@exporthargaemas']);
|
||||
Route::get('/senaraimarhundone/{lelongid}/{cawid}', ['as'=>'lelong.senaraimarhundone','uses'=>'LelongController@senaraimarhundone']);
|
||||
|
||||
});
|
||||
Route::get('/showsimulasi/{id}',['as'=>'lelong.showsimulasi','uses'=>'LelongController@showsimulasi']);
|
||||
Route::get('/senaraimarhunsimulasi/{lelongid}/{cawid}', ['as'=>'lelong.senaraimarhunsimulasi','uses'=>'LelongController@senaraimarhunsimulasi']);
|
||||
|
||||
Reference in New Issue
Block a user