Merge branch 'main' into afiqhamzah-feat-add-capture-marhun-picture

This commit is contained in:
afiq.hamzah
2022-11-24 12:18:00 +08:00
154 changed files with 5207 additions and 2504 deletions
+22 -11
View File
@@ -18,6 +18,7 @@ use App\Models\Payment;
use App\Models\User;
use App\Models\LelongBidder;
use Hash;
use DateTime;
class HomeController extends Controller
{
@@ -132,18 +133,28 @@ class HomeController extends Controller
array_push($arrayinfomutu,['info'=>$infomutu, 'detailsinfo'=>$detailsinfo]);
}
if($caw <> NULL) { //staf cwgn
$sag = LelongBid::where('status_semak', 0) //belum disemak
->where('kodcaw', $caw['caw_code'])
->get();
//dd($sag);
$all_lelong = Lelong::select('id', 'tarikh_lelong')->where('sts_lelong', 0)->get()->keyBy('id');
foreach ($all_lelong as $data) {
$data->tarikh_lelong = DateTime::createFromFormat('Y-m-d', $data->tarikh_lelong);
$data->tarikh_lelong = $data->tarikh_lelong->format('d-m-Y');
}
else { //operasi,jurulelong
if ($caw <> NULL) { //staf cwgn
$sag = LelongBid::where('status_semak', 0) //belum disemak
->get();
->where('kodcaw', $caw['caw_code'])
->get();
$sag_by_lelong_id = $sag->groupBy('lelong_id');
foreach ($sag_by_lelong_id as $index => $lelong) {
if ($all_lelong[$index]); {
$all_lelong[$index]['sag_belum_semak'] = $lelong->count();
}
}
} else { //operasi,jurulelong
$sag = LelongBid::where('status_semak', 0) //belum disemak
->get();
}
//paparan pemenang lelongan harini
@@ -245,7 +256,7 @@ class HomeController extends Controller
//endpaparan untuk account page
return view('home',compact('lelongmutu', 'arrayinfomutu','arrayinfo','sag','semakCountArray','arrayinfomenang','arrayinfoaccount'));
return view('home',compact('all_lelong','lelongmutu', 'arrayinfomutu','arrayinfo','sag','semakCountArray','arrayinfomenang','arrayinfoaccount'));
}
+219 -9
View File
@@ -310,7 +310,8 @@ class LelongController extends Controller
'data',
'total_bakiupah',
'total_nilaimarhun',
'tarikhkemaskini'
'tarikhkemaskini',
'lelong'
));
}
@@ -619,6 +620,7 @@ class LelongController extends Controller
$lelongbidmarhun->bil = $simbidmarhun->bil;
$lelongbidmarhun->marhun = $simbidmarhun->marhun;
$lelongbidmarhun->nota = $simbidmarhun->nota;
$lelongbidmarhun->old_marhun = $simbidmarhun->marhun;
$lelongbidmarhun->old_karat = $simbidmarhun->karat;
$lelongbidmarhun->old_berat = $simbidmarhun->berat;
$lelongbidmarhun->old_harga = $simbidmarhun->harga;
@@ -807,6 +809,7 @@ class LelongController extends Controller
$karat->keterangan = $karat->keterangan;
// $karat->harga = $request->harga[$index];
$karat->harga2 = $request->harga2[$index];
$karat->updated_at = $currentdate;
$karat->save();
}
@@ -3117,7 +3120,7 @@ class LelongController extends Controller
foreach($cawanganlel as $cawlel)
{
$cawangan = Cawangan::where('id','=',$cawlel->caw_id)->first();
$databid = LelongBid::select('lelongbid.id','lelongbid.berat','lelongbid.marhun','lelongbid.cajlelong','lelongbid.baki','lelongbid.nilaimarhun',
$databid = LelongBid::select('lelongbid.jbg','lelongbid.id','lelongbid.berat','lelongbid.marhun','lelongbid.cajlelong','lelongbid.baki','lelongbid.nilaimarhun',
'lelongbid.pinjaman','lelongbid.hargaasas','lelongbid.cajlelong','lelongbid.bakiupah')
->where('caw_id','=',$cawlel->caw_id)->where('lelong_id','=',$lelong_id)->get();
@@ -3203,6 +3206,199 @@ class LelongController extends Controller
}
array_push($arraycaw,[
'id_cawangan'=> $cawangan['id'],
'cawangan'=>$cawangan['caw_name'],
't_lelong'=>$lelong['tarikh_lelong'],
'bil_marhun'=>sizeof($databid),
'jbg'=>$bid['jbg'],
'berat'=>$berat,
'n_marhun'=>$nilai_marhun,
'pinjaman'=>$pinjaman,
'upahsimpan'=>$bakiupah,
'bakiupah'=>$bakiupah,
'hargaasas'=>$hargaasas,
'cajlelong'=>$cajlelong,
'rugilelong'=>$rugilelong,
'bakilelong'=>$bakilelong,
]);
$total_marhun = $total_marhun + sizeof($databid);
$total_berat = $total_berat + $berat;
$total_pinjaman = $total_pinjaman + $pinjaman;
$total_hargaasas = $total_hargaasas + $hargaasas;
$total_cazlelong = $total_cazlelong + $cajlelong;
$total_rugilelong = $total_rugilelong + $rugilelong;
$total_bakilelong = $total_bakilelong + $bakilelong;
$total_nilaimarhun = $total_nilaimarhun + $nilai_marhun;
$total_bakiupah = $total_bakiupah + $bakiupah;
$data = Lelong::where('lelong.id','=',$lelong_id)
->first();
}
$pdf = PDF::loadView('pdf.lelreport',compact('arraycaw',
'total_marhun',
'total_berat',
'total_nmarhun',
'total_pinjaman',
'total_upah',
'total_hargaasas',
'total_cazlelong',
'total_rugilelong',
'total_bakilelong',
'total24Kgb',
'total24K',
'total23k',
'total22K',
'total21K',
'total20K',
'total18Kp',
'total18K',
'total14Kp',
'total14K',
'total9K',
'lelkarat',
'lelong_id',
'jeniskarat',
'data',
'total_bakiupah',
'total_nilaimarhun'
))->setPaper('a4', 'potrait');
return $pdf->download('Lelong Simulasi Keseluruhan.pdf');
}
public function exportlelongdone(Request $request)
{
$lelong_id = $request->lelongid;
$lelong = Lelong::where('id','=',$lelong_id)->first();
$cawanganlel = CawanganLelong::where('lelong_id','=',$lelong_id)->get();
$lelkarat = LelKarat::where('lelong_id','=',$lelong_id)->get();
$jeniskarat = JenisKarat::all();
$arraydata = [];
$arraycaw = [];
$data = [];
$total_marhun = 0;
$total_berat = 0;
$total_nmarhun = 0;
$total_pinjaman = 0;
$total_upah = 0;
$total_hargaasas = 0;
$total_cazlelong = 0;
$total_rugilelong = 0;
$total_bakilelong = 0;
$total24Kgb = 0;
$total24K = 0;
$total23k = 0;
$total22K = 0;
$total21K = 0;
$total20K = 0;
$total18Kp = 0;
$total18K = 0;
$total14Kp = 0;
$total14K = 0;
$total9K = 0;
$total_nilaimarhun = 0;
$nilai_marhun = 0;
$total_bakiupah = 0;
foreach($cawanganlel as $cawlel)
{
$cawangan = Cawangan::where('id','=',$cawlel->caw_id)->first();
$databid = LelongBid::select('lelongbid.id','lelongbid.berat','lelongbid.marhun','lelongbid.cajlelong','lelongbid.baki','lelongbid.nilaimarhun',
'lelongbid.pinjaman','lelongbid.hargaasas','lelongbid.cajlelong','lelongbid.bakiupah')
->where('caw_id','=',$cawlel->caw_id)->where('status_jual','=',1)->where('lelong_id','=',$lelong_id)->get();
// dd($databid->toArray());
$packet = 0;
$berat = 0;
$pinjaman =0;
$nilai_marhun = 0;
$bakiupah = 0;
$hargaasas = 0;
$cajlelong = 0;
$rugilelong = 0;
$bakilelong = 0;
foreach($databid as $index1=>$bid)
{
$marhun = LelongBidMarhun::where('lelongbid_id','=',$bid['id'])->get();
$berat = $berat + $bid['berat'];
$nilai_marhun = $nilai_marhun + $bid['nilaimarhun'];
$pinjaman =$pinjaman + $bid['pinjaman'];
$bakiupah = $bakiupah + $bid['bakiupah'];
$hargaasas = $hargaasas + $bid['hargaasas'];
$cajlelong = $cajlelong + $bid['cajlelong'];
$lelongsim = Lelong::where('id', $lelong_id )->get();
$sumcajlelong = $bid['hargaasas'] * ($lelongsim[0]['cajlelong']/100);
$cajlelong = $cajlelong + bcdiv($sumcajlelong,1,1);
$totalbaki = $bid['hargaasas'] - $bid['pinjaman'] - $bid['bakiupah'] - bcdiv($sumcajlelong,1,1);
if($totalbaki > 0)
{
$bakilelong = $bakilelong + $totalbaki;
}
else
{
$rugilelong = $rugilelong - $totalbaki;
}
$total24Kgb += LelongBidMarhun::where('lelongbid_id','=',$bid['id'])
->where('karat','=','24.0Kgb')
->sum('berat');
$total24K += LelongBidMarhun::where('lelongbid_id','=',$bid['id'])
->where('karat','=','24.0K')
->sum('berat');
$total23k += LelongBidMarhun::where('lelongbid_id','=',$bid['id'])
->where('karat','=','23.0K')
->sum('berat');
$total22K += LelongBidMarhun::where('lelongbid_id','=',$bid['id'])
->where('karat','=','22.0K')
->sum('berat');
$total21K += LelongBidMarhun::where('lelongbid_id','=',$bid['id'])
->where('karat','=','21.0K')
->sum('berat');
$total20K += LelongBidMarhun::where('lelongbid_id','=',$bid['id'])
->where('karat','=','20.0K')
->sum('berat');
$total18Kp += LelongBidMarhun::where('lelongbid_id','=',$bid['id'])
->where('karat','=','18.0Kp')
->sum('berat');
$total18K += LelongBidMarhun::where('lelongbid_id','=',$bid['id'])
->where('karat','=','18.0K')
->sum('berat');
$total14Kp += LelongBidMarhun::where('lelongbid_id','=',$bid['id'])
->where('karat','=','14.0Kp')
->sum('berat');
$total14K += LelongBidMarhun::where('lelongbid_id','=',$bid['id'])
->where('karat','=','14.0K')
->sum('berat');
$total9K += LelongBidMarhun::where('lelongbid_id','=',$bid['id'])
->where('karat','=','9.0K')
->sum('berat');
}
array_push($arraycaw,[
'id_cawangan'=> $cawangan['id'],
@@ -3235,7 +3431,11 @@ class LelongController extends Controller
->first();
}
$pdf = PDF::loadView('pdf.lelreport',compact('arraycaw',
$datacaw = Cawangan::where('id','=',$cawlel->caw_id)
->get();
$pdf = PDF::loadView('pdf.lelreportdone',compact('datacaw','arraycaw',
'total_marhun',
'total_berat',
'total_nmarhun',
@@ -3263,10 +3463,9 @@ class LelongController extends Controller
'total_bakiupah',
'total_nilaimarhun'
))->setPaper('a4', 'potrait');
return $pdf->download('Lelong Simulasi Keseluruhan.pdf');
return $pdf->download('Lelong Keseluruhan.pdf');
}
public function senarailelongall()
{
@@ -4370,7 +4569,7 @@ class LelongController extends Controller
foreach($cawanganlel as $cawlel)
{
$cawangan = Cawangan::where('id','=',$cawlel->caw_id)->first();
$databid = LelongBid::select('lelongbid.id','lelongbid.berat','lelongbid.marhun','lelongbid.cajlelong','lelongbid.baki','lelongbid.nilaimarhun',
$databid = LelongBid::select('lelongbid.jbg','lelongbid.id','lelongbid.berat','lelongbid.marhun','lelongbid.cajlelong','lelongbid.baki','lelongbid.nilaimarhun',
'lelongbid.pinjaman','lelongbid.hargaasas','lelongbid.cajlelong','lelongbid.bakiupah')
->where('caw_id','=',$cawlel->caw_id)->where('lelong_id','=',$lelong_id)->get();
@@ -4820,7 +5019,13 @@ class LelongController extends Controller
$lelong_id = $id;
$lelong = Lelong::where('id','=',$id)->first();
// $cawanganlel = CawanganLelong::where('lelong_id','=',$id)->get();
$cawanganlel = CawanganLelong::with(['cawangan', 'lelongBid.lelongBidMarhun'])->where('lelong_id', '=', $id)->get();
// $cawanganlel = CawanganLelong::with(['cawangan', 'lelongBid.lelongBidMarhun'],['lelongbid' => function($q){
// $q->where('lelongbid.status_jual', '=', 1);
// }])->where('lelong_id', '=', $id)->get();
$cawanganlel = CawanganLelong::with(['cawangan', 'lelongBid' => function ($query) {
$query->where('status_jual', '=', 1);
}])
->where('lelong_id', '=', $id)->get();
// dd($cawanganlel);
$lelkarat = LelKarat::where('lelong_id','=',$id)->get();
$jeniskarat = JenisKarat::all();
@@ -4857,6 +5062,7 @@ class LelongController extends Controller
$nilai_marhun = 0;
$totalkeuntungan2 = 0;
$total_marhun = 0;
foreach ($cawanganlel as $cawlel) {
$berat = 0;
@@ -4867,12 +5073,13 @@ class LelongController extends Controller
$cajlelong = 0;
$rugilelong = 0;
$bakilelong = 0;
$total_marhun = 0;
$databid = LelongBid::where('caw_id','=',$cawlel->caw_id)->where('lelong_id','=',$id)->where('status_jual','=',1)->get();
// dd($databid);
foreach ($databid as $lel_bid) {
$total_marhun += 1;
$nilai_marhun += $lel_bid->nilaimarhun;
$pinjaman += $lel_bid->pinjaman;
$bakiupah += $lel_bid->bakiupah;
@@ -4921,6 +5128,7 @@ class LelongController extends Controller
}
}
// dd($cawlel->cawangan);
// $total_marhun += sizeof($cawlel->lelongBid);
array_push($arraycaw,[
'id_cawangan'=> $cawlel['caw_id'],
'cawangan' => $cawlel->cawangan->caw_name,
@@ -4937,6 +5145,8 @@ class LelongController extends Controller
'bakilelong'=>$bakilelong,
]);
$total_marhun += sizeof($cawlel->lelongBid);
// $total_marhun = $total_marhun + sizeof($databid);
// $total_berat = $total_berat + $berat;
// $total_pinjaman = $total_pinjaman + $pinjaman;
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -183,7 +183,7 @@ class NotisController extends Controller
$pdf = PDF::loadView('pdf.jananotis',compact('marhuns','lelong_id','lelongid','caw','tarikh_cetak','customer','listsag'))
->setPaper('a4', 'potrait');
return $pdf->download('Penjanaan Notis Fasa 1: ID Lelong '.$lelong_id.'.pdf');
return $pdf->download('Penjanaan Notis Fasa 1:Batch Lelong '.$lelong_id.'.pdf');
}
@@ -386,7 +386,7 @@ class NotisController extends Controller
$pdf = PDF::loadView('pdf.jananotisfasa2',compact('marhuns','lelong_id','lelongid','caw','tarikh_cetak','customer','listsag'))
->setPaper('a4', 'potrait');
return $pdf->download('Penjanaan Notis Fasa 2: ID Lelong '.$lelong_id.'.pdf');
return $pdf->download('Penjanaan Notis Fasa 2:Batch Lelong '.$lelong_id.'.pdf');
}
+7 -2
View File
@@ -47,8 +47,10 @@ class PaymentController extends Controller
array_push($arrayinfo,['info'=>$info, 'detailsinfo'=>$detailsinfo]);
// dd($detailsinfo);
}
$datacaw = Cawangan::where('caw_code','=', $user->kodcaw)
->get();
return view('pembayaran.senarailelongbayaran',compact('lelong', 'arrayinfo'));
return view('pembayaran.senarailelongbayaran',compact('datacaw','lelong', 'arrayinfo'));
}
@@ -111,7 +113,10 @@ class PaymentController extends Controller
}
return view('pembayaran.kaunterpembayaran',compact('listwinner','lelong_id'));
$datacaw = Cawangan::where('caw_code','=', $user->kodcaw)
->get();
return view('pembayaran.kaunterpembayaran',compact('datacaw','listwinner','lelong_id'));
}
+6 -2
View File
@@ -485,8 +485,10 @@ class PembidaController extends Controller
array_push($arrayinfo,['detail'=>$details, 'detailsinfo'=>$detailsinfo]);
}
// dd($request->kodcaw);
$datacaw = Cawangan::where('caw_code','=',$kodcaw)
->get();
return view('pembida.listkebenaranbayarantunai',compact('lelong','arrayinfo'));
return view('pembida.listkebenaranbayarantunai',compact('datacaw','lelong','arrayinfo'));
}
// public function senaraipemenangbycaw(Request $request, $lelong_id){
@@ -596,9 +598,11 @@ class PembidaController extends Controller
$listwinner[$index1]['sts_payment'] = $sts_payment[0]['status_payment'];
}
$datacaw = Cawangan::where('caw_code','=',$caw_code)
->get();
// return view('pembayaran.kaunterpembayaran',compact('listwinner','lelong_id'));
return view('pembida.senaraipemenangbycaw',compact('listwinner','lelong_id','caw_code'));
return view('pembida.senaraipemenangbycaw',compact('datacaw','listwinner','lelong_id','caw_code'));
}
+39 -28
View File
@@ -72,40 +72,51 @@ class PenggunaController extends Controller
'username' => 'required|string|unique:users'
]);
if ($validator->fails()) {
$errors = [
'success' => "error",
'message' => $validator->errors()
// if ($validator->fails()) {
// $errors = [
// 'success' => "error",
// 'message' => $validator->errors()
];
// ];
return redirect()->route('pengguna.index')
->with('message', 'Sila Masukkan Email Yang Sah'); }
// return redirect()->route('pengguna.index')
// ->with('message', 'Sila Masukkan Email Yang Sah'); }
$user = new User;
$user->name = $request->name;
$user->username = $request->username;
$user->kodcaw = $request->caw;
$user->status = 'active';
$user->t_daftar = $currentdate;
$user->email = $request->email;
$user->email_verified_at = $currentdate;
$user->password = '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi'; //password
$user->user_type = 1;
$user->save();
//check if user already existed
$check = User::where('username',$request->username)
->orWhere('email',$request->email)
->first();
$allroles = Role::all()->pluck('name');
$arraytaraf = [];
foreach($allroles as $index=>$taraf) {
$req = 'taraf'.$taraf;
if($request->$req)
if($check)
{
array_push($arraytaraf,$taraf);
return redirect()->route('pengguna.index')->with('failed','Maaf, Nama Pengguna / Emel Berikut Telah Wujud !');
} else {
$user = new User;
$user->name = $request->name;
$user->username = $request->username;
$user->kodcaw = $request->caw;
$user->status = 'active';
$user->t_daftar = $currentdate;
$user->email = $request->email;
$user->email_verified_at = $currentdate;
$user->password = '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi'; //password
$user->user_type = 1;
$user->save();
$allroles = Role::all()->pluck('name');
$arraytaraf = [];
foreach($allroles as $index=>$taraf) {
$req = 'taraf'.$taraf;
if($request->$req)
{
array_push($arraytaraf,$taraf);
}
}
$user->syncRoles($arraytaraf);
return redirect()->route('pengguna.index')
->with('success', 'Pengguna Berjaya Disimpan');
}
}
$user->syncRoles($arraytaraf);
return redirect()->route('pengguna.index')
->with('success', 'Pengguna Berjaya Disimpan');
}
public function store(Request $request)
+111 -19
View File
@@ -33,6 +33,7 @@ use App\Models\Resit;
use App\Models\Customer;
use App\Models\LelongTebus;
use App\Models\Pengesahan;
use App\Models\TransaksiKeuntungan;
use Carbon\Carbon;
@@ -649,10 +650,63 @@ class ReportController extends Controller
->setPaper('a4','potrait');
return $pdf->download('Laporan Simulasi Cawangan.pdf');
}
public function simulasireportbycust($simulasi_id, $cawid)
{
$keuntungan = 0;
$arraylistgadai = 0;
$simulasilel = Simulasi::with('cawangan')->find($simulasi_id);
$cawname = Cawangan::where('id','=',$cawid)->first();
$cawanganDetail = $simulasilel->cawangan->find($cawid);
$marhun = SimulasiBid::join('cawangan', 'simulasibid.caw_id', '=', 'cawangan.id')
->where('simulasi_id','=',$simulasi_id)
->where('caw_id','=',$cawid);
$arraynorujukan = $marhun->pluck('norujukan')->toArray();
$datasimulasi = $marhun->get();
$marhuns = Gadai::on($datasimulasi[0]['kodcaw'])->whereIn('norujukan', $arraynorujukan)
->select('nokp')
->groupBy('nokp')->get();
// dd($datagadai);
$arraysag = [];
foreach($marhuns as $index1=>$cal)
{
$customer = Customer::where('kpbaru','=',$cal['nokp'])
->orWhere('kplama','=',$cal['nokp'])
->first();
// dd($customer);
$listsag = Gadai::on($datasimulasi[0]['kodcaw'])->whereIn('norujukan', $arraynorujukan)
->where('nokp','=',$cal['nokp'])
->get();
// dd($listgadai);
foreach($listsag as $index=>$listing){
$ktlhbyr = TransaksiKeuntungan::on('main')->where('norujukan','=',$listing['norujukan'])->sum('bayaran_keuntungan');
// dd($ktlhbyr);
$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;
// dd($keuntungan);
$listsag[$index]['ktlhbyr'] = $ktlhbyr;
$listsag[$index]['keuntungan'] = $keuntungan;
}
$marhuns[$index1]['nama'] = $customer;
$marhuns[$index1]['listsag'] = $listsag;
}
$pdf = PDF::loadView('pdf.simulasireportbycust',compact('simulasilel','cawanganDetail','marhuns','simulasi_id','cawid','ktlhbyr','cawname'))
->setPaper('a4','potrait');
return $pdf->download('Laporan Simulasi Cawangan by Pelanggan.pdf');
}
public function lelongreport ($lelongid, $cawid){
@@ -770,33 +824,71 @@ class ReportController extends Controller
// return view('lelong.senaraimarhun',compact('arraymarhun','marhuns','lelongid','cawid','arrayinfo'));
}
public function lapubahmarhunlelong (){
public function lapubahmarhunlelongindex (){
$arraydetails = [];
$laporan= Pengesahan::join('lelongbidmarhun','pengesahan.lelongbidmarhun_id','=','lelongbidmarhun.id')
->join('lelongbid','lelongbid.norujukan','=','pengesahan.norujukan')
->select('pengesahan.norujukan','pengesahan.lelong_id','lelongbid.caw_id','pengesahan.diminta_pada','pengesahan.disahkan_oleh','pengesahan.disahkan_pada','pengesahan.diminta_oleh','pengesahan.status','pengesahan.status_ubah','lelongbidmarhun.old_karat','lelongbidmarhun.karat','lelongbidmarhun.old_berat','lelongbidmarhun.berat','lelongbid.kodcaw','lelongbid.norujukan','lelongbid.lelong_id')
->whereNotNull('pengesahan.disahkan_oleh')
->orderBy('pengesahan.id')
$arraydetails = [];
$laporan= Lelong::join('cawangan_lelong','lelong.id','=','cawangan_lelong.lelong_id')
->join('pengesahan','lelong.id','=','pengesahan.lelong_id')
->select('cawangan_lelong.lelong_id','tarikh_lelong','lelong.fasa')
->distinct()
->orderBy('cawangan_lelong.lelong_id')
->get()
->toArray();
// dd($laporan);
foreach($laporan as $lap) //stop here 01.09.2022
{
$details = CawanganLelong ::join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('lelong_id',$lap['lelong_id'])
->where('caw_id',$lap['caw_id'])
foreach($laporan as $brg)
{
$details = CawanganLelong::join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('lelong_id', $brg['lelong_id'])
->distinct()
->orderBy('lelong_id')
->get()
->toArray();
array_push($arraydetails, ['lap' =>$lap,'details' =>$details]);
}
array_push($arraydetails,['brg' => $brg, 'detailsbrg' => $details ]);
}
return view('marhun.ubahmarhun', compact('laporan','arraydetails'));
return view('marhun.ubahmarhuncaw', compact('arraydetails'));
}
public function lapubahmarhunlelongindex ($lelong_id, $kodcaw){
$cawangan = Pengesahan::where('pengesahan.lelong_id', $lelong_id)
->where('pengesahan.status', 1)
->whereNotNull('pengesahan.disahkan_oleh')
->select('pengesahan.lelongbid_id','pengesahan.diminta_oleh','pengesahan.disahkan_oleh', 'pengesahan.disahkan_pada', 'pengesahan.norujukan', 'pengesahan.lelong_id')
->orderBy('pengesahan.lelongbid_id')
->distinct()
->get();
foreach($cawangan as $index1=>$caw)
{
$getpengesahan = Cawangan::where('caw_code', $kodcaw)->first();
$getdisahkanoleh = User::where('id', $caw['disahkan_oleh'])->first();
$getdimintaoleh = User::where('id', $caw['diminta_oleh'])->first();
$status = Pengesahan::where('lelongbid_id', $caw['lelongbid_id'])
->select('id as sahid','status_ubah', 'request_karat', 'request_berat', 'request_marhun')
->get();
$marhuns = LelongBidMarhun::where('lelongbid_id', $caw['lelongbid_id'])
->get()
->toArray();
$cawangan[$index1]['namacaw'] = $getpengesahan['caw_name'];
$cawangan[$index1]['disahkan_oleh'] = $getdisahkanoleh['name'];
$cawangan[$index1]['diminta_oleh'] = $getdimintaoleh['name'];
$cawangan[$index1]['detailmarhun']=$status;
$cawangan[$index1]['detail']=$marhuns;
}
return view('marhun.ubahmarhun', compact('cawangan','lelong_id','getpengesahan'));
}
public function exportubahmarhun (){
@@ -1120,6 +1120,7 @@ class SimulasiController extends Controller
$karat->karat = $karat->karat;
$karat->keterangan = $karat->keterangan;
$karat->harga2 = $request->harga2[$index];
$karat->updated_at = $currentdate;
$karat->save();
}
@@ -635,7 +635,79 @@ class TangguhLelongController extends Controller
return $pdf->download('Borang Tangguh Lelong '.$lelong_id.'.pdf');
}
}
public function ulangdownloadmohon($lelongbid_id)
{
$user = Auth::user();
$currentdate = Carbon::now();
$currentdate = $currentdate->toDateTimeString();
$current = new Carbon();
$t_mohon = $current->toDateString();
$selectedbid_id = $lelongbid_id;
//dd($selectedbid_id);
// $nokp = $request->nokp;
// $lelong_id = $request->lelong_id;
$lelongbid = LelongBid::where('lelongbid.id', $selectedbid_id)
->get();
foreach($lelongbid as $bidmarhun)
{
$cust = Gadai::on($bidmarhun->kodcaw)->where('norujukan',$bidmarhun->norujukan)
->first();
//dd($cust['nokp']);
//to get nokp
$lelongbidmarhun = LelongBidMarhun::where('lelongbid_id',$bidmarhun->id)
->get();
$percents = round(($bidmarhun->pinjaman / $bidmarhun->nmarhuns * 100),2);
$history = TangguhLelong::where('lelongbid_id',$bidmarhun->id)
->first();
$cwgn = Cawangan::where('caw_code','=',$bidmarhun->kodcaw)
->first();
$customer = Customer::where('kpbaru','=',$cust['nokp'])
->orWhere('kplama','=',$cust->nokp)
->join('poskod','customer.poskod','=','poskod.poskod')
->join('daerah','poskod.koddaerah','=','daerah.koddaerah')
->join('negeri','poskod.kodnegeri','=','negeri.kodnegeri')
->first();
$lelongbid['nama'] = ($customer) ? $customer : dd($cust['nokp']);
}
//get staf cwgn roles harian
$roles_harian_penilai = Http::get(config('app.api_url_kaunter').'api/roles_harian/' . $user->kodcaw ,[
'role_harian' => 'penilai'
])->json();
$roles_harian_khazanah = Http::get(config('app.api_url_kaunter').'api/roles_harian/' . $user->kodcaw ,[
'role_harian' => 'khazanah'
])->json();
$roles_harian_pc = Http::get(config('app.api_url_kaunter').'api/roles_harian/' . $user->kodcaw ,[
'role_harian' => 'pc'
])->json();
// dd($roles_harian_penilai,$roles_harian_khazanah,$roles_harian_pc);
// return view('pdf.brgtangguhlelong',compact('lelongbid','lelongbidmarhun','customer','cwgn','t_mohon','nokp','roles_harian_penilai','roles_harian_khazanah','roles_harian_pc'));
$pdf = PDF::loadView('pdf.brgtangguhlelong',compact('lelongbid','lelongbidmarhun','customer','cwgn','t_mohon','nokp','roles_harian_penilai','roles_harian_khazanah','roles_harian_pc'))
->setPaper('a4', 'potrait');
return $pdf->download('Borang Tangguh Lelong '.$selectedbid_id.'.pdf');
}
public function sentangguh()
{
@@ -813,15 +885,19 @@ class TangguhLelongController extends Controller
$lelongbid = LelongBid::where('lelongbid.id', $request->lelongbidid_mdl)
->delete();
return redirect()->route('pengesahan.opsenaraisahtangguh',[$tangguhlelong->lelong_id, $tangguhlelong->kodcaw])
->with('success', 'Tangguh Lelong Telah Di Lulus.');
}else{
$tangguhlelong->status = 99;
$tangguhlelong->update();
return redirect()->route('pengesahan.opsenaraisahtangguh',[$tangguhlelong->lelong_id, $tangguhlelong->kodcaw])
->with('success', 'Tangguh Lelong Tidak Di Lulus.');
}
return redirect()->route('pengesahan.opsenaraisahtangguh',[$tangguhlelong->lelong_id, $tangguhlelong->kodcaw])
->with('success', 'Tangguh Lelong Telah Di Sahkan.');
}
public function senaraitlhtangguh()
+1
View File
@@ -9,6 +9,7 @@ class Gadai extends Model
{
use HasFactory;
protected $connection = 'main';
protected $table = 'gadai';
protected $fillable = [
+5
View File
@@ -40,4 +40,9 @@ class Lelong extends Model
{
return $this->hasMany(LelKarat::class, 'lelong_id', 'id');
}
public function pengesahan()
{
return $this->hasMany(Pengesahan::class,'lelong_id','id');
}
}
+5
View File
@@ -71,4 +71,9 @@ class LelongBid extends Model
{
return $this->hasMany(ScanSemak::class, 'lelongbid_id', 'id')->whereNotNull('scan_masuk');
}
public function pengesahan()
{
return $this->belongsTo(Pengesahan::class, 'id', 'lelongbid_id');
}
}
+1 -1
View File
@@ -29,6 +29,6 @@ class LelongBidMarhun extends Model
];
public function pengesahan() {
return $this->hasOne(Pengesahan::class, 'lelongbidmarhun_id');
return $this->hasOne(Pengesahan::class, 'lelongbidmarhun_id', 'id');
}
}
+10
View File
@@ -22,4 +22,14 @@ class Pengesahan extends Model
'status',
'status_ubah'
];
public function lelongbidmarhun()
{
return $this->belongsTo(LelongBidMarhun::class, 'lelongbidmarhun_id' , 'id');
}
public function lelong()
{
return $this->belongsTo(Lelong::class,'lelong_id','id');
}
}
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class TempPengesahan extends Model
{
use HasFactory;
protected $table = 'temppengesahan';
protected $fillable = [
'lelong_id',
'lelongbid_id',
'norujukan',
'disahkan_oleh',
'disahkan_pada',
'diminta_oleh',
'diminta_pada',
'status',
'status_ubah'
];
public function lelongbidmarhun(){
return $this->belongsTo(LelongBidMarhun::class, 'lelongbidmarhun_id' , 'id');
}
}
@@ -123,7 +123,8 @@ class CreateLelongsTable extends Migration
$table->bigIncrements('id');
$table->unsignedBigInteger('lelongbid_id')->unsigned();
$table->decimal('bil', $precision = 3, $scale = 0);
$table->string('marhun');
$table->string('old_marhun');
$table->string('marhun');
$table->string('nota')->nullable();
$table->string('old_karat');
$table->string('karat');
@@ -61,6 +61,24 @@ class CreatePengesahanTable extends Migration
$table->timestamps();
});
Schema::create('temppengesahan', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('lelong_id')->unsigned();
$table->unsignedBigInteger('lelongbid_id')->unsigned();
$table->unsignedBigInteger('lelongbidmarhun_id')->unsigned();
$table->string('norujukan');
$table->integer('disahkan_oleh')->nullable();
$table->datetime('disahkan_pada')->nullable();
$table->integer('diminta_oleh');
$table->datetime('diminta_pada');
$table->integer('status')->default(0); //1 = terima, 2 = tangguh lelong
$table->integer('status_ubah')->default(0); //1 = ubah mutu, 2 = tambah marhun, 3 = hapus marhun, 4 = ubah berat, 5 = ubah mutu & berat, 6 = tangguh lelong pc, 7 = ubah marhun,8 = ubah mutu, berat dan marhun,9=ubah mutu dan marhun,10=ubah berat dan marhun
$table->string('request_berat')->nullable();
$table->string('request_karat')->nullable();
$table->string('request_marhun')->nullable();
$table->timestamps();
});
}
/**
@@ -73,5 +91,6 @@ class CreatePengesahanTable extends Migration
Schema::dropIfExists('pengesahan');
Schema::dropIfExists('scan_semak');
Schema::dropIfExists('scan_jual');
Schema::dropIfExists('temppengesahan');
}
}
+347
View File
@@ -16459,3 +16459,350 @@ readers do not read off random characters that represent icons */
text-transform: capitalize;
padding: 12px 12px;
}
a,
a:hover,
a:focus {
color: inherit;
text-decoration: none;
transition: all 0.3s;
}
.navbar {
padding: 15px 10px;
background: #fff;
border: none;
border-radius: 0;
margin-bottom: 40px;
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}
.navbar-btn {
box-shadow: none;
outline: none !important;
border: none;
}
.line {
width: 100%;
height: 1px;
border-bottom: 1px dashed #ddd;
margin: 40px 0;
}
/* ---------------------------------------------------
SIDEBAR STYLE
----------------------------------------------------- */
#sidebar {
bottom: 0;
overflow-y: scroll;
width: 265px;
position: fixed;
top: 0;
left: 0;
height: 100vh;
z-index: 999;
background: #1E1E2D;
/* color: rgb(41, 39, 39); */
color: #808080;
transition: all 0.3s;
}
#sidebar.active {
margin-left: -265px;
}
.sidebar-header {
padding: 20px;
display: flex;
justify-content: space-between;
/* border-bottom: 0.2px solid #6d7fcc; */
}
.sidebar-title {
font-size: 1.074rem;
font-weight: bold;
color: white;
border-color: white;
align-self: center;
/* border-bottom: border 1px solid white; */
}
.sidebar-logo {
width: 50px;
height: 35px;
}
/* #sidebar ul.components {
padding: 20px 0;
border-bottom: 1px solid #fff;
} */
/* #sidebar ul p {
color: rgb(41, 39, 39);
padding: 10px;
} */
#sidebar ul li {
margin: 3px 0;
}
#sidebar ul li.active {
background: #2a2a3c;
color: white;
border-radius: 25px;
}
#sidebar ul li.active:hover {
background: #2a2a3ca1;
/* color: white; */
}
#sidebar ul li a {
padding: 7px 5px;
font-size: 1.05em;
display: block;
}
#sidebar ul li a:hover {
color: white;
/* background: var(--indigo); */
border-radius: 15px;
}
/* #sidebar ul li.active a{
color: white;
background: #F0F0F0;
} */
#sidebar ul li .active a{
color: white;
/* background: #2a2a3c; */
border-radius: 15px;
margin: 2px;
background-position: 20px;
/* width: 70%; */
}
#sidebar ul li .active a:hover{
color: #ffffffd6;
background: #2a2a3ca1;
}
/* #sidebar ul li.active>a,
a[aria-expanded="true"] {
color: #111;
background: #F0F0F0;
} */
#sidebar ul li ul li a:before{
font-family: "Font Awesome 5 Free";
font-weight: 600;
content: "\f111";
font-size: 4px;
vertical-align: middle;
margin-right: 8px;
}
/* .dropdown-toggle::after {
display: block;
position: absolute;
top: 50%;
right: 20px;
transform: translateY(-50%);
} */
#sidebar ul ul a {
font-size: 0.9em;
padding-left: 30px !important;
/* background: #fff; */
}
.sidebar-menu {
display: flex;
justify-content: space-between;
}
.sidebar-menu-title {
margin-top: 20px;
padding: 6px 14px;
}
.sidebar-menu-item-expand {
align-self: center;
font-size: 1.0em;
margin-right: 11px;
}
/* .sidebar-menu-item-expand::before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f078";
} */
.sidebar-menu-main-title {
display: flex;
}
.sidebar-menu-item-main {
font-size: 1.0em;
/* vertical-align: sub; */
margin-right: 9px;
margin-left: 7px;
align-self: center;
color: var(--indigo);
}
/* .sidebar-menu-item-main:hover {
color: white;
background: white;
} */
/* ul.CTAs {
padding: 20px;
}
ul.CTAs a {
text-align: center;
font-size: 0.9em !important;
display: block;
border-radius: 5px;
margin-bottom: 5px;
} */
a[data-toggle="collapse"] {
position: relative;
}
a.download {
background: #fff;
color: #7386D5;
}
a.article,
a.article:hover {
background: #6d7fcc !important;
color: #fff !important;
}
/* ---------------------------------------------------
CONTENT STYLE
----------------------------------------------------- */
#content {
width: calc(100% - 265px);
padding: 3x;
min-height: 100vh;
transition: all 0.3s;
position: absolute;
top: 0;
right: 0;
overflow-y: auto;
}
#content.active {
width: 100%;
}
.hovernone:hover {
background-color: #3490dc !important;
cursor: context-menu !important;
}
.hovernone-success:hover {
background-color: #38c172 !important;
cursor: context-menu !important;
}
.hovernone-danger:hover {
background-color: #e3342f !important;
cursor: context-menu !important;
}
#loader {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
background: rgba(0, 0, 0, 0.4) url("") no-repeat center center;
z-index: 99999;
}
#loader-image {
position: absolute;
top: 40%;
left: 45%;
z-index: 100
}
.button {
background-color: #E09215;
border: none;
color: white;
padding: 10px 24px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 4px 2px;
cursor: pointer;
}
/* ---------------------------------------------------
MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 992px) {
#sidebar {
margin-left: -265px;
}
#sidebar.active {
margin-left: 0;
}
#content {
width: 100%;
}
#content.active {
width: calc(100% - 265px);
}
#sidebarCollapse span {
display: none;
}
}
.sidebar-footer {
/* position: absolute; */
/* bottom: 0; */
margin-top: 70px;
}
.sidebar-footer-content {
display: flex;
justify-content: center;
align-self: center;
border: 2px solid #2a2a3c;
padding: 10px;
margin: 46px;
border-radius: 10px;
color: #484859;
}
.user-info {
/* display: flex; */
}
@@ -15,7 +15,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Cawangan</th>
<th>Fasa</th>
+4 -4
View File
@@ -55,7 +55,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Cawangan</th>
<th>Tarikh Lelong</th>
<th>Harga Emas Asas</th>
@@ -138,7 +138,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>T.Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
@@ -286,7 +286,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Cawangan</th>
<th>Status Export</th>
@@ -347,7 +347,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
{{-- <th>Cawangan</th> --}}
<th>Nama</th>
+1 -1
View File
@@ -32,7 +32,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>T.Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
+75 -11
View File
@@ -7,7 +7,6 @@
<div class="card">
<div class="card-header">{{ __('Dashboard') }}</div>
<div class="card-body">
<div class="col-md-11 mx-auto card p-4">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
@@ -22,24 +21,89 @@
I am a khazanah!
<div class="container">
<div class="row">
<div class="col-6 col-sm-4">
<p><b>SAG Belum Disemak : {{ sizeof($sag) }}</b></p>
<div class="col-lg-6 col-md-12 card p-4">
@foreach($all_lelong as $lelong)
@if($lelong['sag_belum_semak'] != null)
<div class="form-group row">
<label class="col-6 col-form-label">Tarikh Lelong</label>
<div class="col-6">
<div class="input-group">
<input type="text" readonly class="form-control bg-light" value="{{ $lelong->tarikh_lelong }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 text-danger col-form-label">SAG Belum Disemak</label>
<div class="col-6">
<div class="input-group">
<input type="text" readonly class="form-control bg-light text-danger" value="12">
</div>
</div>
</div>
@endif
@endforeach
</div>
<div class="col-6 col-sm-4">
</div>
</div>
</div>
</div>
@endhasrole
@hasrole('penilai')
I am a penilai!
<p><b>SAG Belum Disemak : {{ sizeof($sag) }}</b></p>
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-12 card p-4">
@foreach($all_lelong as $lelong)
@if($lelong['sag_belum_semak'] != null)
<div class="form-group row">
<label class="col-6 col-form-label">Tarikh Lelong</label>
<div class="col-6">
<div class="input-group">
<input type="text" readonly class="form-control bg-light" value="{{ $lelong->tarikh_lelong }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 text-danger col-form-label">SAG Belum Disemak</label>
<div class="col-6">
<div class="input-group">
<input type="text" readonly class="form-control bg-light text-danger" value="12">
</div>
</div>
</div>
@endif
@endforeach
</div>
<div class="col-6 col-sm-4">
</div>
</div>
</div>
@endhasrole
@hasrole('pengurus-cawangan')
I am a pengurus-cawangan!
<div class="container">
<div class="row">
<div class="col-6 col-sm-4">
<p><b>SAG Belum Disemak : {{ sizeof($sag) }}</b></p>
<div class="col-lg-6 col-md-12 card p-4">
@foreach($all_lelong as $lelong)
@if($lelong['sag_belum_semak'] != null)
<div class="form-group row">
<label class="col-6 col-form-label">Tarikh Lelong</label>
<div class="col-6">
<div class="input-group">
<input type="text" readonly class="form-control bg-light" value="{{ $lelong->tarikh_lelong }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 text-danger col-form-label">SAG Belum Disemak</label>
<div class="col-6">
<div class="input-group">
<input type="text" readonly class="form-control bg-light text-danger" value="12">
</div>
</div>
</div>
@endif
@endforeach
</div>
<div class="col-6 col-sm-4">
</div>
@@ -55,7 +119,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Cawangan</th>
<th>Tarikh Lelong</th>
<th>Harga Emas Asas</th>
@@ -138,7 +202,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>T.Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
@@ -263,7 +327,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Cawangan</th>
<th>Status Export</th>
@@ -324,7 +388,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
{{-- <th>Cawangan</th> --}}
<th>Nama</th>
@@ -16,7 +16,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Cawangan</th>
<th>Tarikh Lelong</th>
<th>Harga Emas Asas</th>
+4 -4
View File
@@ -55,7 +55,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Cawangan</th>
<th>Tarikh Lelong</th>
<th>Harga Emas Asas</th>
@@ -138,7 +138,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>T.Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
@@ -271,7 +271,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Cawangan</th>
<th>Status Export</th>
@@ -332,7 +332,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
{{-- <th>Cawangan</th> --}}
<th>Nama</th>
+4 -4
View File
@@ -55,7 +55,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Cawangan</th>
<th>Tarikh Lelong</th>
<th>Harga Emas Asas</th>
@@ -139,7 +139,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>T.Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
@@ -263,7 +263,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Cawangan</th>
<th>Status Export</th>
@@ -326,7 +326,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
{{-- <th>Cawangan</th> --}}
<th>Nama</th>
+3 -3
View File
@@ -1,14 +1,14 @@
<nav class="navbar navbar-expand-lg navbar-light bg-light" style="">
<nav class="navbar navbar-expand-lg navbar-light bg-white">
<div class="container-fluid">
<button type="button" id="sidebarCollapse" class="btn btn-outline-secondary">
<i class="fa fa-bars"></i>
</button>
<button class="btn btn-dark d-inline-block d-lg-none ml-auto" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation" style="">
<button class="btn btn-dark d-inline-block d-lg-none ml-auto" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-align-justify"></i>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="nav navbar-nav ml-auto">
<li class="nav-link" id="displaytime">{{-- Ahad, 31 Oktober 2021, 9:49:08 AM --}}</li>
<li class="nav-link" style="color: orange; font-weight:bolder;" id="displaytime">{{-- Ahad, 31 Oktober 2021, 9:49:08 AM --}}</li>
<!-- <li class="nav-item active">
<a class="nav-link" href="#">Page</a>
</li>
File diff suppressed because it is too large Load Diff
@@ -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="col">
<div class="card">
<div class="card-header header-style">
<a href="{{ route('jananotis.notislelong') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Jana Notis Lelong
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
@@ -12,11 +20,11 @@
@endif
<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 text-center table-bordered" id="tablenotislelong" style="width:100%">
<thead class="bg-primary text-white">
<tr>
{{-- <th><input type="checkbox" aria-label="Checkbox for following text input" onclick="selectall(this)"></th> --}}
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Bilangan SAG</th>
@@ -39,10 +47,10 @@
<td class="text-center">
<a class="btn m-1 btn-primary" href="{{ route('jananotis.senarainotis',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Butiran Senarai Notis" ><i class="far fa-edit"></i></a>
@if($bid->fasa == '1')
<a class="confirmrefresh btn m-1 btn-danger" href="{{ route('jananotis.jananotis',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Jana Notis Fasa 1" style="margin-right:40px" ><i class="fas fa-download"></i></a>
<a class="confirmrefresh btn m-1 btn-warning" href="{{ route('jananotis.jananotis',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Jana Notis Fasa 1" style="margin-right:40px" ><i class="fas fa-download"></i></a>
@elseif($bid->fasa == '2')
<a class="confirmrefresh btn m-1 btn-danger" href="{{ route('jananotis.jananotisfasa2',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Jana Notis Fasa 2" style="margin-right:40px" ><i class="fas fa-download"></i></a>
<a class="confirmrefresh btn m-1 btn-warning" href="{{ route('jananotis.jananotisfasa2',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Jana Notis Fasa 2" style="margin-right:40px" ><i class="fas fa-download"></i></a>
@endif
</td>
@@ -2,9 +2,18 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header header-style">
<a href="{{ route('jananotis.notislelong') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Senarai SAG Lelongan
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
@@ -17,7 +26,7 @@
<input type="hidden" name="type" id="typedonwload" value="">
<input type="hidden" name="lelong_id" value="{{ $lelong_id}}">
<table class="table table-striped table-xl text-center" id="notis" style="width:100%">
<table class="table text-right table-bordered"" id="notis" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
@@ -16,7 +16,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Nama Cawangan</th>
<th>Harga Emas Asas</th>
@@ -16,7 +16,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Nama Cawangan</th>
<th>Fasa</th>
@@ -20,7 +20,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Nama</th>
<th>No Kad Pengenalan</th>
<th>No Telefon</th>
+24 -244
View File
@@ -1,5 +1,6 @@
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -12,20 +13,21 @@
<link rel="icon" href="{{asset('img/arrahn_favicon.ico')}}">
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" ></script>
<script src="{{ asset('js/jquery-confirm.min.js') }}" ></script>
<script src="{{ asset('js/dataTables.buttons.min.js') }}" ></script>
<script src="{{ asset('js/app.js') }}"></script>
<script src="{{ asset('js/jquery-confirm.min.js') }}"></script>
<script src="{{ asset('js/dataTables.buttons.min.js') }}"></script>
{{-- <script src="{{ asset('js/dataTables.select.min.js') }}" ></script> --}}
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded" rel="stylesheet" />
<!-- Styles -->
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<link href="{{ asset('css/jquery-confirm.min.css') }}" rel="stylesheet">
<link href="{{ asset('css/buttons.dataTables.min.css') }}" rel="stylesheet">
<link href="{{ asset('css/jquery-confirm.min.css') }}" rel="stylesheet">
<link href="{{ asset('css/buttons.dataTables.min.css') }}" rel="stylesheet">
<script type="text/javascript">
$(document).ready(function() {
@@ -47,7 +49,7 @@
weekday[4] = "Khamis";
weekday[5] = "Jumaat";
weekday[6] = "Sabtu";
const month = new Array();
month[0] = "Januari";
month[1] = "Februari";
@@ -65,7 +67,7 @@
let day = weekday[today.getDay()];
let monthname = month[today.getMonth()];
var d = today.getDate();
var mon = today.getMonth()+1;
var mon = today.getMonth() + 1;
var y = today.getFullYear();
var h = today.getHours();
var m = today.getMinutes();
@@ -74,253 +76,31 @@
m = checkTime(m);
s = checkTime(s);
document.getElementById('displaytime').innerHTML =
day+", "+d +" "+ monthname +" "+ y + ", " +h + ":" + m + ":" + s;
day + ", " + d + " " + monthname + " " + y + ", " + h + ":" + m + ":" + s;
var t = setTimeout(startTime, 500);
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
if (i < 10) {
i = "0" + i
}; // add zero in front of numbers < 10
return i;
}
</script>
@stack('additional_scripts')
<style>
a,
a:hover,
a:focus {
color: inherit;
text-decoration: none;
transition: all 0.3s;
}
.navbar {
padding: 15px 10px;
background: #fff;
border: none;
border-radius: 0;
margin-bottom: 40px;
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}
.navbar-btn {
box-shadow: none;
outline: none !important;
border: none;
}
.line {
width: 100%;
height: 1px;
border-bottom: 1px dashed #ddd;
margin: 40px 0;
}
/* ---------------------------------------------------
SIDEBAR STYLE
----------------------------------------------------- */
.wrapper {
display: flex;
width: 100%;
}
#sidebar {
width: 250px;
position: fixed;
top: 0;
left: 0;
height: 100vh;
z-index: 999;
background: #fff;
color: rgb(41, 39, 39);
transition: all 0.3s;
}
#sidebar.active {
margin-left: -250px;
}
#sidebar .sidebar-header {
padding: 20px;
background: #fff;
}
#sidebar ul.components {
padding: 20px 0;
border-bottom: 1px solid #fff;
}
#sidebar ul p {
color: rgb(41, 39, 39);
padding: 10px;
}
#sidebar ul li a {
padding: 8px;
font-size: 1.1em;
display: block;
border: 1px solid;
border-color: #F0F0F0;
}
#sidebar ul li a:hover {
color: #111;
background: #F0F0F0;
}
#sidebar ul li.active>a,
a[aria-expanded="true"] {
color: #111;
background: #F0F0F0;
}
a[data-toggle="collapse"] {
position: relative;
}
/* .dropdown-toggle::after {
display: block;
position: absolute;
top: 50%;
right: 20px;
transform: translateY(-50%);
} */
ul ul a {
font-size: 0.9em !important;
padding-left: 30px !important;
background: #fff;
}
ul.CTAs {
padding: 20px;
}
ul.CTAs a {
text-align: center;
font-size: 0.9em !important;
display: block;
border-radius: 5px;
margin-bottom: 5px;
}
a.download {
background: #fff;
color: #7386D5;
}
a.article,
a.article:hover {
background: #6d7fcc !important;
color: #fff !important;
}
/* ---------------------------------------------------
CONTENT STYLE
----------------------------------------------------- */
#content {
width: calc(100% - 250px);
padding: 3x;
min-height: 100vh;
transition: all 0.3s;
position: absolute;
top: 0;
right: 0;
}
#content.active {
width: 100%;
}
.hovernone:hover {
background-color: #3490dc !important;
cursor: context-menu !important;
}
.hovernone-success:hover {
background-color: #38c172 !important;
cursor: context-menu !important;
}
.hovernone-danger:hover {
background-color: #e3342f !important;
cursor: context-menu !important;
}
#loader {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
background: rgba(0,0,0,0.4) url("") no-repeat center center;
z-index: 99999;
}
#loader-image {position: absolute;top: 40%;left: 45%;z-index: 100}
.button {
background-color: #E09215;
border: none;
color: white;
padding: 10px 24px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 4px 2px;
cursor: pointer;
}
/* ---------------------------------------------------
MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 768px) {
#sidebar {
margin-left: -250px;
}
#sidebar.active {
margin-left: 0;
}
#content {
width: 100%;
}
#content.active {
width: calc(100% - 250px);
}
#sidebarCollapse span {
display: none;
}
}
</style>
@stack('additional_styles')
</head>
<body onload="startTime()">
<div class="wrapper">
<!-- Sidebar -->
@include('includes.sidebar')
<!-- Page Content -->
</div>
<div id="content" style="">
@include('includes.sidebar')
<div id="content">
@include('includes.header')
<main class="py-1 mb-5">
@yield('content')
</main>
</div>
</div>
</body>
</html>
</html>
+54 -49
View File
@@ -3,58 +3,62 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<h3 class="pt-3" style="margin-left:1%;">Butiran Laporan Barang Lelong </h3>
<div class="col">
<div class="card">
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
<div class="card-header header-style">
<div class="header-style-title">
Butiran Laporan Barang Lelong
</div>
</div>
@endif
<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%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
{{-- <th class="text-center">Muat Turun</th> --}}
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $laporan)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $laporan['brg']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['brg']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $laporan['brg']['fasa']}}</td>
<td align="left">
@foreach($laporan['detailsbrg'] as $details)
<a href=" {{ route('report.senaraibrglelongdetails', ['lelong_id'=>$laporan['brg']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong"><i class="fas fa-download"></i></a>
<span class="m-2">{{ $details['caw_name']}}</span><br>
@endforeach
</td>
{{--
<td class="text-center">
<a href="{{ route('report.senaraibrglelongdetails',$laporan['brg']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong Details" ><i class="fas fa-download"></i></a>
</td> --}}
</tr>
@endforeach
</tbody>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
{{ $message }}
</div>
@endif
<form id="exportform" action="" method="POST">
<input type="hidden" name="type" value="User">
<table class="table table-bordered text-center" id="tablenotislelong" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $laporan)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $laporan['brg']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['brg']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $laporan['brg']['fasa']}}</td>
<td align="left">
@foreach($laporan['detailsbrg'] as $details)
<a class="confirmrefresh btn m-1 btn-danger" href=" {{ route('report.senaraibrglelongdetails', ['lelong_id'=>$laporan['brg']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Muat Turun"><i class="fas fa-download"></i></a>
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{ $details['caw_name']}}</span><br>
@endforeach
</td>
</tr>
</table>
</form>
</div>
@endforeach
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
@@ -84,4 +88,5 @@
</script>
@endsection
@@ -15,7 +15,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
+1 -1
View File
@@ -14,7 +14,7 @@
{{ $message }}
</div>
@endif
<p>ID Lelong: {{$lelong['id']}}</p>
<p>Batch Lelong: {{$lelong['id']}}</p>
<p>Tarikh Lelong: {{$lelong['tarikh_lelong']}}</p>
<p>Masa Mula Lelong: {{$lelong['masamula_lelong']}}</p>
<p>Masa Tamat Lelong: {{$lelong['masatamat_lelong']}}</p>
@@ -18,7 +18,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th class="text-center">Muat Turun</th>
@@ -18,7 +18,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th class="text-center">Muat Turun</th>
@@ -18,7 +18,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th class="text-center">Muat Turun</th>
@@ -18,7 +18,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th class="text-center">Muat Turun</th>
@@ -6,7 +6,7 @@
<div class="col-md-11 mx-auto card p-4">
@foreach ($info as $info)
<span class="pt-3" style="margin-left:1%;"><b>Laporan Barang Lelong Pembida</b></span>
<span class="pt-3" style="margin-left:1%;">Lelong ID: {{ $lelong_id}}</span>
<span class="pt-3" style="margin-left:1%;">Batch Lelong: {{ $lelong_id}}</span>
<span class="pt-3" style="margin-left:1%;">Cawangan: {{ $info->caw_name}}</span>
<span class="pt-3" style="margin-left:1%;">Tarikh Lelong: {{ $info->tarikh_lelong}}</span><br>
@endforeach
@@ -3,56 +3,63 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<h3 class="pt-3" style="margin-left:1%;">Laporan Barang Lelong Pembida</h3>
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@endif
<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%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
{{-- <th class="text-center">Muat Turun</th> --}}
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $info)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{ $info['laporan']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $info['laporan']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $info['laporan']['fasa'] }}</td>
<td>
@foreach($info['details'] as $details)
<a href=" {{ route('report.lapbrglelpembida', ['lelong_id'=>$info['laporan']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong"><i class="fas fa-download"></i></a>
<span class="m-2"> {{ $details['caw_name']}}</span><br>
@endforeach
</td>
{{-- <td class="text-center">
<a href="{{ route('report.lapbrglelpembida',$info['laporan']['lelong_id'],$details['caw_name']) }}" data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong Pembida" ><i class="fas fa-download"></i></a>
</td> --}}
</tr>
@endforeach
</tbody>
</table>
</form>
</div>
<div class="col">
<div class="card">
<div class="card-header header-style">
<div class="header-style-title">
Laporan Barang Lelong Pembida
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
{{ $message }}
</div>
@endif
<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%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $info)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{ $info['laporan']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $info['laporan']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $info['laporan']['fasa'] }}</td>
<td>
@foreach($info['details'] as $details)
<a class="confirmrefresh btn m-1 btn-danger" href=" {{ route('report.lapbrglelpembida', ['lelong_id'=>$info['laporan']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong"><i class="fas fa-download"></i></a>
<span class="badge badge-pill badge-info text-white" style="font-size:100%"> {{ $details['caw_name']}}</span><br>
@endforeach
</td>
</tr>
@endforeach
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
+1 -2
View File
@@ -6,7 +6,7 @@
<div class="col-md-11 mx-auto card p-4">
@foreach ($lelongid as $info)
<span class="pt-3" style="margin-left:1%;"><b>Laporan Lelong Keseluruhan</b></span>
<span class="pt-3" style="margin-left:1%;">Lelong ID: {{ $lelong_id}}</span>
<span class="pt-3" style="margin-left:1%;">Batch Lelong: {{ $lelong_id}}</span>
<span class="pt-3" style="margin-left:1%;">Cawangan: {{ $info->caw_name}}</span>
<span class="pt-3" style="margin-left:1%;">Tarikh Lelong: {{ $info->tarikh_lelong}}</span><br>
@endforeach
@@ -35,7 +35,6 @@
<th>Rugi</th>
<th>Harga Asas</th>
<th>Nama Pembeli</th>
</tr>
</thead>
<tbody>
+57 -50
View File
@@ -3,57 +3,64 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<h3 class="pt-3" style="margin-left:1%;">Laporan Lelong Keseluruhan</h3>
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@endif
<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%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
{{-- <th class="text-center">Muat Turun</th> --}}
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $bid)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{ $bid['laporan']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $bid['laporan']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $bid['laporan']['fasa'] }}</td>
<td>
@foreach($bid['details'] as $details)
<a href=" {{ route('report.laplelong', ['lelong_id'=>$bid['laporan']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong"><i class="fas fa-download"></i></a>
<span class="m-2"> {{ $details['caw_name']}}</span><br>
@endforeach
</td>
{{-- <td class="text-center">
<a href="{{ route('report.laplelong',$bid['laporan']['lelong_id'],$details['caw_name']) }}" data-toggle="tooltip" data-placement="top" title="Senarai Lelong Keseluruhan" ><i class="fas fa-download"></i></a>
</td> --}}
</tr>
@endforeach
</tbody>
</table>
</form>
</div>
<div class="col">
<div class="card">
<div class="card-header header-style">
<div class="header-style-title">
Senarai Lelong Keseluruhan
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
{{ $message }}
</div>
@endif
<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%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $bid)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{ $bid['laporan']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $bid['laporan']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $bid['laporan']['fasa'] }}</td>
<td>
@foreach($bid['details'] as $details)
<a class="confirmrefresh btn m-1 btn-danger" href=" {{ route('report.laplelong', ['lelong_id'=>$bid['laporan']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong"><i class="fas fa-download"></i></a>
<span class="badge badge-pill badge-info text-white" style="font-size:100%"> {{ $details['caw_name']}}</span><br>
@endforeach
</td>
</tr>
@endforeach
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
@@ -3,58 +3,64 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<h3 class="pt-3" style="margin-left:1%;">Laporan Nama Pembida </h3>
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@endif
<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%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
{{-- <th class="text-center">Tindakan</th> --}}
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $bid)
<tr>
<td>{{$loop->iteration}}
<td>{{ $bid['laporan']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $bid['laporan']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $bid['laporan']['fasa']}}</td>
<td>
@foreach($bid['details'] as $details)
<a href=" {{ route('report.senarailapbidaan', ['lelong_id'=>$bid['laporan']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong"><i class="fas fa-download"></i></a>
<div class="col">
<div class="card">
<span class="m-2"> {{ $details['caw_name']}}</span><br>
<div class="card-header header-style">
<div class="header-style-title">
Senarai Keseluruhan Pembida
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
{{ $message }}
</div>
@endif
<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%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $bid)
<tr>
<td>{{$loop->iteration}}
<td>{{ $bid['laporan']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $bid['laporan']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $bid['laporan']['fasa']}}</td>
<td>
@foreach($bid['details'] as $details)
<a class="confirmrefresh btn m-1 btn-danger" href=" {{ route('report.senarailapbidaan', ['lelong_id'=>$bid['laporan']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong"><i class="fas fa-download"></i></a>
<span class="badge badge-pill badge-info text-white" style="font-size:100%"> {{ $details['caw_name']}}</span><br>
@endforeach
</td>
</tr>
@endforeach
</tbody>
@endforeach
</td>
{{-- <td class="text-center">
<a href="{{ route('report.senarailapbidaan',$bid['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Laporan Barang Lelong" ><i class="fas fa-download"></i></a>
</td> --}}
</tr>
@endforeach
</tbody>
</table>
</form>
</div>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
@@ -18,7 +18,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th class="text-center">Muat Turun</th>
+54 -49
View File
@@ -3,59 +3,65 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<h3 class="pt-3" style="margin-left:1%;">Laporan Barang Lelong </h3>
<div class="col">
<div class="card">
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
<div class="card-header header-style">
<div class="header-style-title">
Laporan Barang Lelong
</div>
</div>
@endif
<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%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
{{-- <th class="text-center">Muat Turun</th> --}}
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $laporan)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $laporan['laporan']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $laporan['laporan']['fasa']}}</td>
<td>
@foreach($laporan['details'] as $details)
<a href=" {{ route('report.senaraibrglelong', ['lelong_id'=>$laporan['laporan']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong"><i class="fas fa-download"></i></a>
<span class="m-2">{{ $details['caw_name']}}</span><br>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
{{ $message }}
</div>
@endif
<form id="exportform" action="" method="POST">
<input type="hidden" name="type" value="User">
<table class="table table-bordered text-center" id="tablenotislelong" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $laporan)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $laporan['laporan']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $laporan['laporan']['fasa']}}</td>
<td style="text-align: left">
@foreach($laporan['details'] as $details)
<a class="confirmrefresh btn m-1 btn-danger" href="{{ route('report.senaraibrglelong', ['lelong_id'=>$laporan['laporan']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Muat Turun"><i class="fas fa-download"></i></a>
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{ $details['caw_name']}}</span><br>
@endforeach
</td>
</tr>
@endforeach
</td>
</tbody>
{{-- <td class="text-center">
<a href="{{ route('report.senaraibrglelong',$laporan['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong" ><i class="fas fa-download"></i></a>
</td> --}}
</tr>
@endforeach
</tbody>
</table>
</form>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
@@ -64,7 +70,7 @@
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
var tablenotislelong = $('#tablenotislelong').DataTable({
var tablenotislelong = $('#tablenotislelong').DataTable({
"columnDefs": [
{
"targets": 0,
@@ -80,7 +86,6 @@
"lengthChange": false,
"pageLength": 15,
dom: 'Bfrtip',
});
@@ -10,7 +10,7 @@
<table cellspacing="2" cellpadding="3" text-align="left" border="0" height="25" align="left" id="sim" class="table table-striped table-xl">
<thead class="bg-light ">
<tr>
<td><b>ID Lelong: {{$lelong_id}}</b></td>
<td><b>Batch Lelong: {{$lelong_id}}</b></td>
@foreach ($info as $info)
<td><b>Tarikh Lelong : @php
$myDateTime = DateTime::createFromFormat('Y-m-d',$info->tarikh_lelong );
@@ -2,57 +2,60 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<h3 class="pt-3" style="margin-left:1%;">Senarai Lelong Tebus</h3>
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
<div class="row ">
<div class="col">
<div class="card">
<div class="card-header header-style">
<div class="header-style-title">
Senarai Lelong Tebus
</div>
</div>
@endif
<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%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
{{-- <th class="text-center">Muat Turun</th> --}}
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $info)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{ $info['laporan']['batch_no']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $info['laporan']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $info['laporan']['fasa'] }}</td>
<td>
@foreach($info['details'] as $details)
<a href=" {{ route('report.lelongtebus', ['lelong_id'=>$info['laporan']['id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong"><i class="fas fa-download"></i></a>
<span class="m-2"> {{ $details['caw_name']}}</span><br>
@endforeach
</td>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
{{ $message }}
</div>
@endif
{{-- <td class="text-center">
<a href="{{ route('report.lapbrglelpembida',$info['laporan']['lelong_id'],$details['caw_name']) }}" data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong Pembida" ><i class="fas fa-download"></i></a>
</td> --}}
</tr>
@endforeach
</tbody>
</table>
</form>
</div>
<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%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $info)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{ $info['laporan']['batch_no']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $info['laporan']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td>{{ $info['laporan']['fasa'] }}</td>
<td>
@foreach($info['details'] as $details)
<a class="confirmrefresh btn m-1 btn-danger" href=" {{ route('report.lelongtebus', ['lelong_id'=>$info['laporan']['id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Barang Lelong"><i class="fas fa-download"></i></a>
<span class="badge badge-pill badge-info text-white" style="font-size:100%"> {{ $details['caw_name']}}</span><br>
@endforeach
</td>
</tr>
@endforeach
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
@@ -8,10 +8,10 @@
<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>
<span class="pt-3" style="margin-left:1%; font-size:20px"><b>Senarai Lelong(Pindah ID Lelong)</b></span>
<span class="pt-3" style="margin-left:1%; font-size:20px"><b>Senarai Lelong(Pindah Batch Lelong)</b></span>
@foreach ($arrayinfo as $laporan)
<span class="pt-3" style="margin-left:1%;"><b>ID Lelong : {{ $laporan['laporan']['lelong_id']}}</b></span>
<span class="pt-3" style="margin-left:1%;"><b>Batch Lelong : {{ $laporan['laporan']['lelong_id']}}</b></span>
<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');
@@ -36,9 +36,9 @@
<input type="hidden" name="cawid" value="{{$cawid}}">
<div> Pindah Ke-</div>
<select class="js-states browser-default select2" name="lelongidbaru" required id="lelongidbaru">
<option value="option_select" disabled selected>SILA PILIH ID LELONG</option>
<option value="option_select" disabled selected>SILA PILIH BATCH LELONG</option>
@foreach($datapindah as $data)
<option value="{{ $data['id'] }}">ID Lelong:{{ $data['id']}} / Tarikh: {{ $data['tarikh_lelong']}} / Kali Ke-: {{ $data['kali']}}</option>
<option value="{{ $data['id'] }}">Batch Lelong:{{ $data['id']}} / Tarikh: {{ $data['tarikh_lelong']}} / Kali Ke-: {{ $data['kali']}}</option>
@endforeach
</select>
<button type="submit" class="btn btn-success">Pindah Lelong</button>
@@ -16,7 +16,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
+179 -190
View File
@@ -47,183 +47,187 @@
<div class="tab-content" style="overflow-x: auto;" id="myTabContent">
<div class="tab-pane fade show active" id="scan-keluar" role="tabpanel" aria-labelledby="scan-keluar-tab">
<table class="table table-bordered text-center" id="lelong-belum" style="width:100%;">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
<th>Harga Emas Asas</th>
<th>Tempoh</th>
<th>Caj Lelong</th>
<th>Status</th>
<th>Tindakan</th>
</tr>
</thead>
<tbody>
@foreach($arraydetails0 as $lelong)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$lelong->id}}</td>
<td style="white-space: nowrap;">{{$lelong->tarikh_lelong}}</td>
<td>{{$lelong->fasa}}</td>
<td>
@foreach($lelong->cawangan as $cawangan)
<div class="row m-1 justify-content-center">
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{$cawangan->caw_name}}</span>
</div>
@endforeach
</td>
<td>{{$lelong->harga_emas_asas}}</td>
<td>{{$lelong->jbg}}</td>
<td>{{$lelong->cajlelong}}</td>
<td><span class="badge badge-pill badge-info">LELONG BELUM MULA</span></td>
<td>
<div class="row justify-content-center">
<a class="btn m-1 btn-warning confirmrefresh" href="{{ route('lelong.kemaskinidata',$lelong->id) }}" title="Kemaskini Lelong"><i class="fas fa-sync-alt"></i></a>
<a class="btn m-1 btn-primary" href="{{ route('lelong.show',$lelong->id) }}" title="Butiran Lelong"><i class="far fa-edit"></i></a>
<a class="btn m-1 btn-danger confirmdel" href="{{ route('lelong.delete',$lelong->id) }}" title="Padam Lelong"><i class="far fa-trash-alt"></i></a>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
<div style="overflow-x: auto;">
<table class="table table-bordered text-center" id="lelong-belum">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
<th>Harga Emas Asas</th>
<th>Tempoh</th>
<th>Caj Lelong</th>
<th>Status</th>
<th>Tindakan</th>
</tr>
</thead>
<tbody>
@foreach($arraydetails0 as $lelong)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$lelong->id}}</td>
<td style="white-space: nowrap;">{{$lelong->tarikh_lelong}}</td>
<td>{{$lelong->fasa}}</td>
<td>
@foreach($lelong->cawangan as $cawangan)
<div class="row m-1 justify-content-center">
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{$cawangan->caw_name}}</span>
</div>
@endforeach
</td>
<td>{{$lelong->harga_emas_asas}}</td>
<td>{{$lelong->jbg}}</td>
<td>{{$lelong->cajlelong}}</td>
<td><span class="badge badge-pill badge-info">LELONG BELUM MULA</span></td>
<td style="white-space: nowrap;">
<a class="btn m-1 btn-warning confirmrefresh" href="{{ route('lelong.kemaskinidata',$lelong->id) }}" data-toggle="tooltip" data-placement="top" title="Kemaskini Lelong"><i class="fas fa-sync-alt"></i></a>
<a class="btn m-1 btn-primary" href="{{ route('lelong.show',$lelong->id) }}" data-toggle="tooltip" data-placement="top" title="Butiran Lelong"><i class="far fa-edit"></i></a>
<a class="btn m-1 btn-danger confirmdel" href="{{ route('lelong.delete',$lelong->id) }}" data-toggle="tooltip" data-placement="top" title="Padam Lelong"><i class="far fa-trash-alt"></i></a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<div class="tab-pane fade" id="sedang-lelong" role="tabpanel" aria-labelledby="sedang-keluar-tab">
<table class="table table-bordered text-center" id="lelong-sedang" style="width:100%;">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
<th>Masa Mula Lelong</th>
<th>Masa Tamat Lelong</th>
<th>Harga Emas Asas</th>
<th>Tempoh</th>
<th>Caj Lelong</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach($arraydetails1 as $lelong)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$lelong->id}}</td>
<td style="white-space: nowrap;">{{$lelong->tarikh_lelong}}</td>
<td>{{$lelong->fasa}}</td>
<td>
@foreach($lelong->cawangan as $cawangan)
<div class="row m-1 justify-content-center">
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{$cawangan->caw_name}}</span>
</div>
@endforeach
</td>
<td>{{$lelong->masamula_lelong}}</td>
<td>{{$lelong->masatamat_lelong}}</td>
<td>{{$lelong->harga_emas_asas}}</td>
<td>{{$lelong->jbg}}</td>
<td>{{$lelong->cajlelong}}</td>
<td><span class="badge badge-pill badge-warning">LELONG SEDANG DIJANLANKAN</span></td>
</tr>
@endforeach
</tbody>
</table>
<div style="overflow-x: auto;">
<table class="table table-bordered text-center" id="lelong-sedang">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
<th>Masa Mula Lelong</th>
<th>Masa Tamat Lelong</th>
<th>Harga Emas Asas</th>
<th>Tempoh</th>
<th>Caj Lelong</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach($arraydetails1 as $lelong)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$lelong->id}}</td>
<td style="white-space: nowrap;">{{$lelong->tarikh_lelong}}</td>
<td>{{$lelong->fasa}}</td>
<td>
@foreach($lelong->cawangan as $cawangan)
<div class="row m-1 justify-content-center">
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{$cawangan->caw_name}}</span>
</div>
@endforeach
</td>
<td>{{$lelong->masamula_lelong}}</td>
<td>{{$lelong->masatamat_lelong}}</td>
<td>{{$lelong->harga_emas_asas}}</td>
<td>{{$lelong->jbg}}</td>
<td>{{$lelong->cajlelong}}</td>
<td><span class="badge badge-pill badge-warning">LELONG SEDANG DIJANLANKAN</span></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<div class="tab-pane fade" id="jana-pemenang" role="tabpanel" aria-labelledby="jana-pemenang-tab">
<table class="table table-bordered text-center" id="lelong-selesai" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
<th>Masa Tamat Lelong</th>
<th>Harga Emas Asas</th>
<th>Tempoh</th>
<th>Caj Lelong</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach($arraydetails2 as $data)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$lelong->id}}</td>
<td style="white-space: nowrap;">{{$lelong->tarikh_lelong}}</td>
<td>{{$lelong->fasa}}</td>
<td>
@foreach($lelong->cawangan as $cawangan)
<div class="row m-1 justify-content-center">
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{$cawangan->caw_name}}</span>
</div>
@endforeach
</td>
<td>{{$lelong->masatamat_lelong}}</td>
<td>{{$lelong->harga_emas_asas}}</td>
<td>{{$lelong->jbg}}</td>
<td>{{$lelong->cajlelong}}</td>
<td><span class="badge badge-pill badge-dark">LELONG JANA PEMENANGAN</span></td>
</tr>
@endforeach
</tbody>
</table>
<div style="overflow-x: auto;">
<table class="table table-bordered text-center" id="lelong-selesai">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
<th>Masa Tamat Lelong</th>
<th>Harga Emas Asas</th>
<th>Tempoh</th>
<th>Caj Lelong</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach($arraydetails2 as $data)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$lelong->id}}</td>
<td style="white-space: nowrap;">{{$lelong->tarikh_lelong}}</td>
<td>{{$lelong->fasa}}</td>
<td>
@foreach($lelong->cawangan as $cawangan)
<div class="row m-1 justify-content-center">
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{$cawangan->caw_name}}</span>
</div>
@endforeach
</td>
<td>{{$lelong->masatamat_lelong}}</td>
<td>{{$lelong->harga_emas_asas}}</td>
<td>{{$lelong->jbg}}</td>
<td>{{$lelong->cajlelong}}</td>
<td><span class="badge badge-pill badge-dark">LELONG JANA PEMENANGAN</span></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<div class="tab-pane fade" id="scan-masuk" role="tabpanel" aria-labelledby="scan-masuk-tab">
<table class="table table-bordered text-center" id="lelong-jana-pemenang" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
<th>Masa Mula Lelong</th>
<th>Masa Tamat Lelong</th>
<th>Harga Emas Asas</th>
<th>Tempoh</th>
<th>Caj Lelong</th>
<th>Status</th>
<th>Tindakan</th>
</tr>
</thead>
<tbody>
@foreach($arraydetails3 as $lelong)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$lelong->id}}</td>
<td style="white-space: nowrap;">{{$lelong->tarikh_lelong}}</td>
<td>{{$lelong->fasa}}</td>
<td>
@foreach($lelong->cawangan as $cawangan)
<div class="row m-1 justify-content-center">
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{$cawangan->caw_name}}</span>
</div>
@endforeach
</td>
<td>{{$lelong->masamula_lelong}}</td>
<td>{{$lelong->masatamat_lelong}}</td>
<td>{{$lelong->harga_emas_asas}}</td>
<td>{{$lelong->jbg}}</td>
<td>{{$lelong->cajlelong}}</td>
<td><span class="badge badge-pill badge-success">LELONG SELESAI</span></td>
<td>
<a class="btn m-1 btn-info" href="{{ route('lelong.showsimulasi',$lelong->id) }}" title="Lihat Simulasi"><i class="far fa-edit"></i></a>
<a class="btn m-1 btn-warning" href="{{ route('lelong.showlelongdone',$lelong->id) }}" title="Lihat Senarai Lelong Selesai"><i class="far fa-calendar"></i></a>
<a class="btn m-1 btn-success" href="{{ route('lelong.exportDataByCawangan',$lelong->id) }}" title="Export Data"><i class="fas fa-file-export"></i></a>
</td>
</tr>
@endforeach
</tbody>
</table>
<div style="overflow-x: auto;">
<table class="table table-bordered text-center" id="lelong-jana-pemenang">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
<th>Masa Mula Lelong</th>
<th>Masa Tamat Lelong</th>
<th>Harga Emas Asas</th>
<th>Tempoh</th>
<th>Caj Lelong</th>
<th>Status</th>
<th>Tindakan</th>
</tr>
</thead>
<tbody>
@foreach($arraydetails3 as $lelong)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$lelong->id}}</td>
<td style="white-space: nowrap;">{{$lelong->tarikh_lelong}}</td>
<td>{{$lelong->fasa}}</td>
<td>
@foreach($lelong->cawangan as $cawangan)
<div class="row m-1 justify-content-center">
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{$cawangan->caw_name}}</span>
</div>
@endforeach
</td>
<td>{{$lelong->masamula_lelong}}</td>
<td>{{$lelong->masatamat_lelong}}</td>
<td>{{$lelong->harga_emas_asas}}</td>
<td>{{$lelong->jbg}}</td>
<td>{{$lelong->cajlelong}}</td>
<td><span class="badge badge-pill badge-success">LELONG SELESAI</span></td>
<td style="white-space: nowrap;">
<a class="btn m-1 btn-info" href="{{ route('lelong.showsimulasi',$lelong->id) }}" data-toggle="tooltip" data-placement="top" title="Lihat Simulasi"><i class="far fa-edit"></i></a>
<a class="btn m-1 btn-warning" href="{{ route('lelong.showlelongdone',$lelong->id) }}" data-toggle="tooltip" data-placement="top" title="Lihat Senarai Lelong Selesai"><i class="far fa-calendar"></i></a>
<a class="btn m-1 btn-success" href="{{ route('lelong.exportDataByCawangan',$lelong->id) }}" data-toggle="tooltip" data-placement="top" title="Export Data"><i class="fas fa-file-export"></i></a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@@ -306,34 +310,19 @@
$('.export').removeClass('dt-button');
var tableLelongSemasa = $('#lelong-semasa').DataTable({
"pageLength": 5000,
"paging": false,
"searching": false,
"info": false
"pageLength": 100,
});
var tableLelongSedang = $('#lelong-sedang').DataTable({
"pageLength": 5000,
"paging": false,
"searching": false,
"info": false
"pageLength": 100,
});
var tableLelongBelum = $('#lelong-belum').DataTable({
"pageLength": 5000,
"paging": false,
"searching": false,
"info": false
"pageLength": 100,
});
var tableLelongJanaPemenang = $('#lelong-jana-pemenang').DataTable({
"pageLength": 5000,
"paging": false,
"searching": false,
"info": false
"pageLength": 100,
});
var tableLelongSelesai = $('#lelong-selesai').DataTable({
"pageLength": 5000,
"paging": false,
"searching": false,
"info": false
"pageLength": 100,
});
</script>
@@ -23,7 +23,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
@@ -16,7 +16,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
@@ -16,7 +16,7 @@
<thead class="bg-light ">
@foreach ($arrayinfo as $laporan)
<tr>
<td><b>ID Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
<td><b>Batch Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
<td><b>Fasa Lelong: {{ $laporan['laporan']['fasa']}} <b></td>
<td><b>Tarikh Lelong : @php
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
@@ -13,7 +13,7 @@
<thead class="bg-light ">
@foreach ($arrayinfo as $laporan)
<tr>
<td><b>ID Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
<td><b>Batch Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
<td><b>Fasa Lelong: {{ $laporan['laporan']['fasa']}} <b></td>
<td><b>Tarikh Lelong : @php
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
@@ -17,7 +17,7 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Nama</th>
<th>No Kad Pengenalan</th>
<th>No Telefon</th>
@@ -7,12 +7,12 @@
<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>
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@endif
</div>
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@endif
<div class="container">
<div class="row mb-2">
<div class="col-md-12 mx-auto card p-4" style="margin-top:2%; margin-bottom:2%;">
+194 -126
View File
@@ -2,90 +2,179 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<nav>
<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="row">
<div class="col">
<div class="card">
<div class="card-header header-style">
<a href="{{ route('lelong.senarailelong') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
@php
$today = date('d-m-Y');
$kemaskini = date('d-m-Y', strtotime($tarikhkemaskini->updated_at));
$myDateTime = DateTime::createFromFormat('Y-m-d', $data['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
@endphp
butiran lelong : {{$t_lelong}}
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
{{ $message }}
</div>
@endif
<nav>
<div class="nav mb-3 nav-tabs" id="nav-tab" role="tablist">
<a class="nav-link active" id="nav-simulasi-tab" data-toggle="tab" href="#nav-simulasi" role="tab" aria-controls="nav-simulasi" aria-selected="true">Lelong</a>
<a class="nav-link" id="nav-hargaasas-tab" data-toggle="tab" href="#nav-hargaasas" role="tab" aria-controls="nav-hargaasas" aria-selected="false">Harga Emas Asas</a>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-simulasi" role="tabpanel" aria-labelledby="nav-simulasi-tab">
<br>
@if ($message = Session::get('success'))
<div class="alert alert-success">
{{ $message }}
</div>
@endif
<form id="exportform" action="{{route('lelong.exportlelong')}}" 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-5">
<table class="table table-striped table-xl" id="conclusion" style="width:100%">
<tr>
<td>Bilangan Lelong : {{$total_marhun}}</td>
</tr>
<tr>
<td>Nilai Marhun Keseluruhan : RM{{ number_format($total_nilaimarhun, 2, '.', ',') }}</td>
</tr>
<tr>
<td>Pembiayaan Keseluruhan : RM{{ number_format($total_pinjaman, 2, '.', ',') }}</td>
</tr>
<tr>
<td>Keuntungan Keseluruhan : RM{{ number_format($total_bakiupah, 2, '.', ',') }}</td>
</tr>
<tr>
<td>Tarikh Lelong :
@php
$today = date('d-m-Y');
$kemaskini = date('d-m-Y', strtotime($tarikhkemaskini->updated_at));
$myDateTime = DateTime::createFromFormat('Y-m-d', $data['tarikh_lelong'] );
$datez = $myDateTime->format('d-m-Y');
echo($datez);
@endphp
</td>
</tr>
</table>
<div class="row">
<div class="col-md-12 col-lg">
<div class="form-group row">
<label class="col-6 col-form-label">Tarikh Lelong</label>
<div class="col-6">
<div class="input-group">
<input type="text" readonly class="form-control bg-light" value="{{$t_lelong}}">
</div>
</div>
</div>
<div class="col-md-2"></div>
<div class="col-md-5">
<div class=""></div>
<table class="table table-striped table-xl" id="conclusion2" style="width:100%">
<td>
{{-- {{dd($kemaskini)}} --}}
@if($kemaskini == $today)
<button class="btn btn-success btn-sm" disabled>Telah Dikemaskini Pada {{date('d-m-Y', strtotime($tarikhkemaskini->updated_at))}}</button> <br>
Harga Emas Per Gram (916) : RM{{$tarikhkemaskini->harga2}}
@else
<button class="btn btn-danger btn-sm" disabled>Harga Emas Lelong Belum Dikemaskini Hari Ini</button> <br>
Harga Emas Per Gram (916) : RM{{$tarikhkemaskini->harga2}}
@endif
</td>
<tr>
<td>Rugi Lelong Keseluruhan : -RM{{ number_format($total_rugilelong, 2, '.', ',') }}</td>
</tr>
<tr>
<td>Baki Lelong Keseluruhan : RM{{ number_format($total_bakilelong, 2, '.', ',') }}</td>
</tr>
<tr>
<td>Caj Lelong Keseluruhan : RM{{ number_format($total_cazlelong, 2, '.', ',') }}</td>
</tr>
<tr>
<td>Tempoh : {{$data['jbg'] }}</td>
</tr>
</table>
<div class="form-group row">
<label class="col-6 col-form-label">JBG</label>
<div class="col-6">
<div class="input-group">
<input type="text" readonly class="form-control bg-light" value="{{$data['jbg']}}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Bilangan SAG</label>
<div class="col-6">
<div class="input-group">
<input type="text" readonly class="form-control bg-light" value="{{$total_marhun}}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Harga Emas Per Gram</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{$lelong->harga_emas_asas}}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Nilai Marhun Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_nilaimarhun, 2, '.', ',') }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Pembiayaan Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_pinjaman, 2, '.', ',') }}">
</div>
</div>
</div>
</div>
<table class="table table-striped table-xl" id="simulasi" style="width:100%">
<thead class="bg-primary text-white">
<div class="col-lg-1"></div>
<div class="col-md-12 col-lg">
<div class="form-group row">
<div class="col-6">
<div class="input-group">
@if($kemaskini == $today)
<button class="btn btn-success btn-sm" disabled>Harga Telah Dikemaskini Pada {{date('d-m-Y', strtotime($tarikhkemaskini->updated_at))}}</button>
{{-- Harga Emas Per Gram (916) : RM{{$simulasi->harga_emas_asas}} --}}
@else
<button class="btn btn-danger btn-sm" disabled>Harga Emas Lelong Belum Dikemaskini Hari Ini</button>
{{-- <strong>Harga Emas Per Gram (916) : RM{{$tarikhkemaskini->harga2}}</strong> --}}
@endif
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Keuntungan Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_bakiupah, 2, '.', ',') }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Harga Asas Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_hargaasas, 2, '.', ',') }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Caj Lelong Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_cazlelong, 2, '.', ',') }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Baki Lelong Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_bakilelong, 2, '.', ',') }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Rugi Lelong Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_rugilelong, 2, '.', ',') }}">
</div>
</div>
</div>
</div>
</div>
<button class="btn mb-5 btn-outline-success" type="submit">Muat Turun PDF</button>
<div style="overflow-x: auto;">
<table class="table text-right table-bordered" id="simulasi">
<thead class="bg-primary text-center text-white">
<tr class="text-center">
<th>No</th>
<th>Cawangan</th>
@@ -134,20 +223,23 @@
</tfoot>
</table>
<table class="table table-striped table-xl" id="jumlahberat" style="width:80%">
<thead class="bg-primary text-white">
<tr class="text-center">
</div>
<h6 class="mt-5">Jumlah Berat Mengikut Mutu (Keseluruhan)</h6>
<div style="overflow-x: auto;">
<table width="50%" class="table table-bordered text-center" id="jumlahberat">
<thead class="bg-light">
<!-- <tr class="text-center">
<th colspan="12">JUMLAH BERAT MENGIKUT MUTU (KESELURUHAN)</th>
</tr> -->
<tr>
<th>MUTU</th>
@foreach ($lelkarat as $index=>$karat)
<th>{{$karat->karat}}</th>
@endforeach
</tr>
</thead>
<tbody>
<tr>
<td>MUTU</td>
@foreach ($lelkarat as $index=>$karat)
<td>{{$karat->karat}}</td>
@endforeach
</tr>
<tr>
<td>BERAT (gm)</td>
<td>{{$total24Kgb}}</td>
@@ -160,12 +252,12 @@
<td>{{$total18K}}</td>
<td>{{$total14Kp}}</td>
<td>{{$total14K}}</td>
{{-- <td>{{$total9K}}</td> --}}
</tr>
</tbody>
</table>
</div>
</form>
<div class="row">
<div class="text-center">
@@ -177,13 +269,13 @@
<br>
<div class="row ">
<div class="col-md-10 mx-auto ">
<button class="btn btn-primary float-right " onclick="kemaskini()" id="btnkemaskini" >Kemaskini</button>
<button class="btn btn-primary float-right " onclick="kemaskini()" id="btnkemaskini" >Ubah</button>
<div id="hideform">
<label for="hargaasas" class="d-inline float-left pr-2 pl-2 pt-2" id="lblhargaasas">Harga Emas Per Gram (916)</label>
<input type="text" class="form-control col-md-4 d-inline float-left" id="txthargaasas" name="hargaasas" placeholder="RM" data-jeniskarat="{{$jeniskarat}}" oninput="calculate(this)">
<button class="btn btn-success float-right" onclick="save()" id="btnsimpan">Simpan</button>
<button class="btn btn-danger float-right" onclick="kemaskini()" id="btncancel">Cancel</button>
<label for="hargaasas" class="d-inline float-left pr-2 pl-2 pt-2" id="lblhargaasas">Harga Emas Per Gram (916) RM</label>
<input type="text" class="form-control col-md-4 d-inline float-left" id="txthargaasas" name="hargaasas" placeholder="" data-jeniskarat="{{$jeniskarat}}" oninput="calculate(this)">
<button class="btn btn-success float-right" onclick="save()" id="btnsimpan">Kemaskini</button>
<button class="btn btn-danger float-right" onclick="kemaskini()" id="btncancel">Batal</button>
</div>
</div>
@@ -194,7 +286,7 @@
<form action="{{ route('lelong.kemaskinihargaasas') }}" method="POST" id="formhargaasas">
@csrf
<input type="hidden" name="idlelong" value="{{$lelong_id}}">
<table class="table table-striped table-xl" id="kemaskinikarat" style="width:100%" >
<table class="table table-bordered" id="kemaskinikarat" style="width:100%" >
<thead class="bg-primary text-white">
<tr class="text-center">
<th>Karat</th>
@@ -359,7 +451,7 @@
}
$('a.confirmdel').confirm({
title: 'Confirmation',
title: 'Pengesahan',
content: 'Anda pasti?',
type: 'orange',
typeAnimated: true,
@@ -377,42 +469,18 @@
}
});
var tablesimulasi = $('#simulasi').DataTable( {
"columnDefs": [
{
"targets": 0,
"orderable": false
}
],
"scrollX": true,
order: [[0, 'asc']],
// "ordering": false,
"searching":false,
"info": false,
"lengthChange": false,
"pageLength": 9999,
dom: 'Bfrtip',
buttons: [
// 'copy', 'excel', 'pdf'
// { text: 'copy', className: 'btn btn-primary' },
// {
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm addsim',
// text: '<i class="fas fa-filter"></i>',
// titleAttr: 'Filter By',
// action: function ( e, dt, node, config ) {
// $('#modalfilter').modal("show");
// }
// },
{
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
titleAttr: 'Muat Turun PDF',
text: '<h8><b>PDF</b></h8>',
action: function ( e, dt, node, config ) {
$("#exportform").submit();
}
}
]
});
var tablesimulasi = $('#simulasi').DataTable({
"pageLength": 50,
});
var tableJumlahBerat = $('#jumlahberat').DataTable({
"info": false,
"paging": false,
"searching": false,
"ordering": false
});
$('.addsim').tooltip();
$('.export').tooltip();
@@ -71,7 +71,7 @@
<th>No</th>
<th>T.Lelong</th>
<th>Cawangan</th>
<th>Bil Marhun (Paket)</th>
<th>Bil SAG</th>
<th>Berat (gm)</th>
<th>N. Marhun (RM)</th>
<th>Pembiayaan (RM)</th>
@@ -71,7 +71,7 @@
<th>No</th>
<th>T.Lelong</th>
<th>Cawangan</th>
<th>Bil Marhun (Paket)</th>
<th>Bil SAG</th>
<th>Berat (gm)</th>
<th>N. Marhun (RM)</th>
<th>Pembiayaan (RM)</th>
+194 -154
View File
@@ -4,95 +4,174 @@
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<nav>
<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>
<a class="nav-link active" id="nav-simulasi-tab" data-toggle="tab" href="#nav-simulasi" role="tab" aria-controls="nav-simulasi" aria-selected="true">Lelong</a>
<a class="nav-link" id="nav-hargaasas-tab" data-toggle="tab" href="#nav-hargaasas" role="tab" aria-controls="nav-hargaasas" aria-selected="false">Harga Emas Asas</a>
<div class="card-header header-style">
<a href="{{ route('jananotis.senarailelongpc') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
@foreach($data as $data1)
@php
$today = date('d-m-Y');
$kemaskini = date('d-m-Y', strtotime($tarikhkemaskini->updated_at));
$myDateTime = DateTime::createFromFormat('Y-m-d', $data1['tarikh_lelong'] );
$datez = $myDateTime->format('d-m-Y');
@endphp
@endforeach
butiran lelong : {{$datez}}
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-simulasi" role="tabpanel" aria-labelledby="nav-simulasi-tab">
<br>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
<div class="alert alert-success">
{{ $message }}
</div>
@endif
<form id="exportform" action="{{route('lelong.exportlelong')}}" method="POST">
<form id="exportform" action="{{route('lelong.exportlelongdone')}}" 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-5">
<table class="table table-striped table-xl" id="conclusion" style="width:100%">
<tr>
<td>Bilangan Lelong : {{$total_marhun}}</td>
</tr>
<tr>
<td>Nilai Marhun Keseluruhan : RM{{ number_format($total_nilaimarhun, 2, '.', ',') }}</td>
</tr>
<tr>
<td>Pembiayaan Keseluruhan : RM{{ number_format($total_pinjaman, 2, '.', ',') }}</td>
</tr>
<tr>
<td>Keuntungan Keseluruhan : RM{{ number_format($total_bakiupah, 2, '.', ',') }}</td>
</tr>
<tr>
<div class="row">
<div class="col-md-12 col-lg">
{{-- <div class="form-group row">
<label class="col-6 col-form-label">Tarikh Lelong</label>
<div class="col-6">
<div class="input-group">
@foreach($data as $data1)
<td>Tarikh Lelong :
@php
$today = date('d-m-Y');
$kemaskini = date('d-m-Y', strtotime($tarikhkemaskini->updated_at));
$myDateTime = DateTime::createFromFormat('Y-m-d', $data1['tarikh_lelong'] );
$datez = $myDateTime->format('d-m-Y');
echo($datez);
// echo($datez);
@endphp
</td>
@endforeach
</tr>
</table>
</div>
<div class="col-md-2"></div>
<div class="col-md-5">
<table class="table table-striped table-xl" id="conclusion2" style="width:100%">
<td>
{{-- {{dd($kemaskini)}} --}}
@if($kemaskini == $today)
<button class="btn btn-success btn-sm" disabled>Telah Dikemaskini Pada {{date('d-m-Y', strtotime($tarikhkemaskini->updated_at))}}</button> <br>
Harga Emas Per Gram (916) : RM{{$tarikhkemaskini->harga2}}
@else
<button class="btn btn-danger btn-sm" disabled>Harga Emas Lelong Belum Dikemaskini Hari Ini</button> <br>
Harga Emas Per Gram (916) : RM{{$tarikhkemaskini->harga2}}
@endif
</td>
<tr>
<td>Rugi Lelong Keseluruhan : -RM{{ number_format($total_rugilelong, 2, '.', ',') }}</td>
</tr>
<tr>
<td>Baki Lelong Keseluruhan : RM{{ number_format($total_bakilelong, 2, '.', ',') }}</td>
</tr>
<tr>
<td>Caj Lelong Keseluruhan : RM{{ number_format($total_cazlelong, 2, '.', ',') }}</td>
</tr>
<tr>
<input type="text" readonly class="form-control bg-light" value="{{$datez}}">
</div>
</div>
</div> --}}
<div class="form-group row">
<label class="col-6 col-form-label">JBG</label>
<div class="col-6">
<div class="input-group">
@foreach($data as $data)
<td>Tempoh : {{$data['jbg'] }}</td>
{{-- <td>Tempoh : {{$data['jbg'] }}</td> --}}
<input type="text" readonly class="form-control bg-light" value="{{$data['jbg']}}">
@endforeach
</tr>
</table>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Bilangan SAG</label>
<div class="col-6">
<div class="input-group">
<input type="text" readonly class="form-control bg-light" value="{{$total_marhun}}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Harga Emas Per Gram</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{$tarikhkemaskini->harga2}}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Nilai Marhun Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_nilaimarhun, 2, '.', ',') }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Pembiayaan Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_pinjaman, 2, '.', ',') }}">
</div>
</div>
</div>
</div>
<div class="col-lg-1"></div>
<div class="col-md-12 col-lg">
<div class="form-group row">
<label class="col-6 col-form-label">Keuntungan Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_bakiupah, 2, '.', ',') }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Harga Asas Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_hargaasas, 2, '.', ',') }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Caj Lelong Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_cazlelong, 2, '.', ',') }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Baki Lelong Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_bakilelong, 2, '.', ',') }}">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-6 col-form-label">Rugi Lelong Keseluruhan</label>
<div class="col-6">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">RM</div>
</div>
<input type="text" readonly class="form-control bg-light" value="(RM{{ number_format($total_rugilelong, 2, '.', ',') }})">
</div>
</div>
</div>
</div>
</div>
<table class="table table-striped table-xl" id="simulasi" style="width:100%">
<button class="btn mb-5 btn-outline-success" type="submit">Muat Turun PDF</button>
<table class="table text-right table-bordered" id="simulasi">
<thead class="bg-primary text-white">
<tr class="text-center">
<th>No</th>
<th>Cawangan</th>
<th>Bil Marhun (Paket)</th>
<th>Bil SAG</th>
<th>Berat (gm)</th>
<th>N. Marhun (RM)</th>
<th>Pembiayaan (RM)</th>
@@ -108,49 +187,51 @@
@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 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>
<td align = 'right'>{{ number_format($caw['pinjaman'], 2, '.', ',') }}</td>
<td align = 'right'>{{ number_format($caw['bakiupah'], 2, '.', ',') }}</td>
<td align = 'right'> {{ number_format($caw['hargaasas'], 2, '.', ',') }}</td>
<td align = 'right'>{{ number_format($caw['cajlelong'], 2, '.', ',') }}</td>
<td align = 'right'>{{ number_format($caw['bakilelong'], 2, '.', ',') }}</td>
<td align = 'right'>({{ number_format($caw['rugilelong'], 2, '.', ',') }})</td>
<td><a href=" {{ route('jananotis.senaraimarhunpc',['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>
<td>{{ number_format($caw['pinjaman'], 2, '.', ',') }}</td>
<td>{{ number_format($caw['bakiupah'], 2, '.', ',') }}</td>
<td>{{ number_format($caw['hargaasas'], 2, '.', ',') }}</td>
<td>{{ number_format($caw['cajlelong'], 2, '.', ',') }}</td>
<td>{{ number_format($caw['bakilelong'], 2, '.', ',') }}</td>
<td>({{ number_format($caw['rugilelong'], 2, '.', ',') }})</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td colspan="2"><b>JUMLAH KESELURUHAN</b></td>
<td align = 'center'>{{ $total_marhun }}</td>
<td align = 'right'>{{ number_format($total_berat, 2, '.', ',') }}</td>
<td align = 'right'>{{ number_format($total_nilaimarhun, 2, '.', ',') }}</td>
<td align = 'right'>{{ number_format($total_pinjaman, 2, '.', ',') }}</td>
<td align = 'right'>{{ number_format($total_bakiupah, 2, '.', ',') }}</td>
<td align = 'right'>{{ number_format($total_hargaasas, 2, '.', ',') }}</td>
<td align = 'right'>{{ number_format($total_cazlelong, 2, '.', ',') }}</td>
<td align = 'right'>{{ number_format($total_bakilelong, 2, '.', ',') }}</td>
<td align = 'right'>({{ number_format($total_rugilelong, 2, '.', ',') }})</td>
<td><b>{{ $total_marhun }}</b></td>
<td><b>{{ number_format($total_berat, 2, '.', ',') }}</b></td>
<td><b>{{ number_format($total_nilaimarhun, 2, '.', ',') }}</b></td>
<td><b>{{ number_format($total_pinjaman, 2, '.', ',') }}</b></td>
<td><b>{{ number_format($total_bakiupah, 2, '.', ',') }}</b></td>
<td><b>{{ number_format($total_hargaasas, 2, '.', ',') }}</b></td>
<td><b>{{ number_format($total_cazlelong, 2, '.', ',') }}</b></td>
<td><b>{{ number_format($total_bakilelong, 2, '.', ',') }}</b></td>
<td><b>({{ number_format($total_rugilelong, 2, '.', ',') }})</b></td>
</tr>
</tfoot>
</table>
<table class="table table-striped table-xl" id="jumlahberat" style="width:80%">
<thead class="bg-primary text-white">
<tr class="text-center">
<th colspan="12">JUMLAH BERAT MENGIKUT MUTU (KESELURUHAN)</th>
<h6 class="mt-5">Jumlah Berat Mengikut Mutu (Keseluruhan)</h6>
<table class="table table-bordered text-center" id="jumlahberat">
<thead class="bg-light">
<!-- <tr class="text-center">
<th colspan="12">JUMLAH BERAT MENGIKUT MUTU (KESELURUHAN)</th>
</tr> -->
<tr>
<th>MUTU</th>
@foreach ($lelkarat as $index=>$karat)
<th>{{$karat->karat}}</th>
@endforeach
</tr>
</thead>
<tbody>
<tr>
<td>MUTU</td>
@foreach ($lelkarat as $index=>$karat)
<td>{{$karat->karat}}</td>
@endforeach
</tr>
<tr>
<td>BERAT (gm)</td>
<td>{{$total24Kgb}}</td>
@@ -163,11 +244,10 @@
<td>{{$total18K}}</td>
<td>{{$total14Kp}}</td>
<td>{{$total14K}}</td>
{{-- <td>{{$total9K}}</td> --}}
</tr>
</tbody>
</table>
</form>
<div class="row">
@@ -183,7 +263,7 @@
<button class="btn btn-primary float-right " onclick="kemaskini()" id="btnkemaskini" >Kemaskini</button>
<div id="hideform">
<label for="hargaasas" class="d-inline float-left pr-2 pl-2 pt-2" id="lblhargaasas">Harga Emas Per Gram (916)</label>
<label for="hargaasas" class="d-inline float-left pr-2 pl-2 pt-2" id="lblhargaasas">Harga Emas Asas</label>
<input type="text" class="form-control col-md-4 d-inline float-left" id="txthargaasas" name="hargaasas" placeholder="RM" data-jeniskarat="{{$jeniskarat}}" oninput="calculate(this)">
<button class="btn btn-success float-right" onclick="save()" id="btnsimpan">Simpan</button>
<button class="btn btn-danger float-right" onclick="kemaskini()" id="btncancel">Cancel</button>
@@ -191,36 +271,7 @@
</div>
</div>
<div class="row ">
<div class="col-md-10 mx-auto">
<form action="{{ route('lelong.kemaskinihargaasas') }}" method="POST" id="formhargaasas">
@csrf
<input type="hidden" name="idlelong" value="{{$lelong_id}}">
<table class="table table-striped table-xl" id="kemaskinikarat" style="width:100%" >
<thead class="bg-primary text-white">
<tr class="text-center">
<th>Karat</th>
<th>Keterangan</th>
<th>Harga</th>
{{-- <th>Harga</th> --}}
</tr>
</thead>
<tbody class="text-center">
@foreach ($lelkarat as $index=>$karat)
<tr>
<td>{{$karat->karat}}</td>
<td>{{$karat->keterangan}}</td>
<td class="input">{{$karat->harga2}}</td>
{{-- <td class="input">{{$karat->harga}}</td> --}}
</tr>
@endforeach
</tbody>
</table>
</form>
</div>
</div>
{{-- <a class="btn btn-primary" href="{{ route('lelong.kemaskinihargaasas',$lelong_id) }}">Kemaskini</a> --}}
@@ -377,41 +428,30 @@
}
});
var tablesimulasi = $('#simulasi').DataTable( {
var tablesimulasi = $('#simulasi').DataTable( {
"columnDefs": [
{
"targets": 0,
"orderable": false
"orderable": false,
"width": 100%
}
],
order: [[0, 'asc']],
// "ordering": false,
"searching":false,
"searching":true,
"info": false,
"lengthChange": false,
"pageLength": 9999,
dom: 'Bfrtip',
buttons: [
// 'copy', 'excel', 'pdf'
// { text: 'copy', className: 'btn btn-primary' },
// {
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm addsim',
// text: '<i class="fas fa-filter"></i>',
// titleAttr: 'Filter By',
// action: function ( e, dt, node, config ) {
// $('#modalfilter').modal("show");
// }
// },
{
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
titleAttr: 'Muat Turun PDF',
text: '<h8><b>PDF</b></h8>',
action: function ( e, dt, node, config ) {
$("#exportform").submit();
}
}
]
});
"scrollX": true,
"paging": false,
});
var tableJumlahBerat = $('#jumlahberat').DataTable({
"scrollX": true,
"info": false,
"paging": false,
"searching": false,
"ordering": false
});
$('.addsim').tooltip();
$('.export').tooltip();
+3 -3
View File
@@ -31,7 +31,7 @@
<th>Pilih</th>
<th>No</th>
<th>Cawangan</th>
<th>Bil Marhun (Paket)</th>
<th>Bil SAG</th>
<th>Berat (gm)</th>
<th>Nilai Marhun (RM)</th>
<th>Pembiayaan (RM)</th>
@@ -64,9 +64,9 @@
<div> Pindah Ke-</div>
<select class="js-states browser-default select2" name="lelong_id" required id="lelong_id">
<option value="option_select" disabled selected>SILA PILIH ID LELONG</option>
<option value="option_select" disabled selected>SILA PILIH BATCH LELONG</option>
@foreach($datapindah as $data)
<option value="{{ $data['id'] }}">ID Lelong:{{ $data['id']}} / {{ $data['tarikh_lelong']}}</option>
<option value="{{ $data['id'] }}">Batch Lelong:{{ $data['id']}} / {{ $data['tarikh_lelong']}}</option>
@endforeach
</select>
<button type="submit" class="btn btn-success">Pindah Lelong</button>
@@ -38,7 +38,7 @@
</div>
</div>
<div class="form-group row">
<label for="jbg" class="col-sm-2 col-form-label">ID Lelong Asal</label>
<label for="jbg" class="col-sm-2 col-form-label">Batch Lelong Asal</label>
<div class="col-sm-2">
{{$lelong_id}}
</div>
@@ -49,7 +49,7 @@
<!-- <th>Pilih</th> -->
<th>No</th>
<th>Cawangan</th>
<th>Bil Marhun (Paket)</th>
<th>Bil SAG</th>
<th>Berat (gm)</th>
<th>Nilai Marhun (RM)</th>
<th>Pembiayaan (RM)</th>
@@ -86,7 +86,7 @@
</div>
</div>
<div class="form-group row">
<label for="jbg" class="col-sm-2 col-form-label">ID Lelong Baru</label>
<label for="jbg" class="col-sm-2 col-form-label">Batch Lelong Baru</label>
<div class="col-sm-2">
<input type="text" class="form-control" id="lelongidbaru" name="lelongidbaru" value = "{{$idlelongbaru}}" readonly>
@@ -37,7 +37,7 @@
</div>
</div>
<div class="form-group row">
<label for="jbg" class="col-sm-2 col-form-label">ID Lelong Asal</label>
<label for="jbg" class="col-sm-2 col-form-label">Batch Lelong Asal</label>
<div class="col-sm-2">
{{$lelong_id}}
</div>
@@ -48,7 +48,7 @@
<th>Pilih</th>
<th>No</th>
<th>Cawangan</th>
<th>Bil Marhun (Paket)</th>
<th>Bil SAG</th>
<th>Berat (gm)</th>
<th>Nilai Marhun (RM)</th>
<th>Pembiayaan (RM)</th>
@@ -85,7 +85,7 @@
</div>
</div>
<div class="form-group row">
<label for="jbg" class="col-sm-2 col-form-label">ID Lelong Baru</label>
<label for="jbg" class="col-sm-2 col-form-label">Batch Lelong Baru</label>
<div class="col-sm-2">
<input type="text" class="form-control" id="lelongidbaru" name="lelongidbaru" value = "{{$idlelongbaru}}" readonly>
@@ -16,7 +16,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
+1 -1
View File
@@ -19,7 +19,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th class="text-center">Muat Turun</th>
+1 -1
View File
@@ -19,7 +19,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th class="text-center">Muat Turun</th>
@@ -19,7 +19,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th class="text-center">Muat Turun</th>
@@ -19,7 +19,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th class="text-center">Muat Turun</th>
@@ -16,7 +16,7 @@
<thead class="bg-light ">
@foreach ($arrayinfo as $laporan)
<tr>
<td><b>ID Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
<td><b>Batch Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
<td><b>Fasa Lelong: {{ $laporan['laporan']['fasa']}} <b></td>
<td><b>Tarikh Lelong : @php
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
@@ -19,7 +19,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th class="text-center">Muat Turun</th>
@@ -18,7 +18,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th class="text-center">Muat Turun</th>
@@ -15,7 +15,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>ID Lelong</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
@@ -16,7 +16,7 @@
<thead class="bg-light ">
@foreach ($arrayinfo as $laporan)
<tr>
<td><b>ID Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
<td><b>Batch Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
<td><b>Fasa Lelong: {{ $laporan['laporan']['fasa']}} <b></td>
<td><b>Tarikh Lelong : @php
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
@@ -16,7 +16,7 @@
<thead class="bg-light ">
@foreach ($arrayinfo as $laporan)
<tr>
<td><b>ID Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
<td><b>Batch Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
<td><b>Fasa Lelong: {{ $laporan['laporan']['fasa']}} <b></td>
<td><b>Tarikh Lelong : @php
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
@@ -92,7 +92,7 @@
<tr class="text-center">
<th>No</th>
<th>Cawangan</th>
<th>Bil Marhun (Paket)</th>
<th>Bil SAG</th>
<th>Berat (gm)</th>
<th>N. Marhun (RM)</th>
<th>Pembiayaan (RM)</th>
@@ -26,7 +26,7 @@
<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 ">
<tr>
<td><b>ID Lelong: {{$lelongbid->lelong_id}} <b></td>
<td><b>Batch Lelong: {{$lelongbid->lelong_id}} <b></td>
<input type="hidden" class="form-control" id="lelong_id" name="lelong_id" value = "{{$lelongbid->lelong_id}}">
<input type="hidden" class="form-control" id="cawid" name="cawid" value = "{{$cawanganid->id}}">
<td><b>No.Rujukan: {{$norujukan}}</b></td>
@@ -0,0 +1,419 @@
@extends('layouts.app')
@section('content')
<env name="TELESCOPE_ENABLED" value="false"/>
<div class="container-fluid">
<div class="row ">
<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">
Perubahan Semakan Marhun
</div>
</div>
<div class="card-body">
<form action="{{ route('pengesahan.terimaperubahan') }}" method="POST" id="formmutumarhun">
@csrf
<input type="hidden" name="norujukan" value="{{ $norujukan }}" />
<input type="hidden" name="lelong_id" value="{{ $id }}" />
<input type="hidden" name="lelongbid_id" value="{{ $lelongbid['id'] }}" />
<input type="hidden" name="jenis_button" value="terima" id="jenis_button" />
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@endif
<div class="container">
{{-- <a href="{{ route('pengesahan.perubahanmutumarhun', $id) }}" class="btn btn-primary">Kembali</a> --}}
<div class="row">
<div class="col-6 col-sm-4">
<p> <b>No Rujukan : </b> {{ $lelongbid->norujukan }}</p>
<p> <b>Tempoh : </b> {{ $lelongbid->jbg }}</p>
<p> <b>Kod Cawangan : </b> {{ $lelongbid->kodcaw }}</p>
</div>
<div class="col-6 col-sm-4">
<p> <b>Harga Asas(RM) : </b>{{ number_format($marhuns[0]['totalnewhargaasas'], 2, '.', ',') }}</p>
<p> <b>Pembiayaan(RM) : </b> {{ number_format($marhuns[0]['pembiayaan'], 2, '.', ',') }}</p>
<p> <b>Keuntungan(RM) : </b> {{ number_format($marhuns[0]['bakiupah'], 2, '.', ',') }}</p>
{{-- <p> <b>Caj Lelong(RM) : </b> {{ number_format($marhuns[0]['cajlelong'], 2, '.', ',') }}</p>
<p> <b>Baki Lelong(RM) : </b>{{ number_format($marhuns[0]['baki_lelong'], 2, '.', ',') }}</p>
<p> <b>Rugi Lelong(RM) : </b>{{ number_format($marhuns[0]['rugi_lelong'], 2, '.', ',') }}</p> --}}
</div>
<div class="col-6 col-sm-4">
{{-- <p> <b>Hargaasas(RM) : </b>{{ number_format($marhuns[0]['totalnewhargaasas'], 2, '.', ',') }}</p>
<p> <b>Pembiayaan(RM) : </b> {{ number_format($marhuns[0]['pembiayaan'], 2, '.', ',') }}</p>
<p> <b>Keuntungan(RM) : </b> {{ number_format($marhuns[0]['bakiupah'], 2, '.', ',') }}</p> --}}
<p> <b>Caj Lelong(RM) : </b> {{ number_format($marhuns[0]['cajlelong'], 2, '.', ',') }}</p>
<p> <b>Baki Lelong(RM) : </b>{{ number_format($marhuns[0]['baki_lelong'], 2, '.', ',') }}</p>
<p> <b>Rugi Lelong(RM) : </b>{{ number_format($marhuns[0]['rugi_lelong'], 2, '.', ',') }}</p>
</div>
</div>
</div>
<table class='table text-center table-bordered table-hover' id="tablemutumarhun" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>Marhun</th>
<th>Karat </th>
<th>Berat (gm)</th>
{{-- <th>Harga Gadai (RM)/gm</th> --}}
<th>Harga Lelong p/gm</th>
<th>N. Marhun Asal</th>
{{-- <th>N. Marhun Lelong</th> --}}
<th>Harga Asas</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@php $sumhargaasas = 0 @endphp
@foreach($arraylelbidmarhun as $index1=>$detail)
{{-- {{dd($detail[0]['marhun'])}} --}}
<tr>
<td>{{ $loop->iteration }}</td>
<td>
@if(empty($detail[0]['status_ubah']['status_ubah']))
{{ $detail[0]['old_marhun'] }}
@elseif(!empty($detail[0]['status_ubah']['status_ubah']))
@if($detail[0]['status_ubah']['request_marhun'] == NULL)
{{ $detail[0]['old_marhun'] }}
@elseif($detail[0]['old_marhun'] != $detail[0]['status_ubah']['request_marhun'])
{{ $detail[0]['old_marhun'] }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i>{{ $detail[0]['status_ubah']['request_marhun'] }}
@elseif($detail[0]['old_marhun'] == $detail[0]['status_ubah']['request_marhun'])
{{ $detail[0]['old_marhun'] }}
@else
{{ $detail[0]['old_marhun'] }}
@endif
@endif
{{-- {{ $detail[0]['status_ubah'] }} --}}
</td>
<td class="col-2">
@if(empty($detail[0]['status_ubah']['status_ubah']))
{{ $detail[0]['old_karat'] }}
@elseif(!empty($detail[0]['status_ubah']['status_ubah']))
@if($detail[0]['status_ubah']['request_karat'] == NULL)
{{ $detail[0]['old_karat'] }}
@elseif($detail[0]['old_karat'] != $detail[0]['status_ubah']['request_karat'])
{{ $detail[0]['old_karat'] }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> {{ $detail[0]['status_ubah']['request_karat'] }}
@elseif($detail[0]['old_karat'] == $detail[0]['status_ubah']['request_karat'])
{{ $detail[0]['old_karat'] }}
@endif
@endif
{{-- {{ $detail[0]['karat'] }} --}}
</td>
<td class="col-2">
@if(empty($detail[0]['status_ubah']['status_ubah']))
{{ $detail[0]['old_berat'] }}
@elseif(!empty($detail[0]['status_ubah']['status_ubah']))
@if($detail[0]['status_ubah']['request_berat'] == NULL)
{{ $detail[0]['old_berat'] }}
@elseif($detail[0]['old_berat'] != $detail[0]['status_ubah']['request_berat'])
{{ $detail[0]['old_berat'] }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> {{ $detail[0]['status_ubah']['request_berat'] }}
@elseif($detail[0]['old_berat'] == $detail[0]['status_ubah']['request_berat'])
{{ $detail[0]['old_berat'] }}
@endif
@endif
{{-- {{ $detail[0]['berat'] }} --}}
</td>
{{-- <td>
@if(empty($gadai[$index1]['harga']))
-
@elseif(!empty($gadai[$index1]['harga']))
{{ number_format ($gadai[$index1]['harga'], 2, '.', ',') }}
@endif
</td> --}}
<td>
{{-- {{dd($detail[0]['karatnew']['harga2'])}} --}}
@if(empty($detail[0]['status_ubah']['status_ubah']))
{{number_format($detail[0]['harga'], 2, '.', ',') }}
@elseif(!empty($detail[0]['status_ubah']['status_ubah']))
@if($detail[0]['status_ubah']['status_ubah'] == 8)
{{-- {{ number_format($detail[0]['old_harga'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{number_format($detail[0]['karatnew']['harga2'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 9)
{{-- {{ number_format($detail[0]['old_harga'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{number_format($detail[0]['karatnew']['harga2'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 10)
{{-- {{ number_format($detail[0]['old_harga'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{number_format($detail[0]['harga'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 5)
{{-- {{ number_format($detail[0]['old_harga'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{number_format($detail[0]['karatnew']['harga2'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 1)
{{-- {{ number_format($detail[0]['old_harga'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{number_format($detail[0]['karatnew']['harga2'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 4)
{{-- {{ number_format($detail[0]['old_harga'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{number_format($detail[0]['harga'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 7)
{{number_format($detail[0]['harga'], 2, '.', ',') }}
@else
{{number_format($detail[0]['harga'], 2, '.', ',') }}
@endif
@endif
</td>
<td>@if(empty($gadai[$index1]['n_marhun']))
-
@elseif(!empty($gadai[$index1]['n_marhun']))
{{ number_format($gadai[$index1]['n_marhun'], 2, '.', ',') }}
@endif
</td>
<td>
{{-- {{dd($detail[0]['karatnew']['harga2'])}} --}}
@if(empty($detail[0]['status_ubah']['status_ubah']))
{{ number_format($detail[0]['hargaasas'], 2, '.', ',') }}
@elseif(!empty($detail[0]['status_ubah']['status_ubah']))
@if($detail[0]['status_ubah']['status_ubah'] == 8)
{{-- @php
$newhargaasas = bcdiv($detail[0]['status_ubah']['request_berat'] * $detail[0]['karatnew']['harga2'], 1);
@endphp --}}
{{-- {{ number_format($detail[0]['old_hargaasas'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{ number_format($detail[0]['newhargaasas'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 9)
{{-- {{ number_format($detail[0]['old_hargaasas'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{ number_format($detail[0]['newhargaasas'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 10)
{{-- {{ number_format($detail[0]['old_hargaasas'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{ number_format($detail[0]['newhargaasas'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 5)
{{-- {{ number_format($detail[0]['old_hargaasas'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{ number_format($detail[0]['newhargaasas'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 1)
{{-- {{ number_format($detail[0]['old_hargaasas'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{ number_format($detail[0]['newhargaasas'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 4)
{{-- {{ number_format($detail[0]['old_hargaasas'], 2, '.', ',') }} <i class="btn fa fa-arrow-right" aria-hidden="true"></i> --}}
{{ number_format($detail[0]['newhargaasas'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 7)
{{ number_format($detail[0]['newhargaasas'], 2, '.', ',') }}
@elseif($detail[0]['status_ubah']['status_ubah'] == 3)
{{ number_format($detail[0]['old_hargaasas'], 2, '.', ',') }}
@else
{{ number_format($detail[0]['newhargaasas'], 2, '.', ',') }}
@endif
@endif
</td>
<td>
{{-- {{dd($detail[$index1]['status_ubah']['status_ubah'])}} --}}
@if(empty($detail[0]['status_ubah']['status_ubah']))
<button class="btn btn-info btn-sm hovernone-info" disabled>TIADA PERUBAHAN</button>
@elseif(!empty($detail[0]['status_ubah']['status_ubah']))
@if($detail[0]['status_ubah']['status_ubah'] == 8)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PERUBAHAN MUTU,BERAT & MARHUN</button>
@elseif($detail[0]['status_ubah']['status_ubah']== 10)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PERUBAHAN BERAT & MARHUN</button>
@elseif($detail[0]['status_ubah']['status_ubah']== 9)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PERUBAHAN MUTU & MARHUN</button>
@elseif($detail[0]['status_ubah']['status_ubah']== 5)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PERUBAHAN MUTU & BERAT</button>
@elseif($detail[0]['status_ubah']['status_ubah']== 1)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PERUBAHAN MUTU</button>
@elseif($detail[0]['status_ubah']['status_ubah']== 4)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PERUBAHAN BERAT</button>
@elseif($detail[0]['status_ubah']['status_ubah']== 7)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PERUBAHAN MARHUN</button>
@elseif($detail[0]['status_ubah']['status_ubah']== 3)
<button class="btn btn-danger btn-sm hovernone-danger" disabled>MOHON HAPUS MARHUN</button>
@elseif($detail[0]['status_ubah']['status_ubah']== 2)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PENAMBAHAN MARHUN</button>
@else
<button class="btn btn-warning btn-sm hovernone-warning" disabled>TIADA PERUBAHAN</button>
@endif
@endif
</td>
{{-- <td>
@if(isset($detail[0]['status_ubah']['status_ubah']) == 1)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PERUBAHAN MUTU</button>
@elseif(isset($detail[0]['status_ubah']['status_ubah']) == 2)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PENAMBAHAN MARHUN</button>
@elseif(isset($detail[0]['status_ubah']['status_ubah'])== 3)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PENGHAPUSAN MARHUN</button>
@elseif(isset($detail[0]['status_ubah']['status_ubah']) == 4)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PENGURANGAN BERAT</button>
@elseif(isset($detail[0]['status_ubah']['status_ubah']) == 5)
<button class="btn btn-warning btn-sm hovernone-warning" disabled>PENGURANGAN MUTU & BERAT</button>
@else
<button class="btn btn-warning btn-sm hovernone-warning" disabled>TIADA PERUBAHAN</button>
@endif
</td> --}}
</tr>
{{-- @php $sumhargaasas += $newhargaasas @endphp --}}
{{-- {{ $sumhargaasas }} --}}
@endforeach
</tbody>
</table>
<div class="modal-footer" style="margin-top:2%;">
{{-- <button type="button" class="btn btn-danger" onclick="functerima(this)" id="tidaksah" >Tidak Sah</button> --}}
{{-- <button type="button" class="btn btn-success" onclick="functerima(this)" id="terima" >Sahkan</button> --}}
</div>
</form>
</div>
<div class="modal fade" data-backdrop="static" tabindex="-1" id="modalremark">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Tangguh Lelong</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form action="{{ route('pengesahan.terimaperubahan') }}" method="POST" id="formremark">
@csrf
<input type="hidden" name="norujukan" value="{{ $norujukan }}" />
<input type="hidden" name="kodcaw" value="{{ $lelongbid->kodcaw }}" />
<input type="hidden" name="lelong_id" value="{{ $id }}" />
<input type="hidden" name="lelongbid_id" value="{{ $lelongbid->id }}" />
<input type="hidden" name="jenis_button" value="tangguhlelong" id="jenis_button" />
<div class="form-group">
<label for="message-text" class="col-form-label" style="font-color:red;* "><b>Sila Pilih Sebab Tangguh Lelong:</b></label>
<br>
<br>
<input type="radio" checked onclick="selectRugiBesar()" id="mutu" name="nota" value="Perubahan Mutu Tinggi">
<label for="mutu">Perubahan Mutu Tinggi</label><br>
<input type="radio" onclick="selectRugiBesar()" id="berat" name="nota" value="Perubahan Berat Besar">
<label for="berat">Perubahan Berat Besar</label><br>
<input type="radio" onclick="selectRugiBesar()" id="rugi" name="nota" value="Rugi Besar">
<label for="rugi">Rugi Besar</label><br>
<input type="radio" name="nota" onclick="selectLain()">
<label for="lainlain">Lain-lain</label><br>
<textarea class="form-control" name="nota" disabled id="lainlain" style="width: 100%;" rows="3"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" style="width:15%;" onclick="selectRugiBesar()" data-dismiss="modal">Batal</button>
<button type="button" class="btn btn-primary" style="width:15%;" onclick="submit(this)">Sahkan</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
function selectLain() {
$("#lainlain").attr("disabled", false);
}
function selectRugiBesar() {
$("#lainlain").attr("disabled", true);
$("#lainlain").val("");
}
//Enable tooltips everywhere
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
function functerima(e){
let jenis=event.target.id;
if(jenis == "terima")
{
$('#jenis_button').val(jenis);
$("#formmutumarhun").submit();
}
else if(jenis == "tangguhlelong")
{
$('#jenis_button').val(jenis);
$('#modalremark').modal('show');
let idmarhun = $(e).data('idmarhun');
let norujukan = $(e).data('norujukan');
$('#idmarhun').val(idmarhun);
$('#norujukan').val(norujukan);
console.log(idmarhun, norujukan);
// $("#formmutumarhun").submit();
}
else if(jenis == "tidaksah")
{
$('#jenis_button').val(jenis);
$("#formmutumarhun").submit();
}
}
function submit(e)
{
let idmarhun = $(e).data('idmarhun');
let norujukan = $(e).data('norujukan');
$('#idmarhun').val(idmarhun);
$('#norujukan').val(norujukan);
$("#formremark").submit();
}
var tablemutumarhun = $('#tablemutumarhun').DataTable( {
"columnDefs": [
{
"targets": 0,
"orderable": false
},
{
"targets": 9,
"orderable": true
}
],
order: [[0, 'asc']],
// "ordering": false,
"info": false,
"lengthChange": false,
// "pageLength": 15,
"paginate" : false,
// dom: 'Bfrtip',
// buttons: [
// // 'copy', 'excel', 'pdf'
// // { text: 'copy', className: 'btn btn-primary' },
// {
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm addsim',
// text: '<i class="fas fa-plus" id="test"></i>',
// titleAttr: 'Tambah Simulasi',
// action: function ( e, dt, node, config ) {
// alert( 'Button activated' );
// }
// },
// {
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
// titleAttr: 'Export to CSV',
// text: '<i class="fas fa-download"></i>',
// action: function ( e, dt, node, config ) {
// $("#exportform").submit();
// }
// }
// ]
});
// $('.addsim').tooltip();
// $('.export').tooltip();
// // $( '.dt-buttons').addClass('btn-group');
// $( '.addsim').removeClass('dt-button');
// $( '.export').removeClass('dt-button');
// function selectall(cb) {
// tablemutumarhun.rows().nodes().to$().find('input[type="checkbox"]').each(function(){
// $(this).prop('checked', cb.checked);
// })
// }
</script>
@endsection
+181 -166
View File
@@ -20,87 +20,88 @@
@include('marhun.partials.camera_modals')
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<div class="row">
<a href=" {{ route('marhun.senaraimarhun', ['lelong_id' => $lelongbid->lelong_id]) }}"
class="btn ml-3 btn-secondary">Kembali</a>
</div>
@if ($message = Session::get('success'))
<div class="alert mt-2 alert-success">
<p>{{ $message }}</p>
<div class="container-fluid">
<div class="row ">
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header header-style">
<a href=" {{ route('marhun.senaraimarhun', ['lelong_id'=>$lelongbid->lelong_id]) }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
No Rujukan : {{ $lelongbid->norujukan }}
</div>
</div>
@endif
<form id="deletePhoto" action="{{ route('marhun.deletephotomarhun') }}" method="POST">
@csrf
<input type="hidden" id="filemarhun_id" name="filemarhun_id" value="">
<input type="hidden" name="lelongbid_id" value="{{ $lelongbid['id'] }}">
<input type="hidden" name="lelong_id" value="{{ $lelongbid['lelong_id'] }}">
</form>
<form id="formdelete" action="{{ route('marhun.submitdelete') }}" method="POST">
@csrf
<input type="hidden" name="type" value="User">
<input type="hidden" name="lelongbidmarhun_id" id="lelongbidmarhun_id">
<input type="hidden" name="lelongbid_id" id="lelongbid_id">
</form>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert mt-2 alert-success">
<p>{{ $message }}</p>
</div>
@endif
<form id="deletePhoto" action="{{route('marhun.deletephotomarhun')}}" method="POST">
@csrf
<input type="hidden" id="filemarhun_id" name="filemarhun_id" value="">
<input type="hidden" name="lelongbid_id" value="{{ $lelongbid['id'] }}">
<input type="hidden" name="lelong_id" value="{{ $lelongbid['lelong_id'] }}">
</form>
<form id="formdelete" action="{{ route('marhun.submitdelete') }}" method="POST">
@csrf
<input type="hidden" name="type" value="User">
<input type="hidden" name="lelongbidmarhun_id" id="lelongbidmarhun_id" >
<input type="hidden" name="lelongbid_id" id="lelongbid_id">
</form>
<form id="formsemak" action="{{ route('marhun.semak', [$lelongbid, $lelong_id]) }}" method="GET">
<input type="hidden" name="type" value="User">
<input type="hidden" name="lelongbidmarhun_id" id="lelongbidmarhun_id">
<input type="hidden" name="lelongbid_id" id="lelongbid_id">
</form>
<br>
<h4> No Rujukan : <td>{{ $lelongbid->norujukan }}</td>
</h4>
<div class="row justify-content-center">
<div class="col-6">
<div class="card">
<div class="card-header">Keseluruhan Marhun</div>
<div class="card-body" style="align-self: center; justify-content: center;">
@if ($lelongbid['filemarhun_filename'] != null)
<button type="button" data-toggle="modal" onclick="kesulurahanMarhunData(this)"
data-lelongid="{{ $lelongbid['lelong_id'] }}"
data-lelongbidid="{{ $lelongbid['id'] }}"
data-fileid="{{ $lelongbid['filemarhun_id'] }}" data-target="#modaloverallphoto">
<img src="{{ route('marhun.showphotomarhun', ['lelong_id' => $lelongbid['lelong_id'], 'filemarhun_id' => $lelongbid['filemarhun_id']]) }}"
alt="Image Preview" style="max-width:300px; border: 1px solid #dee2e6" />
</button>
@else
<p>Tiada Data</p>
<button type="button" data-toggle="modal" data-target="#modaloverallphoto">Muat Naik
Gambar</button>
<button type="button" onclick="modalOverallPhotoCapture.initiateTakeMarhunPhoto()">
Ambil Gambar
</button>
@endif
</div>
<form id="formsemak" action="{{ route('marhun.semak', [ $lelongbid, $lelong_id ]) }}" method="GET">
<input type="hidden" name="type" value="User">
<input type="hidden" name="lelongbidmarhun_id" id="lelongbidmarhun_id">
<input type="hidden" name="lelongbid_id" id="lelongbid_id">
</form>
<br>
{{-- <h4> No Rujukan : <td>{{ $lelongbid->norujukan }}</td>
</h4> --}}
<div class="row justify-content-center">
<div class="col-6">
<div class="card">
<div class="card-header">Keseluruhan Marhun</div>
<div class="card-body" style="align-self: center; justify-content: center;">
@if ($lelongbid['filemarhun_filename'] != null)
<button type="button" data-toggle="modal" onclick="kesulurahanMarhunData(this)" data-lelongid="{{$lelongbid['lelong_id']}}" data-lelongbidid="{{$lelongbid['id']}}" data-fileid="{{ $lelongbid['filemarhun_id'] }}" data-target="#modaloverallphoto">
<img src="{{ route('marhun.showphotomarhun', ['lelong_id' => $lelongbid['lelong_id'], 'filemarhun_id' => $lelongbid['filemarhun_id']]) }}" width="100%">
</button>
@else
<p>Tiada Data</p>
<button type="button" data-toggle="modal" data-target="#modaloverallphoto">Muat Naik Gambar</button>
<button
data-dismiss="modal"
onclick="modalOverallPhotoCapture.initiateTakeMarhunPhoto()" type="button"
>Ambil Gambar Baru
</button>
@endif
</div>
</div>
</div>
<br>
<table class="table table-striped table-xl" id="marhun" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th class="text-center">Barang</th>
<th>Gambar</th>
<th>Marhun</th>
<th>Karat</th>
<th>Berat</th>
<th>Harga(RM)</th>
<th>Nilai Marhun</th>
<th>Harga Asas</th>
<th>Nota</th>
<th class="text-center">Tindakan</th>
</tr>
</thead>
<tbody>
@foreach ($marhun as $item)
<tr>
<td class="text-center"> {{ $loop->iteration }} </td>
<td class="p-2 m-2" style="border: 1px solid black; width: 100px; height: 130px">
</div>
<br>
<table class='table table-bordered table-hover' id="marhun" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th class="text-center">Barang</th>
<th>Gambar</th>
<th>Marhun</th>
<th>Karat</th>
<th>Berat</th>
<th>Harga(RM)</th>
<th>Nilai Marhun</th>
<th>Harga Asas</th>
<th>Nota</th>
<th class="text-center">Tindakan</th>
</tr>
</thead>
<tbody>
@foreach ($marhun as $item)
<tr>
<td class="text-center"> {{ $loop->iteration }} </td>
<td class="p-2 m-2" style="border: 1px solid black; width: 100px; height: 130px">
@if (empty($item->eachmarhun_filename))
<div class="btn-group" role="group" style="width: 100%;">
<button data-toggle="modal" onclick="eachMarhunData(this)"
@@ -143,98 +144,112 @@
</td>
<td>{{ $item->marhun }}</td>
<td>
@if ($item->karat != null)
{{ $item->karat }}
@else
{{ $item->old_karat }}
<td>{{ $item->marhun }}</td>
<td>
@if($item->karat != null)
{{ $item->karat }}
@else
{{ $item->old_karat }}
@endif
</td>
<td>
@if($item->berat != null)
{{ $item->berat }}
@else
{{ $item->old_berat }}
@endif
</td>
<td>
@if($item->harga != null)
{{ $item->harga }}
@else
{{ $item->old_harga }}
@endif
</td>
<td>
@if($item->n_marhun != null)
{{ number_format($item->n_marhun, 2, '.', ',') }}
@else
{{ number_format($item->old_nmarhun, 2, '.', ',') }}
@endif
</td>
<td>
@if($item->hargaasas != null)
{{ number_format($item->hargaasas, 2, '.', ',') }}
@else
{{ number_format($item->old_hargaasas, 2, '.', ',') }}
@endif
</td>
<td>{{ $item->nota }}</td>
<td class="text-center">
@if($lelongbid->status_semak == 1)
<span class="badge badge-success">Telah Semak<br></span>
@elseif($lelongbid->status_semak == 0)
@if(isset($item->pengesahan['status']))
@if($item->pengesahan['status_ubah'] == 1 )
<a href="{{ route('marhun.lihatubahmutumarhun', ['norujukan'=>$lelongbid->norujukan, $lelong_id]) }}"><span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Mutu</i></span></a>
@elseif($item->pengesahan['status_ubah'] == 2)
<a href="{{ route('marhun.lihatubahmutumarhun', ['norujukan'=>$lelongbid->norujukan, $lelong_id]) }}"><span class="badge badge-warning">Tunggu Pengesahan<br><i>Tambah Marhun</i></span></a>
@elseif($item->pengesahan['status_ubah'] == 3)
<a href="{{ route('marhun.lihatubahmutumarhun', ['norujukan'=>$lelongbid->norujukan, $lelong_id]) }}"><span class="badge badge-warning">Tunggu Pengesahan<br><i>Hapus Marhun</i></span></a>
@elseif($item->pengesahan['status_ubah'] == 4)
<a href="{{ route('marhun.lihatubahmutumarhun', ['norujukan'=>$lelongbid->norujukan, $lelong_id]) }}"><span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Berat</i></span></a>
@elseif($item->pengesahan['status_ubah'] == 5)
<a href="{{ route('marhun.lihatubahmutumarhun', ['norujukan'=>$lelongbid->norujukan, $lelong_id]) }}"><span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Mutu & Berat</i></span></a>
@elseif($item->pengesahan['status_ubah'] == 7)
<a href="{{ route('marhun.lihatubahmutumarhun', ['norujukan'=>$lelongbid->norujukan, $lelong_id]) }}"><span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Marhun</i></span></a>
@elseif($item->pengesahan['status_ubah'] == 8)
<a href="{{ route('marhun.lihatubahmutumarhun', ['norujukan'=>$lelongbid->norujukan, $lelong_id]) }}"><span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Mutu, Berat & Marhun</i></span></a>
@elseif($item->pengesahan['status_ubah'] == 9)
<a href="{{ route('marhun.lihatubahmutumarhun', ['norujukan'=>$lelongbid->norujukan, $lelong_id]) }}"><span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Mutu & Marhun</i></span></a>
@elseif($item->pengesahan['status_ubah'] == 10)
<a href="{{ route('marhun.lihatubahmutumarhun', ['norujukan'=>$lelongbid->norujukan, $lelong_id]) }}"><span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Berat & Marhun</i></span></a>
@elseif($item->pengesahan['status'] == 1)
<span class="badge badge-warning">Telah Sah</i></span>
@endif
</td>
<td>
@if ($item->berat != null)
{{ $item->berat }}
@else
{{ $item->old_berat }}
@endif
</td>
<td>
@if ($item->harga != null)
{{ $item->harga }}
@else
{{ $item->old_harga }}
@endif
</td>
<td>
@if ($item->n_marhun != null)
{{ number_format($item->n_marhun, 2, '.', ',') }}
@else
{{ number_format($item->old_nmarhun, 2, '.', ',') }}
@endif
</td>
<td>
@if ($item->hargaasas != null)
{{ number_format($item->hargaasas, 2, '.', ',') }}
@else
{{ number_format($item->old_hargaasas, 2, '.', ',') }}
@endif
</td>
<td>{{ $item->nota }}</td>
<td class="text-center">
@if ($lelongbid->status_semak == 1)
@elseif(isset($item->pengesahan))
@if ($item->pengesahan['status_ubah'] == 1)
<span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Mutu</i></span>
@elseif($item->pengesahan['status_ubah'] == 2)
<span class="badge badge-warning">Tunggu Pengesahan<br><i>Tambah
Marhun</i></span>
@elseif($item->pengesahan['status_ubah'] == 3)
<span class="badge badge-warning">Tunggu Pengesahan<br><i>Hapus
Marhun</i></span>
@elseif($item->pengesahan['status_ubah'] == 4)
<span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Berat</i></span>
@elseif($item->pengesahan['status_ubah'] == 5)
<span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Mutu &
Berat</i></span>
@elseif($item->pengesahan['status_ubah'] == 7)
<span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah
Marhun</i></span>
@elseif($item->pengesahan['status_ubah'] == 8)
<span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Mutu, Berat &
Marhun</i></span>
@elseif($item->pengesahan['status_ubah'] == 9)
<span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Mutu &
Marhun</i></span>
@elseif($item->pengesahan['status_ubah'] == 10)
<span class="badge badge-warning">Tunggu Pengesahan<br><i>Ubah Berat &
Marhun</i></span>
@endif
@else
<a onclick="kemaskini(this)" data-idmarhun="{{ $item->id }}"
data-marhun="{{ $item->marhun }}" data-karat="{{ $item->karat }}"
data-berat="{{ $item->berat }}" data-harga="{{ $item->harga }}"
data-nmarhun="{{ $item->n_marhun }}" data-hargaasas="{{ $item->hargaasas }}"
data-nota="{{ $item->nota }}" data-toggle="tooltip" data-placement="top"
title="Kemaskini Marhun" style="margin-right:30px"><i
class="far fa-edit"></i></a>
<a class="confirmdel" id="btndelete" data-lelongbidmarhun="{{ $item->id }}"
data-lelongbid="{{ $item->lelongbid_id }}" data-toggle="tooltip"
data-placement="top" title="Padam Marhun"><i
class="far fa-trash-alt"></i></a>
@endif
</td>
</tr>
@endforeach
</tbody>
@else
<a class="btn m-1 btn-primary" onclick="kemaskini(this)" data-idmarhun="{{ $item->id }}" data-marhun="{{ $item->marhun }}" data-karat="{{ $item->karat }}" data-berat="{{ $item->berat }}" data-harga="{{ $item->harga }}" data-nmarhun="{{ $item->n_marhun }}" data-hargaasas="{{ $item->hargaasas }}" data-nota="{{ $item->nota }}" data-toggle="tooltip" data-placement="top" title="Kemaskini Marhun" style="margin-right:30px"><i class="far fa-edit"></i></a>
@endif
</table>
<div class="modal-footer" style="margin-top:2%;">
@if ($lelongbid->status_semak == 0)
<button style="width:7%;" class="btn btn-success" onclick="confirm()">Semak</button>
@elseif($lelongbid->status_semak == 1)
<button class="btn btn-success btn-sm hovernone-success" disabled>SUDAH DISEMAK</button>
@endif
</div>
@else
<a class="btn m-1 btn-primary" onclick="kemaskini(this)" data-idmarhun="{{ $item->id }}" data-marhun="{{ $item->marhun }}" data-karat="{{ $item->karat }}" data-berat="{{ $item->berat }}" data-harga="{{ $item->harga }}" data-nmarhun="{{ $item->n_marhun }}" data-hargaasas="{{ $item->hargaasas }}" data-nota="{{ $item->nota }}" data-toggle="tooltip" data-placement="top" title="Kemaskini Marhun" style="margin-right:30px"><i class="far fa-edit"></i></a>
{{-- <a class="confirmdel" id="btndelete" data-lelongbidmarhun="{{ $item->id }}" data-lelongbid="{{ $item->lelongbid_id }}" data-toggle="tooltip" data-placement="top" title="Padam Marhun"><i class="far fa-trash-alt"></i></a> --}}
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="modal-footer" style="margin-top:2%;">
{{-- {{dump($status['status'])}} --}}
@if($lelongbid->status_semak == 0)
@if(isset($status['status']))
@if($status['status'] == 0)
<button style="width:20%;" class="btn btn-warning">Dalam Proses Pengesahan</button>
@elseif($status['status'] == 1)
<button style="width:7%;" class="btn btn-info" >Telah Sah</button>
@else
<button style="width:7%;" class="btn btn-success" onclick="confirm()">Semak1/button>
@endif
@else
<button style="width:7%;" class="btn btn-success" onclick="confirm()">Semak</button>
@endif
{{-- <button style="width:7%;" class="btn btn-warning">Dalam Proses Pengesahan</button> --}}
@elseif($lelongbid->status_semak == 1)
<button class="btn btn-success btn-sm hovernone-success" disabled>SUDAH DISEMAK</button>
@endif
</div>
</div>
</div>
</div>
+18 -9
View File
@@ -3,9 +3,16 @@
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto p-4">
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header">Scan Barcode</div>
<div class="card-header header-style">
<a href="{{ route('marhun.senarailelongscan') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Scan Barcode Keluar
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert mt-2 alert-success">
@@ -16,7 +23,8 @@
{{ $message }}
</div>
@endif
<a class="btn btn-secondary mb-1" href="{{route('marhun.senarailelongscan')}}">Kembali</a>
{{-- <a class="btn btn-secondary mb-1" href="{{route('marhun.senarailelongscan')}}">Kembali</a>
<a class="btn btn-primary" href="{{route('marhun.scanbarcodemasuk',$lelong_id )}}">Senarai SAG Keluar Peti Besi</a> --}}
<p>Tarikh Lelong:
@php
@@ -30,9 +38,9 @@
<li class="nav-item">
<a class="nav-link active" id="scan-keluar-tab" data-toggle="tab" href="#scan-keluar" role="tab" aria-controls="scan-keluar" aria-selected="false">Senarai SAG Akan Dilelong</a>
</li>
<li class="nav-item">
{{-- <li class="nav-item">
<a class="nav-link" id="scan-masuk-tab" data-toggle="tab" href="#scan-masuk" role="tab" aria-controls="scan-masuk" aria-selected="false">Senarai SAG Keluar/Masuk Peti Besi</a>
</li>
</li> --}}
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="scan-keluar" role="tabpanel" aria-labelledby="scan-keluar-tab">
@@ -47,8 +55,9 @@
</form>
</div>
</div>
<table class='table table-bordered table-hover' id='table-scan-keluar'>
<div style="text-align: left;"> <a href="{{ route('marhun.cetakkeluarscanbarcode', $lelong_id) }}" class="btn btn-info">Laporan Keluar Semasa</a>
<table class="table text-right table-bordered" id='table-scan-keluar'>
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
@@ -71,7 +80,7 @@
</tbody>
</table>
</div>
<div class="tab-pane fade" id="scan-masuk" role="tabpanel" aria-labelledby="scan-masuk-tab">
{{-- <div class="tab-pane fade" id="scan-masuk" role="tabpanel" aria-labelledby="scan-masuk-tab">
<div class="row justify-content-center mb-4">
<div class="col-5">
<form action="{{ route('marhun.scanmasukmarhun') }}" method="POST">
@@ -110,7 +119,7 @@
</table>
</div>
</div> --}}
</div>
</div>
</div>
@@ -0,0 +1,98 @@
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header header-style">
<a href="{{ route('marhun.senarailelongscan') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Scan Barcode Masuk
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert mt-2 alert-success">
{{ $message }}
</div>
@elseif ($message = Session::get('failed'))
<div class="alert mt-2 alert-danger">
{{ $message }}
</div>
@endif
{{-- <a class="btn btn-secondary mb-1" href="{{route('marhun.senarailelongscan')}}">Kembali</a>
<a class="btn btn-primary" href="{{route('marhun.scanbarcode',$lelong_id)}}">Senarai SAG Masuk Peti Besi</a> --}}
<p>Tarikh Lelong:
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $lelongDetail['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp
</p>
<ul class="nav mb-2 nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="scan-masuk-tab" data-toggle="tab" href="#scan-masuk" role="tab" aria-controls="scan-masuk" aria-selected="false">Senarai SAG Keluar/Masuk Peti Besi</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="scan-masuk" role="tabpanel" aria-labelledby="scan-masuk-tab">
<div class="row justify-content-center mb-4">
<div class="col-5">
<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="hidden" name="lelong_id" value="{{$lelong_id}}">
</form>
</div>
</div>
<div style="text-align: left;">
<a href="{{ route('marhun.cetakmasukscanbarcode', $lelong_id) }}" class="btn btn-info">Laporan Masuk Semasa</a></div>
<table class="table table-bordered table-hover" id="table-scan-masuk" style="width: 100%;">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>No Rujukan</th>
<th>Status</th>
<th>Tarikh/Masa Scan Keluar</th>
<th>Tarikh/Masa Terima Marhun</th>
<th>Tarikh/Masa Serah Marhun</th>
</tr>
</thead>
<tbody>
@foreach ($senaraiScanKeluar as $index)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$index->norujukan}}</td>
<td><span class="badge badge-pill badge-danger">Berada Di Luar Peti Besi</span></td>
<td>{{$index->scan_keluar}}</td>
<td>{{$index->terima_marhun}}</td>
<td>{{$index->serah_marhun}}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
var tableScanMasuk = $('#table-scan-masuk').DataTable({});
</script>
@endsection
@@ -4,14 +4,23 @@
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header header-style">
<a href="{{ route('marhun.senarailelongmarhun') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Senarai Lelongan Marhun
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@endif
<h4> Senarai Lelongan Marhun </h4>
<table class="table table-striped table-xl text-center" id="senarailelongonline" style="width:100%">
<table class='table table-bordered table-hover' id="senarailelongonline" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
@@ -46,8 +55,8 @@
<button class="btn btn-warning btn-sm" disabled>LELONG BELUM BERMULA</button>
@endif
</td>
<td><a href="{{ route('marhun.exportmarhundetails', ['lelong_id'=>$lel['info']['lelong_id']]) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Senarai Marhun" style="margin-right:40px" ><i class="fas fa-download"></i></a>
<a href=" {{ route('marhun.senaraimarhun', ['lelong_id'=>$lel['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Lelong Marhun" ><i class="far fa-edit"></i></a></td>
<td><a class="confirmrefresh btn m-1 btn-warning" href="{{ route('marhun.exportmarhundetails', ['lelong_id'=>$lel['info']['lelong_id']]) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Senarai Marhun" style="margin-right:40px" ><i class="fas fa-download"></i></a>
<a class="btn m-1 btn-primary" href=" {{ route('marhun.senaraimarhun', ['lelong_id'=>$lel['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Lelong Marhun" ><i class="far fa-edit"></i></a></td>
</tr>
@endforeach
</tbody>
@@ -4,9 +4,18 @@
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
<h4> Senarai Lelongan Scan</h4>
<table class="table table-striped table-xl text-center" id="senarailelongonline" style="width:100%">
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header header-style">
<a href="{{ route('marhun.senarailelongscan') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Senarai Lelongan Scan
</div>
</div>
<div class="card-body">
<table class="table table-bordered text-center" id="senarailelongonline" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
@@ -14,6 +23,8 @@
<th>Tarikh Lelong</th>
<th>Status Lelong</th>
<th>Tindakan</th>
<th>Scan Keluar</th>
<th>Scan Masuk</th>
</tr>
</thead>
<tbody>
@@ -33,8 +44,17 @@
</td>
<td>
@if($lel['info']['sts_lelong'] == 0)
<a href="{{ route('marhun.exportmarhundetails', ['lelong_id'=>$lel['info']['lelong_id']]) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Senarai Marhun" style="margin-right:40px"><i class="fas fa-download"></i></a>
<a href=" {{ route('marhun.scanbarcode', ['lelong_id'=>$lel['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Lelong Marhun"><i class="far fa-edit"></i></a>
<a class="btn btn-warning btn-sm" href="{{ route('marhun.exportmarhundetails', ['lelong_id'=>$lel['info']['lelong_id']]) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Senarai Marhun" style="margin-right:40px"><i class="fas fa-download"></i></a>
@endif
</td>
<td>
@if($lel['info']['sts_lelong'] == 0)
<a class="btn btn-info btn-sm" href=" {{ route('marhun.scanbarcode', ['lelong_id'=>$lel['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Lelong Marhun"><i class="far fa-edit"></i></a>
@endif
</td>
<td>
@if($lel['info']['sts_lelong'] == 0)
<a class="btn btn-info btn-sm" href=" {{ route('marhun.scanbarcodemasuk', ['lelong_id'=>$lel['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Lelong Marhun"><i class="far fa-edit"></i></a>
@endif
</td>
</tr>
@@ -4,10 +4,18 @@
<div class="container-fluid">
<div class="row">
<div class="col-md-11 mx-auto p-4">
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header header-style">
<a href="{{ route('marhun.senarailelongterimaserah') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Terima/Serah Marhun
</div>
</div>
<div class="card-body">
<h4> Terima Serah Marhun </h4>
@if ($message = Session::get('success'))
<div class="alert mt-2 alert-success">
<p>{{ $message }}</p>
@@ -17,7 +25,7 @@
<p>{{ $message }}</p>
</div>
@endif
<table class="table table-striped text-center" id="table-lelong">
<table class='table table-bordered table-hover' id="table-lelong">
<thead class="bg-primary text-white">
<th>Bil</th>
<th>Batch Lelong</th>
@@ -37,7 +45,7 @@
</td>
@endif
<td>
<a href="{{route('marhun.terimaserahmarhun', ['lelong_id'=>$index->lelong_id])}}" data-toggle="tooltip" data-placement="top" title="Muat Turun Senarai Marhun"><i class="far fa-edit"></i></a>
<a class="btn m-1 btn-primary" href="{{route('marhun.terimaserahmarhun', ['lelong_id'=>$index->lelong_id])}}" data-toggle="tooltip" data-placement="top" title="Muat Turun Senarai Marhun"><i class="far fa-edit"></i></a>
</td>
</tr>
@endforeach
+36 -23
View File
@@ -2,11 +2,18 @@
@section('content')
<div class="container-fluid">
<div class="card">
<div class="card-header">Semakan Marhun</div>
<div class="card-body">
<div class="row ">
<div class="col">
<div class="row ">
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header header-style">
<a href="{{ route('marhun.senarailelongmarhun') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Semakan Marhun
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
@@ -20,15 +27,15 @@
<p>
<p><b>Keseluruhan : {{ sizeof($lelongbid) }}</b> </p>
{{-- <p><b>Belum Disemak : {{ sizeof($sag) }}</b></p> --}}
<p><b>Dalam Proses : {{ sizeof($dalamproses) }}</b></p>
{{-- <p><b>Dalam Proses : {{ sizeof($dalamproses) }}</b></p> --}}
<p><b>Sudah Disemak : {{ sizeof($sdhdisemak) }}</b></p>
<p><b>Sudah Disahkan Oleh PC : {{ sizeof($sdhdisahkan) }}</b></p>
{{-- <p><b>Sudah Disahkan Oleh PC : {{ sizeof($sdhdisahkan) }}</b></p> --}}
</div>
<div class="col-6 col-sm-4">
<p><b><u> Tangguh Lelong Oleh Pengurus Cawangan </u></b></p>
<p><b>Sudah Disemak : {{ sizeof($sdhdisemaktangguhlel) }}</b></p>
<p><b>Dalam Proses : {{ sizeof($dalamprosestangguhlel) }}</b></p>
<p><b>Sudah Disahkan Oleh Operasi : {{ sizeof($sdhdisahkantangguhlel) }}</b></p>
<p><b><u> Pengesahan Oleh PC :</u></b></p>
{{-- <p><b>Sudah Disemak : {{ sizeof($sdhdisemaktangguhlel) }}</b></p> --}}
<p><b>Dalam Proses : {{ sizeof($dalamproses) }}</b></p>
<p><b>Sudah Disahkan : {{ sizeof($sdhdisahkan) }}</b></p>
</div>
</div>
</div>
@@ -41,7 +48,7 @@
<th>No Rujukan</th>
<th>Tarikh Lelong</th>
<th>Status Semak</th>
<th>Pengesahan</th>
{{-- <th>Pengesahan</th> --}}
<th class="text-center">Semakan Marhun</th>
</tr>
</thead>
@@ -53,22 +60,28 @@
<td>{{ $bid->t_lelong }}</td>
<td>
@if($bid->status_semak == 0)
<button class="btn btn-danger btn-sm hovernone-danger" disabled>BELUM DISEMAK</button>
{{-- <button class="btn btn-danger btn-sm hovernone-danger" disabled>BELUM DISEMAK</button> --}}
{{-- @if(isset($bid['pengesahan']['disahkan_oleh'])) --}}
@if(!empty($bid['pengesahan'] !== null))
<button class="btn btn-warning btn-sm hovernone-warning" disabled>DALAM PROSES</button>
@else
<button class="btn btn-danger btn-sm hovernone-danger" disabled>BELUM DISEMAK</button>
@endif
@elseif(($bid['pengesahan'] !== null) && ($bid->status_semak == 1))
@if($bid['pengesahan']['disahkan_oleh'] !== null)
<button class="btn btn-success btn-sm hovernone-success" disabled>SUDAH DISAHKAN</button>
@else
<button class="btn btn-warning btn-sm hovernone-warning" disabled>DALAM PROSES</button>
@endif
@if($bid['pengesahan']['disahkan_oleh'] !== null)
<button class="btn btn-success btn-sm hovernone-success" disabled>SUDAH DISAHKAN</button>
@else
<button class="btn btn-warning btn-sm hovernone-warning" disabled>DALAM PROSES</button>
@endif
@elseif(($bid->status_semak == 1) && ($bid['pengesahan'] === null))
<button class="btn btn-outline-success btn-sm" disabled>SUDAH DISEMAK</button>
<button class="btn btn-outline-success btn-sm" disabled>SUDAH DISEMAK</button>
@endif
</td>
<td>
{{-- <td>
@if($bid['statustangguhlel'] != null)
<button class="btn btn-secondary btn-sm hovernone-secondary" disabled>TANGGUH LELONG PC</button>
@endif
</td>
</td> --}}
<td class="text-center">
@if($bid['statusterimamarhun'] == 1)
<!-- <button type="button" class="btn btn-primary" onclick="kemaskini(this)" data-lelong="{{$bid->lelong_id}}" data-all="{{$bid}}" data-surat="{{$bid->id}}" data-marhun="{{ json_encode($bid->marhun) }}" data-toggle="modal" data-target="#noRujukanModal"><i class="far fa-edit"></i></button> -->
@@ -80,9 +93,9 @@
</tbody>
</table>
</form>
<div class="row justify-content-end">
{{-- <div class="row justify-content-end">
<a href="{{ route('marhun.senarailelongmarhun') }}" class="btn m-3 btn-primary">Kembali</a>
</div>
</div> --}}
</div>
</div>
</div>
@@ -4,9 +4,16 @@
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto p-4">
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header">Terima/Serah Marhun</div>
<div class="card-header header-style">
<a href="{{ route('marhun.senarailelongscan') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Terima/Serah Marhun
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert mt-2 alert-success">
@@ -17,7 +24,7 @@
<p>{{ $message }}</p>
</div>
@endif
<a href="{{route('marhun.senarailelongterimaserah')}}" class="btn mb-2 btn-secondary">Kembali</a>
{{-- <a href="{{route('marhun.senarailelongterimaserah')}}" class="btn mb-2 btn-secondary">Kembali</a> --}}
<ul class="nav mb-2 nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="belum-diterima-tab" data-toggle="tab" href="#belum-diterima" role="tab" aria-controls="belum-diterima" aria-selected="true">Belum Diterima</a>
@@ -82,7 +89,15 @@
<td>{{$index->norujukan}}</td>
<td>{{$index->scan_keluar}}</td>
<td>{{$index->terima_marhun}}</td>
<td><span class="badge badge-pill badge-success">Sedang Dinilai</span></td>
@if (isset($index['sdhdisemak']['status_semak']))
@if(($index['sdhdisemak']['status_semak']) == 1)
<td><span class="badge badge-pill badge-success">Telah Dinilai</span></td>
@else
<td><a href="{{route('marhun.show',[$index->lelongbid_id, $index->lelong_id])}}"><span class="badge badge-pill badge-warning">Sedang Dinilai</span></a></td>
@endif
@else
<td><a href="{{route('marhun.show',[$index->lelongbid_id, $index->lelong_id])}}"><span class="badge badge-pill badge-warning">Sedang Dinilai</span></a></td>
@endif
</tr>
@endforeach
</tbody>
+138 -125
View File
@@ -1,159 +1,172 @@
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col-md-11 mx-auto card p-4">
@if ($message = Session::get('success'))
<div class="col mx-auto p-4">
<div class="card">
<div class="card-header header-style">
<a href="{{ route('report.lapubahmarhunlelong') }}" class="header-style-icon">
<i class="fas fa-arrow-left"></i>
</a>
<div class="header-style-title">
Senarai SAG Perubahan Marhun: {{$getpengesahan['caw_name']}}
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@endif
<form id="exportform" action="{{route('report.exportubahmarhun')}}" method="POST">
@csrf
<h4> Senarai Perubahan Marhun </h4>
<table class="table table-striped table-xl text-center" id="senaraiubahmarhun" style="width:100%">
<thead class="bg-primary text-white">
<!--<tr>
<th width="5%" align="left"></th>
<th width="25%" align="left"></th>
<th width="5%" align="left"></th>
<th width="25%" align="left"></th>
<th width="25%" align="left" colspan='4'>Maklumat Marhun</th>
<th width="25%" align="left">Marhun Asal</th>
<th width="25%" align="left">Marhun Ubah</th>
<th width="25%" align="left">Marhun Ubah</th>
<th width="25%" align="left"></th>
<th width="25%" align="left"></th>
</tr>-->
<tr>
<th width="5%" align="left">No</th>
<th width="25%" align="left">Cawangan</th>
<th width="5%" align="left">Lelong ID</th>
<th width="25%" align="left">No Rujukan</th>
<th width="5%" align="left">Karat Asal</th>
<th width="5%" align="left">Karat Baru</th>
<th width="5%" align="left">Berat Asal</th>
<th width="5%" align="left">Berat Baru</th>
<th width="15%" align="left">Tarikh Mohon</th>
<th width="15%" align="left">Tarikh Disahkan</th>
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $info)
@endif
<table class='table text-center table-bordered table-hover' id="tablelelong" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<td width="5%" align="center">{{ $loop->iteration }} </td>
@foreach($info['details'] as $details)
<td width="14%" align="center">{{ $details['caw_name'] }}</td>
@endforeach
<td width="14%" align="center">{{ $info['lap']['lelong_id'] }}</td>
<td width="14%" align="center">{{ $info['lap']['norujukan'] }}</td>
<td width="17%" align="center">{{ $info['lap']['old_karat'] }}</td>
<td width="17%" align="center">{{ $info['lap']['karat'] }}</td>
<td width="17%" align="center">{{ number_format($info['lap']['old_berat'], 2, '.', ',') }}</td>
<td width="17%" align="center">{{ number_format($info['lap']['berat'], 2, '.', ',') }}</td>
<td width="17%" align="center">{{ $info['lap']['diminta_pada'] }}</td>
<td width="17%" align="center">{{ $info['lap']['disahkan_pada'] }}</td>
<th>Bil</th>
<th>No Rujukan</th>
<th>Perubahan</th>
<th>Marhun Asal</th>
<th>Marhun Baru</th>
<th>Mutu Asal</th>
<th>Mutu Baru</th>
<th>Berat Asal (gm)</th>
<th>Berat Baru (gm)</th>
<th>Diminta Oleh</th>
<th>Disahkan Oleh</th>
<th>Status</th>
</tr>
@endforeach
</tbody>
</thead>
<tbody>
@forelse($cawangan as $marhun)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $marhun['norujukan'] }}</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
@if($item['status_ubah'] == 1)
Mutu
@elseif($item['status_ubah'] == 2)
Pertambahan Marhun
@elseif($item['status_ubah'] == 3)
Hapus Marhun
@elseif($item['status_ubah'] == 4)
Berat
@elseif($item['status_ubah'] == 5)
Mutu & Berat
@elseif($item['status_ubah'] == 7)
Marhun
@elseif($item['status_ubah'] == 8)
Mutu, Berat & Marhun
@elseif($item['status_ubah'] == 9)
Mutu & Marhun
@elseif($item['status_ubah'] == 10)
Berat & Marhun
@endif
<br>
@endforeach</td>
<td>@foreach ($marhun['detail'] as $item)
{{$item['old_marhun']}}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
@if($item['request_marhun'] == null)
@else
<i class="btn fa fa-arrow-right" aria-hidden="true" style="font-size: 10px"></i>
@endif {{$item['request_marhun']}}<br>
@endforeach</td>
<td>@foreach ($marhun['detail'] as $item)
{{$item['old_karat']}}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
@if($item['request_karat'] == null)
@else
<i class="btn fa fa-arrow-right" aria-hidden="true" style="font-size: 10px"></i>
@endif{{$item['request_karat']}}<br>
@endforeach</td>
<td>@foreach ($marhun['detail'] as $item)
{{$item['old_berat']}}<br>
@endforeach</td>
<td>@foreach ($marhun['detailmarhun'] as $item)
@if($item['request_berat'] == null)
@else
<i class="btn fa fa-arrow-right" aria-hidden="true" style="font-size: 10px"></i>
@endif{{$item['request_berat']}}<br>
@endforeach</td>
<td>{{ $marhun['diminta_oleh'] }}</td>
<td>{{ $marhun['disahkan_oleh'] }}</td>
<td><button class="btn btn-success btn-sm hovernone-success" disabled>BERJAYA DISAHKAN</button></td>
</tr>
@empty
<tr>
<td colspan="7">No Data</td>
</tr>
@endforelse
</tbody>
</table>
</form>
<div class="modal-footer" style="margin-top:2%;">
</div>
</div>
</div>
</div>
<script>
//Enable tooltips everywhere
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
var tablesenarailelongonline = $('#senarailelongonline').DataTable({
"columnDefs": [
{
"targets": 0,
"orderable": false
},
{
"targets": 3,
"orderable": false
}
],
order: [[1, 'asc']],
"info": false,
"lengthChange": false,
"pageLength": 15,
dom: 'Bfrtip',
// buttons: [
// {
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm addcaw',
// text: '<i class="fas fa-plus" id="test"></i>',
// titleAttr: 'Tambah Cawangan',
// action: function ( e, dt, node, config ) {
// // alert( 'Button activated' );
// // console.log('hye');
// $('#myModal').modal("show");
// $('#myModal').on('shown.bs.modal', function () {
// $('#rolename').trigger('focus')
// })
// }
// },
// {
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
// titleAttr: 'Export to CSV',
// text: '<i class="fas fa-download"></i>',
// action: function ( e, dt, node, config ) {
// $("#exportform").submit();
// }
// }
// ]
});
// $('.addcaw').tooltip();
// $('.export').tooltip();
// // $( '.dt-buttons').addClass('btn-group');
// $( '.addcaw').removeClass('dt-button');
// $( '.export').removeClass('dt-button');
var tableubah = $('#senaraiubahmarhun').DataTable( {
"columnDefs": [
var tablelelong = $('#tablelelong').DataTable( {
"columnDefs": [
{
"targets": 0,
"orderable": false
},
{
"targets": 4,
"orderable": false
}
],
order: [[0, 'asc']],
// "ordering": false,
"searching":false,
"info": false,
"lengthChange": false,
"pageLength": 15,
dom: 'Bfrtip',
buttons: [
{
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
titleAttr: 'Muat Turun PDF',
text: '<h8><b>PDF</b></h8>',
action: function ( e, dt, node, config ) {
$("#exportform").submit();
}
}
]
// dom: 'Bfrtip',
// buttons: [
// // 'copy', 'excel', 'pdf'
// // { text: 'copy', className: 'btn btn-primary' },
// {
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm addsim',
// text: '<i class="fas fa-plus" id="test"></i>',
// titleAttr: 'Tambah Simulasi',
// action: function ( e, dt, node, config ) {
// alert( 'Button activated' );
// }
// },
// {
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
// titleAttr: 'Export to CSV',
// text: '<i class="fas fa-download"></i>',
// action: function ( e, dt, node, config ) {
// $("#exportform").submit();
// }
// }
// ]
});
$('.addsim').tooltip();
$('.export').tooltip();
// $( '.dt-buttons').addClass('btn-group');
$( '.addsim').removeClass('dt-button');
$( '.export').removeClass('dt-button');
// $('.addsim').tooltip();
// $('.export').tooltip();
// // $( '.dt-buttons').addClass('btn-group');
// $( '.addsim').removeClass('dt-button');
// $( '.export').removeClass('dt-button');
// function selectall(cb) {
// tablelelong.rows().nodes().to$().find('input[type="checkbox"]').each(function(){
// $(this).prop('checked', cb.checked);
// })
// }
</script>
@endsection
@endsection
@@ -0,0 +1,92 @@
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row ">
<div class="col">
<div class="card">
<div class="card-header header-style">
<div class="header-style-title">
Senarai Ubah Marhun
</div>
</div>
<div class="card-body">
@if ($message = Session::get('success'))
<div class="alert alert-success">
{{ $message }}
</div>
@endif
<form id="exportform" action="" method="POST">
<input type="hidden" name="type" value="User">
<table class="table table-bordered text-center" id="tablenotislelong" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Fasa</th>
<th>Cawangan</th>
</tr>
</thead>
<tbody>
@foreach ($arraydetails as $laporan)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $laporan['brg']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['brg']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<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>
<span class="badge badge-pill badge-info text-white" style="font-size:100%">{{ $details['caw_name']}}</span><br>
@endforeach
</td>
</tr>
@endforeach
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
//Enable tooltips everywhere
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
var tablenotislelong = $('#tablenotislelong').DataTable({
"columnDefs": [
{
"targets": 0,
"orderable": false
},
{
"targets": 3,
"orderable": false
}
],
order: [[1, 'asc']],
"info": false,
"lengthChange": false,
"pageLength": 15,
dom: 'Bfrtip',
});
</script>
@endsection
+1 -1
View File
@@ -91,7 +91,7 @@ tr:nth-child(even) {
<br>
<tr>
@foreach ($info as $info)
<td>ID Lelong: {{$info['lelong_id']}}</td>
<td>Batch Lelong: {{$info['lelong_id']}}</td>
<td>Tarikh Lelong : @php
$myDateTime = DateTime::createFromFormat('Y-m-d', $info['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
@@ -91,7 +91,7 @@ tr:nth-child(even) {
<br>
{{-- <tr>
@foreach ($arrayinfo as $laporan)
<td>ID Lelong : {{$laporan['laporan']['lelong_id']}}</td>
<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');
@@ -83,7 +83,7 @@
<td colspan="2"><b>Cawangan: {{$caw['caw_name']}}</b></td>
</tr>
<tr>
<td colspan="2"><b>ID Lelong: {{$lelong_id}}</b></td>
<td colspan="2"><b>Batch Lelong: {{$lelong_id}}</b></td>
</tr>
</table>
@@ -81,7 +81,7 @@ tr:nth-child(even) {
<td colspan="2"><b>Cawangan: {{$caw['caw_name']}}</b></td>
</tr>
<tr>
<td colspan="2"><b>ID Lelong: {{$lelong_id}}</b></td>
<td colspan="2"><b>Batch Lelong: {{$lelong_id}}</b></td>
</tr>
</table>
@@ -80,7 +80,7 @@
<td colspan="2"><b>Cawangan: {{$caw['caw_name']}}</b></td>
</tr>
<tr>
<td colspan="2"><b>ID Lelong: {{$lelong_id}}</b></td>
<td colspan="2"><b>Batch Lelong: {{$lelong_id}}</b></td>
</tr>
</table>
@@ -81,7 +81,7 @@ tr:nth-child(even) {
<td colspan="2"><b>Cawangan: {{$caw['caw_name']}}</b></td>
</tr>
<tr>
<td colspan="2"><b>ID Lelong: {{$lelong_id}}</b></td>
<td colspan="2"><b>Batch Lelong: {{$lelong_id}}</b></td>
</tr>
</table>
@@ -92,7 +92,7 @@ tr:nth-child(even) {
<br>
<tr>
@foreach ($arrayinfo as $laporan)
<td>ID Lelong : {{$laporan['laporan']['lelong_id']}}</td>
<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');
@@ -90,7 +90,7 @@ tr:nth-child(even) {
<thead>
<br>
<tr>
<td>ID Lelong: {{$lelong_id}}</td>
<td>Batch Lelong: {{$lelong_id}}</td>
@foreach ($info as $info)
<td>Tarikh Lelong : @php
@@ -90,7 +90,7 @@ tr:nth-child(even) {
<thead>
<br>
<tr>
<td>ID Lelong: {{$lelong_id}}</td>
<td>Batch Lelong: {{$lelong_id}}</td>
@foreach ($info as $info)
<td>Tarikh Lelong : @php
@@ -90,7 +90,7 @@ tr:nth-child(even) {
<thead>
<br>
<tr>
<td>ID Lelong: {{$lelong_id}}</td>
<td>Batch Lelong: {{$lelong_id}}</td>
@foreach ($lelongid as $info)
<td>Tarikh Lelong : @php
$myDateTime = DateTime::createFromFormat('Y-m-d', $info['tarikh_lelong'] );

Some files were not shown because too many files have changed in this diff Show More