function tangguh lelong
add function tangguhlelong, migrate table tangguhlelong
This commit is contained in:
@@ -109,9 +109,22 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="{{ ( request()->is('tangguhlelong/*')) ? 'active' : '' }}">
|
||||
<a href="{{url('tangguhlelong/senleluntuktangguh')}}">Tangguh Lelong</a>
|
||||
<li class="{{ (request()->is('')) ? 'active' : '' }}">
|
||||
<a href="#tangguhSubmenu" data-toggle="collapse" aria-expanded="false" style="">Tangguh Lelong</a>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('tangguhlelong/*')) ? 'show' : '' }}" id="tangguhSubmenu" >
|
||||
<li class="{{ (request()->is('tangguhlelong/senleluntuktangguh/*') || request()->is('tangguhlelong/senleluntuktangguh') ) ? 'active' : '' }}">
|
||||
<a href="{{url('tangguhlelong/senleluntuktangguh')}}">Mohon Tangguh</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('tangguhlelong/*')) ? 'show' : '' }}" id="tangguhSubmenu" >
|
||||
<li class="{{ (request()->is('tangguhlelong/sentangguh/*') || request()->is('tangguhlelong/sentangguh') ) ? 'active' : '' }}">
|
||||
<a href="{{url('tangguhlelong/sentangguh')}}">Senarai Tangguh</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- <li class="{{ ( request()->is('tangguhlelong/*')) ? 'active' : '' }}">
|
||||
<a href="{{url('tangguhlelong/senleluntuktangguh')}}">Tangguh Lelong</a>
|
||||
</li> -->
|
||||
<li class="{{ ( request()->is('pembayaran/kaunter/*')) ? 'active' : '' }}">
|
||||
<a href="{{url('pembayaran/SenaraiLelongBayar')}}">Pembayaran Pemenang</a>
|
||||
</li>
|
||||
@@ -297,12 +310,12 @@
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('pengesahan/*')) ? 'show' : '' }}" id="pengesahanSubmenu" >
|
||||
<li class="{{ (request()->is('pengesahan/senarailelongtangguh/*') || request()->is('pengesahan/senarailelongtangguh') ) ? 'active' : '' }}">
|
||||
<a href="{{url('pengesahan/senarailelongtangguh')}}">Lelong Ditangguh PC</a>
|
||||
<a href="{{url('pengesahan/senarailelongtangguh')}}">Permohonan Tangguh Lelong</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('pengesahan/*')) ? 'show' : '' }}" id="pengesahanSubmenu" >
|
||||
<li class="{{ (request()->is('pengesahan/senarailelong/*') || request()->is('pengesahan/senarailelong') ) ? 'active' : '' }}">
|
||||
<a href="{{url('pengesahan/senarailelong')}}">Tangguh Lelong</a>
|
||||
<li class="{{ (request()->is('pengesahan/senaraitlhtangguh/*') || request()->is('pengesahan/senaraitlhtangguh') ) ? 'active' : '' }}">
|
||||
<a href="{{url('pengesahan/senaraitlhtangguh')}}">Tangguh Lelong</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@@ -0,0 +1,341 @@
|
||||
<style>
|
||||
#header {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding-left:4px;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
#header tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#header tr:hover {background-color: #ddd;}
|
||||
|
||||
#header th {
|
||||
/* padding-top: 12px;
|
||||
padding-bottom: 12px; */
|
||||
text-align: left;
|
||||
/* padding:4px; */
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
border-collapse: collapse;
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#details {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td, #details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#details tr:hover {background-color: #ddd;}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style:bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
.container{
|
||||
page-break-after:always;
|
||||
padding: 20px 20px 20px 20px;
|
||||
}
|
||||
.tablestyle{
|
||||
font-size:12px;
|
||||
}
|
||||
.tablestyle td, .tablestyle th{
|
||||
/* padding-top: 12px; */
|
||||
/* border:1px solid black; */
|
||||
|
||||
}
|
||||
.page-break {
|
||||
page-break-before: always;
|
||||
}
|
||||
</style>
|
||||
@foreach($lelongbid as $index1=> $borang)
|
||||
{{-- {{dd($notis['nama']['alamat1'])}} --}}
|
||||
|
||||
<div class="container">
|
||||
<table id="header">
|
||||
<tr>
|
||||
{{-- <th rowspan="4"style="width:100px"><br><img src="{{ asset('img/icon_pkb.png') }}" style="width:70px"></img></th> --}}
|
||||
<th colspan="1" style="vertical-align:center;">BORANG PERMOHONAN TANGGUH LELONG</th>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<table class="tablestyle">
|
||||
<tr>
|
||||
<td width="15%">Kepada </td>
|
||||
<td width="1%">:</td>
|
||||
<td width="23%">Bahagian Operasi Ar-Rahn</td>
|
||||
<td colspan="4"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">Nama Pelanggan </td>
|
||||
<td width="1%">:</td>
|
||||
<td width="23%">{{ $customer['nama'] }}</td>
|
||||
<td colspan="4"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">Alamat Pelanggan</td>
|
||||
<td width="1%">:</td>
|
||||
<td width="23%">{{ strtoupper($customer['alamat1']) }} <br>
|
||||
{!! ($customer['alamat2'] === null || $customer['alamat2'] === '') ? '' : '<br>' . strtoupper($customer['alamat2']) !!} <br>
|
||||
{{ ' ' . $customer['poskod'] . ' ' . strtoupper($customer['namadaerah']) . ' ' . strtoupper($customer['negeri'])}}</td>
|
||||
<td></td>
|
||||
<td width="15%">Alamat Baru <br> (sekiranya ada perubahan)</td>
|
||||
<td width="1%">:</td>
|
||||
<td width="23%"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">No Telefon</td>
|
||||
<td width="1%">:</td>
|
||||
<td width="23%">{{ $customer['telefon'] }}</td>
|
||||
<td></td>
|
||||
<td>No Telefon <br> (terkini)</td>
|
||||
<td>:</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="14%">Tarikh Permohonan</td>
|
||||
<td width="1%">:</td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $t_mohon);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
@endphp</td>
|
||||
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $borang['t_lelong']);
|
||||
$tlelong = $myDateTime->format('d-m-Y');
|
||||
echo($tlelong);
|
||||
@endphp
|
||||
<tr><td colspan="7"><p>Pohon penangguhan lelong Batch <u>{{ $borang['lelong_id']}}</u> yang akan dijalankan pada tarikh <u>{{ $tlelong }}</u> bagi pembiayaan sepertimana berikut:-</p></td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<table class="tablestyle">
|
||||
<tr>
|
||||
<td width="15%">Cawangan Ar-Rahn</td>
|
||||
<td width="1%">:</td>
|
||||
<td width="43%">{{ $cwgn['caw_name'] }} </td>
|
||||
<td></td>
|
||||
<td>Nilai Pembiayaan (RM)</td>
|
||||
<td>:</td>
|
||||
<td>{{ $borang['pinjaman']}} </td>
|
||||
<td></td>
|
||||
<td>Pembiayaan Asal (%)</td>
|
||||
<td>:</td>
|
||||
<td>{{ $borang['percent']}} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">No Kad Pengenalan</td>
|
||||
<td width="1%">:</td>
|
||||
<td width="43%">{{ $nokp }}</td>
|
||||
<td></td>
|
||||
<td>Nilai Marhun Asal (RM)</td>
|
||||
<td>:</td>
|
||||
<td>{{ $borang['nilaimarhun']}} </td>
|
||||
<td></td>
|
||||
<td>Nilai Marhun Semasa (RM)</td>
|
||||
<td>:</td>
|
||||
<td>{{ $borang['nmarhuns']}} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">No SAG</td>
|
||||
<td width="1%">:</td>
|
||||
<td width="43%">{{ $borang['norujukan'] }}</td>
|
||||
<td></td>
|
||||
<td>JBG</td>
|
||||
<td>:</td>
|
||||
<td>{{ $borang['jbg']}} </td>
|
||||
<td></td>
|
||||
<td>Pembiayaan Semasa (%)</td>
|
||||
<td>:</td>
|
||||
<td>{{ $borang['percents']}} </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>
|
||||
<table class="tablestyle" cellspacing="0" cellpadding="5" style="float:right;" border="1" width="100%" height="90" align="left">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%">Bil</th>
|
||||
<th width="25%">Marhun</th>
|
||||
<th width="25%" colspan="2">Berat (gm)</th>
|
||||
<th width="25%" colspan="2">Mutu</th>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="5%"></th>
|
||||
<th width="25%"></th>
|
||||
<th width="12%">Asal</th>
|
||||
<th width="13%">Baru</th>
|
||||
<th width="12%">Asal</th>
|
||||
<th width="13%">Baru</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach($borang['lelongbidmarhun'] as $index1=> $lel)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $lel['marhun'] }}</td>
|
||||
<td>{{ $lel['old_berat'] }}</td>
|
||||
<td></td>
|
||||
<td>{{ $lel['old_karat'] }}</td>
|
||||
<td></td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</table><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
<table class="tablestyle" border="0" width="100%" align="left">
|
||||
<tr>
|
||||
<td>Tandatangan Pelanggan</td>
|
||||
<td>:</td>
|
||||
<td>............................</td>
|
||||
<td colspan="4"></td>
|
||||
</tr>
|
||||
<tr><u>Pengesahan / Komen</u></tr>
|
||||
<tr>
|
||||
<td>Penilai</td>
|
||||
<td>:</td>
|
||||
<td>_______________________________</td>
|
||||
<td></td>
|
||||
<td>Khazanah</td>
|
||||
<td>:</td>
|
||||
<td>_______________________________</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>_______________________________</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>_______________________________</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>............................<br> (nama Penilai)</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>............................<br> (nama Khazanah)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PC</td>
|
||||
<td>:</td>
|
||||
<td>_______________________________</td>
|
||||
<td></td>
|
||||
<td>Bahagian Operasi</td>
|
||||
<td>:</td>
|
||||
<td>Diluluskan / Tidak Diluluskan</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>_______________________________</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>............................<br> (nama PC)</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>............................<br> (nama Pegawai Operasi)</td>
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endforeach
|
||||
@@ -75,7 +75,7 @@ tr:nth-child(even) {
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><u><b>LAPORAN SIMULASI SEMUA CAWANGAN</b></u></td>
|
||||
<td colspan="2"><u><b>LAPORAN SENARAI MARHUN</b></u></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -32,16 +32,20 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-left pt-4">
|
||||
<tr ><div style="color:#f61717"><i>**Sila pilih SAG terlebih dahulu sebelum Muat Turun Borang Tangguh Lelong</i></div></tr>
|
||||
</div>
|
||||
<form id="formtangguhlel" action="{{route('tangguhlelong.tangguhlelong')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="lelong_id" value="{{ $lelong_id }}">
|
||||
<table class="table table-striped table-xl text-center" id="tangguhlel" 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>No</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Narhun</th>
|
||||
<th>Marhun</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Berat</th>
|
||||
@@ -52,6 +56,7 @@
|
||||
|
||||
@foreach ($getic as $ic)
|
||||
<tr>
|
||||
<td><input type="checkbox" aria-label="Checkbox for following text input" name="datalel[]" id="datalel" value = "{{ $ic['user_details'][0]['lelongbid_id'] }}" class="custom_name"></td>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$ic['norujukan']}}</td>
|
||||
<td>{{$ic['tempoh']}}</td>
|
||||
@@ -83,7 +88,7 @@
|
||||
</div>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('tangguhlelong.carian', ['lelong_id'=>$lelong_id]) }}" class="btn btn-primary">Kembali</a>
|
||||
<button type="submit" class="btn btn-danger">Tangguh Lelong</button>
|
||||
<button type="submit" class="btn btn-danger">Mohon Tangguh Lelong</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -189,5 +194,12 @@
|
||||
})
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
$(".check_all").on("click", function(){
|
||||
$(".custom_name").each(function(){
|
||||
$(this).attr("checked", true);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,188 @@
|
||||
@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="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@elseif ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<div class="d-flex">
|
||||
<button type="button" class="btn btn-light" onclick="window.history.go(-1);" ><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
|
||||
<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%;">
|
||||
<div class="row"> <div class="col-2"> <b>Nama : </b></div><div class="col"> {{$customer_detail['nama']}}</div></div>
|
||||
<div class="row"> <div class="col-2"> <b>No Kad Pengenalan : </b></div><div class="col"> {{ ($customer_detail) ? $customer_detail['kpbaru'] : $customer_detail['kplama']}} </div></div>
|
||||
<div class="row"> <div class="col-2"> <b>Alamat : </b></div><div class="col"> {{$customer_detail['alamat1']}} </div></div>
|
||||
<div class="row"> <div class="col-2"> <b>Poskod : </b></div><div class="col"> {{$customer_detail['poskod']}} </div></div>
|
||||
<div class="row"> <div class="col-2"> <b>Nama Daerah : </b></div><div class="col"> {{$customer_detail['namadaerah']}} </div></div>
|
||||
<div class="row"> <div class="col-2"> <b>Negeri : </b></div><div class="col"> {{$customer_detail['negeri']}} </div></div>
|
||||
<div class="row"> <div class="col-2"> <b>No Telefon : </b></div><div class="col"> {{$customer_detail['telefon']}} </div></div>
|
||||
<div class="row"> <div class="col-2"> <b>Tarikh Lelong : </b></div><div class="col"> {{$getic[0]['t_lelong']}} </div></div>
|
||||
<div class="row"> <div class="col-2"> <b>Nama Cawangan : </b></div><div class="col"> {{$namacaw['caw_name']}} </div></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-left pt-4">
|
||||
<tr ><div style="color:#f61717"><i>**Sila pilih SAG terlebih dahulu sebelum Muat Turun Borang Tangguh Lelong</i></div></tr>
|
||||
</div>
|
||||
<form id="formtangguhlel" action="{{route('tangguhlelong.mohontangguhlelong')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="lelong_id" value="{{ $lelong_id }}">
|
||||
<input type="hidden" name="nokp" value="{{ ($customer_detail) ? $customer_detail['kpbaru'] : $customer_detail['kplama'] }}">
|
||||
<table class="table table-striped table-xl text-center" id="tangguhlel" 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>No</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Marhun</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Berat</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($getic as $ic)
|
||||
<tr>
|
||||
<td><input type="checkbox" aria-label="Checkbox for following text input" name="lelongbid_id[]" id="lelongbid_id" value = "{{ $ic['lelongbid_id']}}" class="custom_name"></td>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$ic['norujukan']}}</td>
|
||||
<td>{{$ic['tempoh']}}</td>
|
||||
<td>{{$ic['marhun']}}</td>
|
||||
<td>{{ number_format($ic['nilaimarhun'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($ic['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td>{{$ic['berat']}}</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('tangguhlelong.carian', ['lelong_id'=>$lelong_id]) }}" class="btn btn-primary">Kembali</a>
|
||||
<!-- <button type="submit" class="btn btn-danger">Muat Turun Borang Tangguh</button> -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
$('a.confirmdel').confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
type: 'orange',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
Delete: {
|
||||
btnClass: 'btn-warning',
|
||||
action: function () {
|
||||
location.href = this.$target.attr('href');
|
||||
$("#formtangguhlel").submit();
|
||||
}
|
||||
},
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
let arraybidmarhun = [];
|
||||
|
||||
function bidmarhunfunc(e)
|
||||
{
|
||||
|
||||
let bidmarhun = $(e).data('bidmarhun');
|
||||
|
||||
if(e.checked==true) //checkbox
|
||||
{
|
||||
arraybidmarhun.push(bidmarhun);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
arraybidmarhun = arraybidmarhun.filter(item => item !== bidmarhun);
|
||||
}
|
||||
|
||||
// $('#bidmarhun').val(arraybidmarhun);
|
||||
// console.log(arraybidmarhun);
|
||||
|
||||
}
|
||||
|
||||
|
||||
var tabletangguhlelong = $('#tangguhlel').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
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 Borang Tangguh',
|
||||
text: '<h8><b>Muat Turun Borang Tangguh</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$("#formtangguhlel").submit();
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
$('.addsim').tooltip();
|
||||
$('.export').tooltip();
|
||||
// $( '.dt-buttons').addClass('btn-group');
|
||||
$( '.addsim').removeClass('dt-button');
|
||||
$( '.export').removeClass('dt-button');
|
||||
|
||||
|
||||
function selectall(cb) {
|
||||
tabletangguhlelong.rows().nodes().to$().find('input[type="checkbox"]').each(function(){
|
||||
$(this).prop('checked', cb.checked);
|
||||
})
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
$(".check_all").on("click", function(){
|
||||
$(".custom_name").each(function(){
|
||||
$(this).attr("checked", true);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,231 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
||||
<button type="button" class="btn btn-light" ><a href="javascript:window.history.go(-1);"><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
|
||||
</div>
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form id="uploadform" action="" method="POST">
|
||||
<table class="table table-striped table-xl text-center" id="tangguhlelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<!-- <th>Marhun</th> -->
|
||||
<th>N.Marhun (RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Berat</th>
|
||||
<th>Status</th>
|
||||
<th class="text-center">Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
@foreach ($filtered_pengesahan as $index1=>$sah)
|
||||
<tr>
|
||||
<input type="hidden" name="lelongbidid" id="lelongbidid" value="{{ $sah['lelongbid_id'] }}" />
|
||||
<input type="hidden" name="norujukan" id="norujukan" value="{{ $sah['norujukan'] }}" />
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $sah['bid_details'][0]['t_lelong'] );
|
||||
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<!-- <td>{{$sah['bid_details'][0]['t_lelong']}}</td> -->
|
||||
<td>{{$sah['norujukan']}}</td>
|
||||
<td>{{$sah['bid_details'][0]['jbg']}}</td>
|
||||
<!-- <td>{{$sah['bid_details'][0]['marhun']}}</td> -->
|
||||
<td>{{ number_format($sah['bid_details'][0]['nilaimarhun'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($sah['bid_details'][0]['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td>{{$sah['bid_details'][0]['berat']}}</td>
|
||||
|
||||
<td>
|
||||
@if($sah['status'] == 0)
|
||||
<button class="btn btn-danger btn-sm" disabled>BELUM MUAT NAIK BORANG</button>
|
||||
@elseif($sah['status'] == 1)
|
||||
<button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#download">
|
||||
Cwgn Telah Muat Naik Borang </button>
|
||||
@elseif($sah['status'] == 2)
|
||||
<button type="button" class="btn btn-warning btn-sm" data-toggle="modal" data-target="#download">
|
||||
Operasi Telah Muat Turun Borang </button>
|
||||
@elseif($sah['status'] == 3)
|
||||
<button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#download">
|
||||
Operasi Telah Muat Naik Borang </button>
|
||||
@elseif($sah['status'] == 4)
|
||||
<button class="btn btn-success btn-sm" disabled>Telah Dilulus Operasi</button>
|
||||
@endif
|
||||
</td>
|
||||
<!-- <td class="text-center">
|
||||
<input type="checkbox" onclick="bidmarhunfunc(this)" aria-label="Checkbox for following text input" name="checkboxdata[]" value="{{ $sah['bid_details'][0]['id'] }}" data-bidmarhun="{{ $sah['bid_details'][0]['id'] }}">
|
||||
</td> -->
|
||||
|
||||
<td><a href=" {{ route('tangguhlelong.operasidownloadborang', ['lelongbid_id'=>$sah['lelongbid_id']]) }} " data-toggle="tooltip" data-placement="top" title="Muat Turun Borang"><i class="fas fa-download"></i></a>
|
||||
@if($sah['status'] == 2)
|
||||
<button type="button" class="btn btn-outline-secondary" id="btn-upload" data-toggle="modal" data-target="#upload" data-lelongbidid="{{ $sah['lelongbid_id'] }}" data-norujukan="{{$sah['norujukan']}}">
|
||||
Muat Naik Borang <i class="fas fa-file-alt"></i>
|
||||
</button>
|
||||
@elseif($sah['status'] == 3)
|
||||
<button type="button" class="btn btn-outline-secondary" id="btn-sah" data-toggle="modal" data-target="#sahkan" data-lelongbidid="{{ $sah['lelongbid_id'] }}" data-norujukan="{{$sah['norujukan']}}">
|
||||
Sahkan
|
||||
</button>
|
||||
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="upload" data-backdrop="static" data-keyboard="false" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
|
||||
|
||||
<div class="modal-content text-center">
|
||||
<form action="{{ route('tangguhlelong.operasiuploadborang') }}" method="POST" id="formupload" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
<input type="hidden" name="lelongbidid_modal" id="lelongbidid_modal" />
|
||||
<input type="hidden" name="norujukan_modal" id="norujukan_modal" />
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Borang Pengesahan Tangguh Lelong</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="flamingo-tab">
|
||||
<div class="input-group">
|
||||
<div class="custom-file">
|
||||
<input type="file" name="surat" id="inputGroupFile06">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<!-- <button type="button" class="btn btn-danger" onclick="funccdmbatal()">Batal</button>-->
|
||||
<button type="submit" class="btn btn-success" >Muat Naik</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="sahkan" data-backdrop="static" data-keyboard="false" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
|
||||
|
||||
<div class="modal-content text-center">
|
||||
<form action="{{ route('tangguhlelong.operasisahtangguh') }}" method="POST" id="formsahkan" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
<input type="hidden" name="lelongbidid_mdl" id="lelongbidid_mdl" />
|
||||
<input type="hidden" name="norujukan_mdl" id="norujukan_mdl" />
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Pengesahan Tangguh Lelong</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="flamingo-tab">
|
||||
<div class="input-group">
|
||||
<div class="custom-file">
|
||||
<h5>Anda pasti untuk sahkan?</h5>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-warning" value="0" name="sahkan" id="sahkan" >Tidak</button>
|
||||
<button type="submit" class="btn btn-success" value="1" name="sahkan" id="sahkan" >Sahkan</button>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
//modal upload
|
||||
$('#upload').on('show.bs.modal', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var lelongbidid =button.data('lelongbidid');
|
||||
var norujukan =button.data('norujukan');
|
||||
|
||||
$('#norujukan_modal').val(norujukan);
|
||||
$('#lelongbidid_modal').val(lelongbidid);
|
||||
|
||||
});
|
||||
|
||||
//utk sahkan
|
||||
$('#sahkan').on('show.bs.modal', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var lelongbidid =button.data('lelongbidid');
|
||||
var norujukan =button.data('norujukan');
|
||||
|
||||
$('#norujukan_mdl').val(norujukan);
|
||||
$('#lelongbidid_mdl').val(lelongbidid);
|
||||
|
||||
});
|
||||
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
|
||||
function confirm() {
|
||||
$.confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
type: 'orange',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
Sahkan: {
|
||||
btnClass: 'btn-warning',
|
||||
action: function () {
|
||||
$("#formsahkan").submit();
|
||||
}
|
||||
},
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
<script>
|
||||
$(".check_all").on("click", function(){
|
||||
$(".custom_name").each(function(){
|
||||
$(this).attr("checked", true);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,192 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
||||
<button type="button" class="btn btn-light" ><a href="javascript:window.history.go(-1);"><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
|
||||
</div>
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<div class="text-left pt-4">
|
||||
<tr ><div style="color:#f61717"><i>**Sila pilih SAG terlebih dahulu sebelum Muat Turun Borang Tangguh Lelong</i></div></tr>
|
||||
</div>
|
||||
<form id="formtangguhlelong" action="{{route('tangguhlelong.operasidownloadborang')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="lelong_id" value="{{ $lelong_id }}">
|
||||
<input type="hidden" name="kodcaw" value="{{ $caw_code }}">
|
||||
<table class="table table-striped table-xl text-center" id="tangguhlelong" 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>No</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Marhun</th>
|
||||
<th>N.Marhun (RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Berat</th>
|
||||
<th>Status</th>
|
||||
<th class="text-center">Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
@foreach ($pengesahan as $sah)
|
||||
<tr>
|
||||
<td><input type="checkbox" aria-label="Checkbox for following text input" name="lelongbid_id[]" id="lelongbid_id" value = "{{ $sah['bid_details'][0]['id']}}" class="custom_name"></td>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $sah['bid_details'][0]['t_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<!-- <td>{{$sah['bid_details'][0]['t_lelong']}}</td> -->
|
||||
<td>{{$sah['norujukan']}}</td>
|
||||
<td>{{$sah['bid_details'][0]['jbg']}}</td>
|
||||
<td>{{$sah['bid_details'][0]['marhun']}}</td>
|
||||
<td>{{ number_format($sah['bid_details'][0]['nilaimarhun'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($sah['bid_details'][0]['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td>{{$sah['bid_details'][0]['berat']}}</td>
|
||||
|
||||
<td>
|
||||
@if($sah['status'] == 0)
|
||||
<button class="btn btn-danger btn-sm" disabled>BELUM MUAT NAIK BORANG</button>
|
||||
@elseif($sah['status'] == 1)
|
||||
<button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#download">
|
||||
Cwgn Telah Muatnaik Borang </button>
|
||||
@elseif($sah['status'] == 4)
|
||||
<button class="btn btn-success btn-sm" disabled>Telah Dilulus Operasi</button>
|
||||
@endif
|
||||
</td>
|
||||
<!-- <td class="text-center">
|
||||
<input type="checkbox" onclick="bidmarhunfunc(this)" aria-label="Checkbox for following text input" name="checkboxdata[]" value="{{ $sah['bid_details'][0]['id'] }}" data-bidmarhun="{{ $sah['bid_details'][0]['id'] }}">
|
||||
</td> -->
|
||||
<td>{{ $sah['bid_details'][0]['id']}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<!-- {{-- <a href="{{ route('pengesahan.senarailelongtangguh') }}" class="btn btn-primary">Kembali</a> --}} -->
|
||||
<!-- <button type="submit" class="btn btn-warning">Sahkan</button> -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
$('a.confirmdel').confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
type: 'yellow',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
Delete: {
|
||||
btnClass: 'btn-warning',
|
||||
action: function () {
|
||||
location.href = this.$target.attr('href');
|
||||
}
|
||||
},
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
let arraybidmarhun = [];
|
||||
|
||||
function bidmarhunfunc(e)
|
||||
{
|
||||
|
||||
let bidmarhun = $(e).data('bidmarhun');
|
||||
|
||||
if(e.checked==true) //checkbox
|
||||
{
|
||||
arraybidmarhun.push(bidmarhun);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
arraybidmarhun = arraybidmarhun.filter(item => item !== bidmarhun);
|
||||
}
|
||||
|
||||
// $('#bidmarhun').val(arraybidmarhun);
|
||||
// console.log(arraybidmarhun);
|
||||
|
||||
}
|
||||
|
||||
|
||||
var tabletangguhlelong = $('#tangguhlelong').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 8,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
order: [[1, 'asc']],
|
||||
// "ordering": 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-plus" id="test"></i>',
|
||||
// titleAttr: 'Tambah tangguhlelong',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// alert( 'Button activated' );
|
||||
// }
|
||||
// },
|
||||
{
|
||||
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
||||
titleAttr: 'Muat Turun Borang Tangguh',
|
||||
text: '<h8><b>Muat Turun Borang Tangguh</b></h8>',
|
||||
action: function ( e, dt, node, config ) {
|
||||
$("#formtangguhlelong").submit();
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
$('.addsim').tooltip();
|
||||
$('.export').tooltip();
|
||||
// $( '.dt-buttons').addClass('btn-group');
|
||||
$( '.addsim').removeClass('dt-button');
|
||||
$( '.export').removeClass('dt-button');
|
||||
|
||||
|
||||
function selectall(cb) {
|
||||
tabletangguhlelong.rows().nodes().to$().find('input[type="checkbox"]').each(function(){
|
||||
$(this).prop('checked', cb.checked);
|
||||
})
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
$(".check_all").on("click", function(){
|
||||
$(".custom_name").each(function(){
|
||||
$(this).attr("checked", true);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -60,8 +60,8 @@
|
||||
<td>
|
||||
@if($lel['info']['sts_lelong'] == 0)
|
||||
{{-- @foreach($lel['detailsinfo'] as $details) --}}
|
||||
<!-- <a href="{{ route('tangguhlelong.carian', $lel['info']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Carian" style="margin-right:40px"><i class="fas fa-search"></i></a> -->
|
||||
<a href="{{ route('tangguhlelong.listtangguh', [$lel['info']['lelong_id'], $details['caw_code']]) }}" data-toggle="tooltip" data-placement="top" title="Senarai Tangguh" style="margin-right:40px"><i class="fas fa-list"></i></a>
|
||||
<a href="{{ route('tangguhlelong.carian', $lel['info']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Carian" style="margin-right:40px"><i class="fas fa-search"></i></a>
|
||||
<!-- <a href="{{ route('tangguhlelong.listtangguh', [$lel['info']['lelong_id'], $details['caw_code']]) }}" data-toggle="tooltip" data-placement="top" title="Senarai Tangguh" style="margin-right:40px"><i class="fas fa-list"></i></a> -->
|
||||
{{-- @endforeach --}}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
@@ -0,0 +1,264 @@
|
||||
@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="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 text-center" id="tablelelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Lelong</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Tarikh Mohon / Lulus</th>
|
||||
<th>Status</th>
|
||||
<th class="text-center">Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($tangguh as $index1=>$mohon)
|
||||
@if(empty($mohon))
|
||||
<tr>
|
||||
</tr>
|
||||
@else
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{ $mohon['lelong_id']}}</td>
|
||||
<td>
|
||||
@if($mohon['status'] == 4)
|
||||
|
||||
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $mohon['tdet'][0]['tarikh_lelong']);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
|
||||
@endphp
|
||||
@else
|
||||
|
||||
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $mohon['tdet'][0]['t_lelong']);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
|
||||
@endphp
|
||||
@endif
|
||||
</td>
|
||||
<td align = 'left'><span class="m-2">{{$mohon['norujukan']}}</span></td>
|
||||
<td>{{$mohon['ditangguh_pada']}}</td>
|
||||
<td>
|
||||
@if($mohon['status'] == 0)
|
||||
<button class="btn btn-warning btn-sm" disabled>Cwgn Baru Mohon</button>
|
||||
@elseif($mohon['status'] == 1)
|
||||
<button class="btn btn-warning btn-sm" disabled>Cwgn Telah Muat Naik Borang</button>
|
||||
@elseif($mohon['status'] == 2)
|
||||
<button class="btn btn-warning btn-sm" disabled>Operasi Telah Muat Turun Borang</button>
|
||||
@elseif($mohon['status'] == 3)
|
||||
<button class="btn btn-warning btn-sm" disabled>Operasi Telah Muat Naik Borang</button>
|
||||
@elseif($mohon['status'] == 4)
|
||||
<button class="btn btn-success btn-sm" disabled>Telah Dilulus Operasi</button>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($mohon['status'] == 0)
|
||||
<button type="button" class="btn btn-outline-secondary" id="btn-upload" data-toggle="modal" data-lelongbidid="{{ $mohon['lelongbid_id'] }}" data-norujukan="{{ $mohon['norujukan'] }}" data-userid="{{ $user['user_id'] }}" data-lelongid="{{ $mohon['lelong_id'] }}" data-target="#upload">
|
||||
Muat Naik Borang <i class="fas fa-file-alt"></i>
|
||||
</button>
|
||||
@elseif($mohon['status'] == 4)
|
||||
<a href=" {{ route('tangguhlelong.cwgndownloadboranglulus', ['lelongbid_id'=>$mohon['lelongbid_id']]) }} " data-toggle="tooltip" data-placement="top" title="Muat Turun Borang"><i class="fas fa-download"></i></a>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="upload" data-backdrop="static" data-keyboard="false" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
|
||||
|
||||
<div class="modal-content text-center">
|
||||
<form action="{{ route('tangguhlelong.uploadborang') }}" method="POST" id="formupload" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
<input type="hidden" name="user_id" id="user_id" />
|
||||
<input type="hidden" name="lelongbid_id" id="lelongbid_id" />
|
||||
<input type="hidden" name="lelong_id" id="lelong_id" />
|
||||
<input type="hidden" name="norujukan" id="norujukan" />
|
||||
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Borang Permohonan Tangguh Lelong</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="flamingo-tab">
|
||||
<div class="input-group">
|
||||
<div class="custom-file">
|
||||
<input type="file" name="borang" id="inputGroupFile04">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger" onclick="funccdmbatal()">Batal</button>
|
||||
<button type="submit" class="btn btn-success" >Muat Naik</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//modal upload
|
||||
$('#upload').on('show.bs.modal', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var lelongbidid =button.data('lelongbidid');
|
||||
var norujukan =button.data('norujukan');
|
||||
var lelongid =button.data('lelongid');
|
||||
var userid =button.data('userid');
|
||||
|
||||
$('#norujukan').val(norujukan);
|
||||
$('#lelongbid_id').val(lelongbidid);
|
||||
$('#lelong_id').val(lelongid);
|
||||
$('#user_id').val(userid);
|
||||
});
|
||||
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
$('a.confirmdel').confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
type: 'orange',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
Delete: {
|
||||
btnClass: 'btn-warning',
|
||||
action: function () {
|
||||
location.href = this.$target.attr('href');
|
||||
}
|
||||
},
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// var tablelelong = $('#tablelelong').DataTable({
|
||||
// "columnDefs": [
|
||||
// {
|
||||
// "targets": 0,
|
||||
// "orderable": false
|
||||
// },
|
||||
// {
|
||||
// "targets": 7,
|
||||
// "orderable": false
|
||||
// }
|
||||
// ],
|
||||
// order: [[1, 'asc']],
|
||||
// // "ordering": false,
|
||||
// "info": false,
|
||||
// "lengthChange": false,
|
||||
// "pageLength": 99999999,
|
||||
// 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();
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// });
|
||||
|
||||
var tablelelong = $('#tablelelong').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 4,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
order: [[1, 'asc']],
|
||||
// "ordering": false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
// buttons: [
|
||||
// // 'copy', 'excel', 'pdf'
|
||||
// // { text: 'copy', className: 'btn btn-primary' },
|
||||
// {
|
||||
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm 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) {
|
||||
tablelelong.rows().nodes().to$().find('input[type="checkbox"]').each(function(){
|
||||
$(this).prop('checked', cb.checked);
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -58,7 +58,7 @@
|
||||
</td>
|
||||
<td>
|
||||
@if($lel['info']['sts_lelong'] == 0)
|
||||
<a href="{{ route('pengesahan.senaraisahtangguh', [$lel['info']['lelong_id'], $lel['detailsinfo'][0]['caw_code']]) }}" data-toggle="tooltip" data-placement="top" title="Carian"><i class="far fa-edit"></i></a>
|
||||
<a href="{{ route('pengesahan.opsenaraisahtangguh', [$lel['info']['lelong_id'], $lel['detailsinfo'][0]['caw_code']]) }}" data-toggle="tooltip" data-placement="top" title="Carian"><i class="far fa-edit"></i></a>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@@ -122,14 +122,14 @@
|
||||
// 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();
|
||||
}
|
||||
}
|
||||
// {
|
||||
// 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();
|
||||
// }
|
||||
// }
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
@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="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 text-center" id="tablelelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Lelong</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Harga Emas Asas</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Caj Lelong</th>
|
||||
<th>Status Lelong</th>
|
||||
<th class="text-center">Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($arrayinfo as $lel)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{ $lel['info']['lelong_id']}}</td>
|
||||
<td> @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $lel['info']['tarikh_lelong']);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
echo($datez);
|
||||
|
||||
@endphp</td>
|
||||
<td align = 'left'>
|
||||
@foreach($lel['detailsinfo'] as $details)
|
||||
<span class="m-2">{{$details['caw_name']}}</span><br>
|
||||
@endforeach
|
||||
</td>
|
||||
<td>{{$lel['info']['harga_emas_asas']}}</td>
|
||||
<td>{{$lel['info']['jbg']}}</td>
|
||||
<td>{{$lel['info']['cajlelong']}}</td>
|
||||
<td>
|
||||
@if($lel['info']['sts_lelong'] == 0)
|
||||
<button class="btn btn-primary btn-sm" disabled>LELONG BELUM BERMULA</button>
|
||||
@elseif($lel['info']['sts_lelong'] == 1)
|
||||
<button class="btn btn-warning btn-sm" disabled>LELONG BERMULA</button>
|
||||
@elseif($lel['info']['sts_lelong'] == 2)
|
||||
<button class="btn btn-warning btn-sm" disabled>LELONG SELESAI</button>
|
||||
@elseif($lel['info']['sts_lelong'] == 3)
|
||||
<button class="btn btn-warning btn-sm" disabled>LELONG SELESAI</button>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($lel['info']['sts_lelong'] == 0)
|
||||
<a href="{{ route('pengesahan.opsenaraitangguh', [$lel['info']['lelong_id'], $lel['detailsinfo'][0]['caw_code']]) }}" data-toggle="tooltip" data-placement="top" title="Carian"><i class="far fa-edit"></i></a>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
$('a.confirmdel').confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
type: 'orange',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
Delete: {
|
||||
btnClass: 'btn-warning',
|
||||
action: function () {
|
||||
location.href = this.$target.attr('href');
|
||||
}
|
||||
},
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var tablelelong = $('#tablelelong').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 7,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
order: [[1, 'asc']],
|
||||
// "ordering": false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 99999999,
|
||||
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) {
|
||||
tablelelong.rows().nodes().to$().find('input[type="checkbox"]').each(function(){
|
||||
$(this).prop('checked', cb.checked);
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -50,7 +50,17 @@
|
||||
<td>{{ number_format($sah['bid_details'][0]['nilaimarhun'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($sah['bid_details'][0]['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td>{{$sah['bid_details'][0]['berat']}}</td>
|
||||
<td>{{$sah['nota']}}</td>
|
||||
|
||||
<td>
|
||||
@if($sah['status'] == 0)
|
||||
<button class="btn btn-danger btn-sm" disabled>BELUM MUAT NAIK BORANG</button>
|
||||
@elseif($sah['status'] == 1)
|
||||
<button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#download">
|
||||
MUAT TURUN BORANG </button>
|
||||
@elseif($sah['status'] == 4)
|
||||
<button class="btn btn-success btn-sm" disabled>TELAH DILULUS OPERASI</button>
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="checkbox" onclick="bidmarhunfunc(this)" aria-label="Checkbox for following text input" name="checkboxdata[]" value="{{ $sah['bid_details'][0]['id'] }}" data-bidmarhun="{{ $sah['bid_details'][0]['id'] }}">
|
||||
</td>
|
||||
@@ -66,7 +76,60 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" data-backdrop="static" data-keyboard="false" tabindex="-1" id="modaleachphoto">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="titleHeader" value="titleHeader"></h5>
|
||||
<button type="button" onclick="clearData()" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<form id="form1" action="" method="POST" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<input type="hidden" name="lelongbid_id" value="">
|
||||
<input type="hidden" name="lelong_id" value="">
|
||||
<input type="hidden" name="photo_type" value="2">
|
||||
<input type="hidden" name="lelongbidmarhun_id" id="marhun_id" value="">
|
||||
<div class="modal-body justify-content-center">
|
||||
<div id="createPhoto" hidden class="row justify-content-center">
|
||||
<input type='file' accept="image/*;capture=camera" name="gambarMarhun" id="inputGroupFile04" /><br>
|
||||
</div>
|
||||
<div id="updateDeletePhoto" hidden class="row mt-5 justify-content-center">
|
||||
<button data-dismiss="modal" onclick="updatePhoto(2)" type="button" data-target="#modalupdatephoto" data-toggle="modal" class="btn m-2 btn-warning">Tukar Gambar</button>
|
||||
<button data-dismiss="modal" onclick="confirmDeletePhoto()" class="btn m-2 btn-danger">Padam Gambar</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" onclick="clearData()" tyle="width:15%;" data-dismiss="modal">Kembali</button>
|
||||
<button type="submit" class="btn btn-primary" style="width:15%;">Simpan</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function eachMarhunData(value) {
|
||||
lelongId = $(value).data('lelongid');
|
||||
marhunId = $(value).data('marhunid');
|
||||
lelongBidId = $(value).data('lelongbidid');
|
||||
marhun = $(value).data('marhun');
|
||||
loop = $(value).data('loop');
|
||||
fileId = $(value).data('fileid');
|
||||
fileName = $(value).data('filename');
|
||||
if (fileName == '') {
|
||||
$("#createPhoto").attr("hidden", false);
|
||||
$("#updateDeletePhoto").attr("hidden", true);
|
||||
} else if (fileName != '') {
|
||||
$("#createPhoto").attr("hidden", true);
|
||||
$("#updateDeletePhoto").attr("hidden", false);
|
||||
}
|
||||
document.getElementById('marhun_id').value = marhunId;
|
||||
document.getElementById('filemarhun_id').value = fileId;
|
||||
document.getElementById("titleHeader").innerHTML = "Bil:" + loop + ", Id Marhun:" + marhunId + ", Marhun:" + marhun;
|
||||
}
|
||||
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
||||
<button type="button" class="btn btn-light" ><a href="javascript:window.history.go(-1);"><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
|
||||
</div>
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form id="uploadform" action="" method="POST">
|
||||
<table class="table table-striped table-xl text-center" id="tangguhlelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>No Rujukan</th>
|
||||
<!-- <th>Tempoh</th>
|
||||
<th>N.Marhun (RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Berat</th> -->
|
||||
<th>Status</th>
|
||||
<th class="text-center">Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
@foreach ($tangguh as $index1=>$sah)
|
||||
<tr>
|
||||
<input type="hidden" name="lelongbidid" id="lelongbidid" value="{{ $sah['lelongbid_id'] }}" />
|
||||
<input type="hidden" name="norujukan" id="norujukan" value="{{ $sah['norujukan'] }}" />
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $sah['bid_details'][0]['tarikh_lelong'] );
|
||||
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<td>{{$sah['norujukan']}}</td>
|
||||
<!-- <td>{{$sah['bid_details'][0]['jbg']}}</td>
|
||||
<td>{{ number_format($sah['bid_details'][0]['nilaimarhun'], 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($sah['bid_details'][0]['pinjaman'], 2, '.', ',')}}</td>
|
||||
<td>{{$sah['bid_details'][0]['berat']}}</td> -->
|
||||
|
||||
<td>
|
||||
@if($sah['status'] == 0)
|
||||
<button class="btn btn-danger btn-sm" disabled>BELUM MUAT NAIK BORANG</button>
|
||||
@elseif($sah['status'] == 1)
|
||||
<button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#download">
|
||||
Cwgn Telah Muat Naik Borang </button>
|
||||
@elseif($sah['status'] == 2)
|
||||
<button type="button" class="btn btn-warning btn-sm" data-toggle="modal" data-target="#download">
|
||||
Operasi Telah Muat Turun Borang </button>
|
||||
@elseif($sah['status'] == 3)
|
||||
<button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#download">
|
||||
Operasi Telah Muat Naik Borang </button>
|
||||
@elseif($sah['status'] == 4)
|
||||
<button class="btn btn-success btn-sm" disabled>Telah Dilulus Operasi</button>
|
||||
@endif
|
||||
</td>
|
||||
<!-- <td class="text-center">
|
||||
<input type="checkbox" onclick="bidmarhunfunc(this)" aria-label="Checkbox for following text input" name="checkboxdata[]" value="{{ $sah['bid_details'][0]['id'] }}" data-bidmarhun="{{ $sah['bid_details'][0]['id'] }}">
|
||||
</td> -->
|
||||
|
||||
<td><a href=" {{ route('tangguhlelong.operasidownloadboranglulus', ['lelongbid_id'=>$sah['lelongbid_id']]) }} " data-toggle="tooltip" data-placement="top" title="Muat Turun Borang"><i class="fas fa-download"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<!-- {{-- <a href="{{ route('pengesahan.senarailelongtangguh') }}" class="btn btn-primary">Kembali</a> --}} -->
|
||||
<!-- @if($sah['status'] == 3)
|
||||
<button type="submit" onclick="confirm()" class="btn btn-warning">Sahkan</button>
|
||||
@endif -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(".check_all").on("click", function(){
|
||||
$(".custom_name").each(function(){
|
||||
$(this).attr("checked", true);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user