Merge branch 'amirah' into 'main'
update laporan, laporan perubahan mutu(operasi) See merge request online-sistem1/lelong!283
This commit is contained in:
@@ -770,33 +770,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 (){
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,13 @@ class Pengesahan extends Model
|
||||
'status_ubah'
|
||||
];
|
||||
|
||||
public function lelongbidmarhun(){
|
||||
public function lelongbidmarhun()
|
||||
{
|
||||
return $this->belongsTo(LelongBidMarhun::class, 'lelongbidmarhun_id' , 'id');
|
||||
}
|
||||
|
||||
public function lelong()
|
||||
{
|
||||
return $this->belongsTo(Lelong::class,'lelong_id','id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('reportcaw/*')) ? 'show' : '' }}" id="reportSubmenu">
|
||||
<li class="{{ (request()->is('reportcaw/indexnamapembidacaw/*') || request()->is('reportcaw/indexnamapembidacaw') ) ? 'active' : '' }}">
|
||||
<a href="{{url('reportcaw/indexnamapembidacaw')}}">Nama Pembida</a>
|
||||
<a href="{{url('reportcaw/indexnamapembidacaw')}}">Keseluruhan Pembida</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('reportcaw/*')) ? 'show' : '' }}" id="reportSubmenu">
|
||||
@@ -499,13 +499,13 @@
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('report/*')) ? 'show' : '' }}" id="reportSubmenu">
|
||||
<li class="{{ (request()->is('report/lapubahmarhunlelongindex/*') || request()->is('report/lapubahmarhunlelongindex') ) ? 'active' : '' }}">
|
||||
<a href="{{url('report/lapubahmarhunlelongindex')}}">Perubahan Marhun</a>
|
||||
<li class="{{ (request()->is('report/lapubahmarhunlelong/*') || request()->is('report/lapubahmarhunlelong') ) ? 'active' : '' }}">
|
||||
<a href="{{url('report/lapubahmarhunlelong')}}">Perubahan Marhun</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('report/*')) ? 'show' : '' }}" id="reportSubmenu">
|
||||
<li class="{{ (request()->is('report/lapbidaanpembidaindex/*') || request()->is('report/lapbidaanpembidaindex') ) ? 'active' : '' }}">
|
||||
<a href="{{url('report/lapbidaanpembidaindex')}}">Nama Pembida</a>
|
||||
<a href="{{url('report/lapbidaanpembidaindex')}}">Keseluruhan Pembida</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('report/*')) ? 'show' : '' }}" id="reportSubmenu">
|
||||
|
||||
@@ -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>Batch 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
|
||||
|
||||
@@ -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>Batch 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>
|
||||
|
||||
|
||||
@@ -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>Batch 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>Batch 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>
|
||||
|
||||
|
||||
@@ -3,54 +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>Batch Lelong</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>Fasa</th>
|
||||
<th>Cawangan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($arraydetails as $laporan)
|
||||
<tr style="text-align: left">
|
||||
<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>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -59,7 +70,7 @@
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
var tablenotislelong = $('#tablenotislelong').DataTable({
|
||||
var tablenotislelong = $('#tablenotislelong').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
@@ -75,7 +86,6 @@
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -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>Batch 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>
|
||||
|
||||
|
||||
@@ -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">Batch lelong</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
|
||||
+3
-1
@@ -494,7 +494,9 @@ Route::get('/simulasireport/{simulasi_id}/{cawid}',['as'=>'report.simulasireport
|
||||
|
||||
Route::get('/lelongreport/{lelongid}/{cawid}',['as'=>'report.lelongreport','uses'=>'ReportController@lelongreport']);
|
||||
|
||||
Route::get('/lapubahmarhunlelongindex',['as'=>'report.lapubahmarhunlelongindex','uses'=>'ReportController@lapubahmarhunlelongindex']);
|
||||
Route::get('/lapubahmarhunlelong',['as'=>'report.lapubahmarhunlelong','uses'=>'ReportController@lapubahmarhunlelong']);
|
||||
Route::get('/lapubahmarhunlelongindex/{lelong_id}/{kodcaw}',['as'=>'report.lapubahmarhunlelongindex','uses'=>'ReportController@lapubahmarhunlelongindex']);
|
||||
|
||||
Route::post('/export',['as'=>'report.exportubahmarhun','uses'=>'ReportController@exportubahmarhun']);
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user