update pindah lelong dan keuntungan fasa 2
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<th>No.KP</th>
|
||||
<th>No.Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat(gm)</th>
|
||||
<th>Berat Asal(gm)</th>
|
||||
<th>Nilai Marhun Asal(RM)</th>
|
||||
<th>Pembiayaan Asal(RM)</th>
|
||||
<th>Baki Pembiayaan(RM)</th>
|
||||
|
||||
@@ -10,28 +10,28 @@
|
||||
<a href="javascript:window.history.go(-1);" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
@foreach ($arrayinfo as $laporan)
|
||||
@foreach ($arrayinfo as $laporan)
|
||||
<div class="header-style-title">
|
||||
Senarai SAG(Pindah Batch Lelong) : @foreach($laporan['details'] as $details)
|
||||
<b>{{ $details['caw_name']}}</b>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
<span class="pt-3" style="margin-left:1%;"><b>Batch Lelong : {{ $laporan['laporan']['lelong_id']}}</b></span><br>
|
||||
<span class="pt-3" style="margin-left:1%;"><b>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
@endphp</b></span>
|
||||
@endforeach
|
||||
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<span class="pt-3" style="margin-left:1%;"><b>Batch Lelong : {{ $laporan['laporan']['lelong_id']}}</b></span><br>
|
||||
<span class="pt-3" style="margin-left:1%;"><b>Tarikh Lelong : @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
@endphp</b></span>
|
||||
|
||||
@endforeach
|
||||
|
||||
<form id="deletesag" action="{{route('lelong.pindahlelongbysag')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="lelongid" value="{{$lelongid}}">
|
||||
@@ -47,8 +47,9 @@
|
||||
<table class="table text-right table-bordered" id="marhun" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th><input type="checkbox" aria-label="Checkbox for following text input" id="checkall"></th>
|
||||
<th>Pilih</th>
|
||||
<th>No</th>
|
||||
{{-- <th>No</th> --}}
|
||||
<th>No Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat (gm)</th>
|
||||
@@ -65,8 +66,8 @@
|
||||
<tbody>
|
||||
@foreach ($marhuns as $index=> $marhun)
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<input type="checkbox" aria-label="Checkbox for following text input" onclick="btnDelete(this)" name="checkboxdata[]" value="{{ $marhun['norujukan'] }}">
|
||||
<td class="text-center">
|
||||
<input type="checkbox" aria-label="Checkbox for following text input" onclick="btnDelete(this)" name="checkboxdata[]" value="{{ $marhun['norujukan'] }}" class="checkbox">
|
||||
</td>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td style="white-space: nowrap;">{{ $marhun['norujukan']}}</td>
|
||||
@@ -110,7 +111,34 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script type='text/javascript'>
|
||||
$(document).ready(function(){
|
||||
// Check or Uncheck All checkboxes
|
||||
$("#checkall").change(function(){
|
||||
var checked = $(this).is(':checked');
|
||||
if(checked){
|
||||
$(".checkbox").each(function(){
|
||||
$(this).prop("checked",true);
|
||||
});
|
||||
}else{
|
||||
$(".checkbox").each(function(){
|
||||
$(this).prop("checked",false);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Changing state of CheckAll checkbox
|
||||
$(".checkbox").click(function(){
|
||||
|
||||
if($(".checkbox").length == $(".checkbox:checked").length) {
|
||||
$("#checkall").prop("checked", true);
|
||||
} else {
|
||||
$("#checkall").prop("checked", false);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$("#btndelete").prop("disabled", true);
|
||||
function btnDelete(e) {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<table class="table text-right table-bordered" id="senarailelongtaklaku" style="width:100%">
|
||||
<table class="table text-center table-bordered" id="senarailelongtaklaku" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
@@ -70,21 +70,6 @@
|
||||
<td>{{$data['laporan']['cajlelong']}}</td>
|
||||
|
||||
<td class="text-center">
|
||||
@hasrole('jurulelong')
|
||||
<a class="btn btn-primary" href="{{ route('lelong.show',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Butiran" style="margin-right:40px" ><i class="far fa-edit"></i></a>
|
||||
<!-- @if($data['laporan']['sts_lelong'] == 0) -->
|
||||
<!-- <a href="{{ route('lelong.refresh',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Kemaskini Data" style="margin-right:40px"><i class="fas fa-sync-alt"></i></a> -->
|
||||
<!-- <a class="startlelong" href="{{ route('lelong.start',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Mula Lelong" style="margin-right:40px"><i class="fa fa-play"></i></a> -->
|
||||
<!-- <a href="{{ route('lelong.show',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Butiran" style="margin-right:40px" ><i class="far fa-edit"></i></a> -->
|
||||
<!-- <a class="confirmdel" href="{{ route('lelong.delete',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Padam" ><i class="far fa-trash-alt"></i></a> -->
|
||||
<!-- @elseif ($data['laporan']['sts_lelong'] == 2) -->
|
||||
<!-- <a href="{{ route('lelong.janapemenang',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Jana Pemenang"><i class="fas fa-users-cog"></i></a> -->
|
||||
<!-- @elseif ($data['laporan']['sts_lelong'] == 3) -->
|
||||
<!-- <a href="{{ route('lelong.senaraipemenang',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Senarai Pemenang"><i class="fas fa-trophy"></i></a> -->
|
||||
<!-- @else -->
|
||||
<!-- <a class="stoplelong" href="{{ route('lelong.stop',$data['laporan']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Tamat Lelong"><i class="fa fa-stop"></i></a> -->
|
||||
<!-- @endif -->
|
||||
@endhasrole
|
||||
@hasrole('operasi')
|
||||
|
||||
@if($data['laporan']['sts_lelong'] == 0)
|
||||
|
||||
@@ -133,12 +133,12 @@ tr:nth-child(even) {
|
||||
<th>No.Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat(gm)</th>
|
||||
<th>Keuntungan Telah Bayar (RM)</th>
|
||||
<th>Keuntungan 6 Bulan (RM)</th>
|
||||
<th>Keuntungan Semasa (RM)</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<th>Pembiayaan Asal (RM)</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<th>Keuntungan 6 Bulan (RM)</th>
|
||||
<th>Keuntungan Telah Bayar (RM)</th>
|
||||
<th>Keuntungan Semasa (RM)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -162,31 +162,64 @@ tr:nth-child(even) {
|
||||
$jumberat = $jumberat + $item['berat'];
|
||||
@endphp
|
||||
{{ number_format($item['berat'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumberat, 2, '.', ',') }}</strong>
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumktlhbyr = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumktlhbyr = $jumktlhbyr + $item['ktlhbyr'];
|
||||
@endphp
|
||||
{{ number_format($item['ktlhbyr'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumktlhbyr, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jum6bulan = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumnilaimarhun = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumnilaimarhun = $jumnilaimarhun + $item['nilaimarhun'];
|
||||
@endphp
|
||||
{{ number_format($item['nilaimarhun'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumnilaimarhun, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumpinjasal = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumpinjasal = $jumpinjasal + $item['pinjaman'];
|
||||
@endphp
|
||||
{{ number_format($item['pinjaman'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumpinjasal, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumpinjaman = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumpinjaman = $jumpinjaman + $item['bakipjm'];
|
||||
@endphp
|
||||
{{ number_format($item['bakipjm'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumpinjaman, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jum6bulan = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jum6bulan = $jum6bulan + $item['bakiupah'];
|
||||
@endphp
|
||||
{{ number_format($item['bakiupah'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
@endforeach
|
||||
<strong>{{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumktlhbyr = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumktlhbyr = $jumktlhbyr + $item['ktlhbyr'];
|
||||
@endphp
|
||||
{{ number_format($item['ktlhbyr'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumktlhbyr, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jum6bulan = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@@ -198,41 +231,8 @@ tr:nth-child(even) {
|
||||
<strong>{{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumpinjasal = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumpinjasal = $jumpinjasal + $item['pinjaman'];
|
||||
@endphp
|
||||
{{ number_format($item['pinjaman'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumpinjasal, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumpinjaman = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumpinjaman = $jumpinjaman + $item['bakipjm'];
|
||||
@endphp
|
||||
{{ number_format($item['bakipjm'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumpinjaman, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td align = 'right'>
|
||||
@php $jumnilaimarhun = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumnilaimarhun = $jumnilaimarhun + $item['nilaimarhun'];
|
||||
@endphp
|
||||
{{ number_format($item['nilaimarhun'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumnilaimarhun, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<!-- <td align = 'right'>
|
||||
@php $jumhargaasas = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<th>No.KP</th>
|
||||
<th>No.Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat(gm)</th>
|
||||
<th>Berat Asal(gm)</th>
|
||||
<th>Nilai Marhun Asal(RM)</th>
|
||||
<th>Pembiayaan Asal (RM)</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<table class="table text-right table-bordered" id="senaraitemp" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th><input type="checkbox" aria-label="Checkbox for following text input" class="check_all"></th>
|
||||
<th><input type="checkbox" aria-label="Checkbox for following text input" id="checkall"></th>
|
||||
<th>Bil</th>
|
||||
<th>Kod Cawangan</th>
|
||||
<th>Cawangan</th>
|
||||
@@ -84,7 +84,7 @@
|
||||
@if($send['bil_lelong'] > 0)
|
||||
|
||||
<tr>
|
||||
<td><input type="checkbox" aria-label="Checkbox for following text input" name="caw[]" id="caw" value = "{{ $send['kodcaw'] }}" class="custom_name"></td>
|
||||
<td><input type="checkbox" aria-label="Checkbox for following text input" name="caw[]" id="caw" value = "{{ $send['kodcaw'] }}" class="checkbox"></td>
|
||||
<td>{{ $count++ }}</td>
|
||||
<td>{{ $send['kodcaw'] }}</td>
|
||||
<td >{{ $send['caw_name'] }}</td>
|
||||
@@ -163,17 +163,34 @@
|
||||
// $( '.addcaw').removeClass('dt-button');
|
||||
// $( '.export').removeClass('dt-button');
|
||||
</script>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.js"
|
||||
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
|
||||
crossorigin="anonymous"></script>
|
||||
<script>
|
||||
$(".check_all").on("click", function(){
|
||||
$(".custom_name").each(function(){
|
||||
$(this).attr("checked", true);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script type='text/javascript'>
|
||||
$(document).ready(function(){
|
||||
// Check or Uncheck All checkboxes
|
||||
$("#checkall").change(function(){
|
||||
var checked = $(this).is(':checked');
|
||||
if(checked){
|
||||
$(".checkbox").each(function(){
|
||||
$(this).prop("checked",true);
|
||||
});
|
||||
}else{
|
||||
$(".checkbox").each(function(){
|
||||
$(this).prop("checked",false);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Changing state of CheckAll checkbox
|
||||
$(".checkbox").click(function(){
|
||||
|
||||
if($(".checkbox").length == $(".checkbox:checked").length) {
|
||||
$("#checkall").prop("checked", true);
|
||||
} else {
|
||||
$("#checkall").prop("checked", false);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$(function() {
|
||||
$( "form" ).submit(function() {
|
||||
|
||||
Reference in New Issue
Block a user