updated untuk 28-9-2022
This commit is contained in:
@@ -112,7 +112,11 @@ class AliranTunaiController extends Controller
|
||||
|
||||
$tunaipast = Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url') .'/api/getPastTunai/'. $auth_user['cawangan'],['kodlaluan' => Auth::user()->name])->json();
|
||||
|
||||
return view('aliran_tunai.index',compact('cawangan_info','alirantunai','api_url','GT','denominasi','gadai_tebus','tuntutbaki','advansur','addtunai','tunaipast'));
|
||||
$proses_modal = Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url') .'/api/requestTeller/checkproses',['kodlaluan' => Auth::user()->name,'kodcaw' => $auth_user['cawangan']])->json();
|
||||
|
||||
$countproses = sizeof($proses_modal);
|
||||
|
||||
return view('aliran_tunai.index',compact('cawangan_info','alirantunai','api_url','GT','denominasi','gadai_tebus','tuntutbaki','advansur','addtunai','tunaipast','countproses'));
|
||||
}
|
||||
|
||||
public function alirantunaiGadai(Request $request,$teller){
|
||||
|
||||
@@ -7,6 +7,7 @@ use Illuminate\Support\Facades\Auth;
|
||||
use App\Services\CustomerService;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
@@ -29,6 +30,16 @@ class HomeController extends Controller
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
if(session()->has('iklan') && session()->get('iklan') == 0)
|
||||
{
|
||||
session()->put('iklan', 1);
|
||||
}else{
|
||||
if (Hash::check(config('app.reset_password'), $auth_user['password']) || Hash::check($auth_user['no_kp'], $auth_user['password'])) {
|
||||
session()->put('iklan', 0);
|
||||
}
|
||||
}
|
||||
|
||||
if($auth_user['roles'] == 'teller'){
|
||||
if($auth_user['role_harian'] == 'teller'){
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
@@ -45,7 +56,13 @@ class HomeController extends Controller
|
||||
}
|
||||
elseif($auth_user['roles'] == 'pc' || $auth_user['roles'] == 'ppc'){
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
return view('homepage.khazanah.home',compact('cawangan_info','api_url'));
|
||||
|
||||
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get( config('api.url') .'/api/gadai/serah_marhun/khazanah/'. $auth_user['cawangan'])->json();
|
||||
$listserah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/listSerahMarhunController/'.$auth_user['cawangan'])->json();
|
||||
|
||||
$countkhazanah = sizeof($gadai) + sizeof($listserah);
|
||||
|
||||
return view('homepage.khazanah.home',compact('cawangan_info','api_url','countkhazanah'));
|
||||
}
|
||||
else{
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
@@ -383,7 +383,15 @@ class KhazanahController extends Controller
|
||||
|
||||
$update=Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/updatetagterima/'.$auth_user['cawangan'].'/'.$request->norujukan_barcode)->json();
|
||||
|
||||
return redirect()->route('khazanah.tebus');
|
||||
if($update == 'success')
|
||||
{
|
||||
return redirect()->route('khazanah.tebus');
|
||||
}else if($update == 'unavailable'){
|
||||
return redirect()->route('khazanah.tebus')->with(['type' => 'unavailable', 'message' => 'Norujukan Tidak Wujud!', 'norujukan' => $request->norujukan_barcode]);
|
||||
}else{
|
||||
return redirect()->route('khazanah.tebus')->with(['type' => 'scanned', 'message' => 'Norujukan Dah Discan!', 'norujukan' => $request->norujukan_barcode]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function pendahuluanserah($id)
|
||||
@@ -1026,7 +1034,14 @@ class KhazanahController extends Controller
|
||||
|
||||
event(new NotifikasiPembayaran('TellerkepadaKhazanah'));
|
||||
|
||||
return redirect()->route('khazanah.gadaian');
|
||||
if($scan_barcode == 'success')
|
||||
{
|
||||
return redirect()->route('khazanah.gadaian');
|
||||
}else if($scan_barcode == 'unavailable'){
|
||||
return redirect()->route('khazanah.gadaian')->with(['type' => 'unavailable', 'message' => 'Norujukan Tidak Wujud!', 'norujukan' => $request->norujukan_barcode]);
|
||||
}else{
|
||||
return redirect()->route('khazanah.gadaian')->with(['type' => 'scanned', 'message' => 'Norujukan Dah Discan!', 'norujukan' => $request->norujukan_barcode]);
|
||||
}
|
||||
}
|
||||
|
||||
public function LaporanSemakBarcode(){
|
||||
@@ -3928,5 +3943,170 @@ class KhazanahController extends Controller
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function Laporan_SerahPetiBesiGadai()
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
// $lookwakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/lookupwakil/')->json();
|
||||
|
||||
return view('khazanah.laporan.serahgadai', compact('cawangan_info','api_url'));
|
||||
}
|
||||
|
||||
public function cetak_serahBarcodeGadai(Request $request)
|
||||
{
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
$tarikh_cetak = $current->toDateString();
|
||||
|
||||
if($request->datemula == null){
|
||||
$datemula = $current->toDateString();
|
||||
}else{
|
||||
$split_date = explode('-', $request->datemula);
|
||||
$datemula = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
|
||||
}
|
||||
|
||||
if($request->datehingga == null){
|
||||
$datehingga = $current->toDateString();
|
||||
}else{
|
||||
$split_date = explode('-', $request->datehingga);
|
||||
$datehingga = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
|
||||
}
|
||||
|
||||
|
||||
$serahbarcode = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/admin/laporan/serahgadai/',[
|
||||
'kodcaw' => $auth_user['cawangan'],
|
||||
'mula' => $datemula,
|
||||
'hingga' => $datehingga,
|
||||
])->json();
|
||||
|
||||
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
return view('print.laporan_serahpetibesigadai', compact('cawangan_detail','api_url','serahbarcode','cawangan_info','datemula','datehingga','tarikh_cetak'));
|
||||
}
|
||||
|
||||
|
||||
public function Laporan_SerahMarhunTebus()
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
// $lookwakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/lookupwakil/')->json();
|
||||
|
||||
return view('khazanah.laporan.serahmarhun', compact('cawangan_info','api_url'));
|
||||
}
|
||||
|
||||
|
||||
public function cetak_serahMarhunTebus(Request $request)
|
||||
{
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
$tarikh_cetak = $current->toDateString();
|
||||
|
||||
if($request->datemula == null){
|
||||
$datemula = $current->toDateString();
|
||||
}else{
|
||||
$split_date = explode('-', $request->datemula);
|
||||
$datemula = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
|
||||
}
|
||||
|
||||
if($request->datehingga == null){
|
||||
$datehingga = $current->toDateString();
|
||||
}else{
|
||||
$split_date = explode('-', $request->datehingga);
|
||||
$datehingga = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
|
||||
}
|
||||
|
||||
|
||||
$serahmarhun = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/admin/laporan/serahmarhuntebus/',[
|
||||
'kodcaw' => $auth_user['cawangan'],
|
||||
'mula' => $datemula,
|
||||
'hingga' => $datehingga,
|
||||
])->json();
|
||||
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
return view('print.laporan_serahmarhun', compact('cawangan_detail','api_url','serahmarhun','cawangan_info','datemula','datehingga','tarikh_cetak'));
|
||||
}
|
||||
|
||||
public function Laporan_AuditCustomer()
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
return view('khazanah.laporan.auditcustomer', compact('cawangan_info','api_url'));
|
||||
}
|
||||
|
||||
public function cetak_AuditCustomer(Request $request)
|
||||
{
|
||||
$api_url = config('api.url');
|
||||
$auth_user = Auth::user();
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
$tarikh_cetak = $current->toDateString();
|
||||
|
||||
if($request->datemula == null){
|
||||
$datemula = $current->toDateString();
|
||||
}else{
|
||||
$split_date = explode('-', $request->datemula);
|
||||
$datemula = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
|
||||
}
|
||||
|
||||
if($request->datehingga == null){
|
||||
$datehingga = $current->toDateString();
|
||||
}else{
|
||||
$split_date = explode('-', $request->datehingga);
|
||||
$datehingga = $split_date[2] . '-' . $split_date[1] . '-' . $split_date[0];
|
||||
}
|
||||
|
||||
$auditcustomer = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/admin/laporan/auditcustomer/',[
|
||||
'kodcaw' => $auth_user['cawangan'],
|
||||
'mula' => $datemula,
|
||||
'hingga' => $datehingga
|
||||
])->json();
|
||||
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
return view('print.laporan_auditcustomer', compact('cawangan_detail','api_url','auditcustomer','cawangan_info','datemula','datehingga','tarikh_cetak'));
|
||||
}
|
||||
|
||||
public function LaporanTebusBarcode(){
|
||||
$auth_user=Auth::user();
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
$api_url = config('api.url');
|
||||
$tarikh_cetak = $current->toDateString();
|
||||
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
$datemula = $current->toDateString();
|
||||
$datehingga = $current->toDateString();
|
||||
|
||||
$serahmarhun = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/admin/laporan/serahmarhuntebus/',[
|
||||
'kodcaw' => $auth_user['cawangan'],
|
||||
'mula' => $datemula,
|
||||
'hingga' => $datehingga,
|
||||
])->json();
|
||||
|
||||
return view('print.laporan_serahmarhun', compact('cawangan_detail','api_url','serahmarhun','cawangan_info','datemula','datehingga','tarikh_cetak'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,6 +5,19 @@
|
||||
|
||||
@include('modal.denominasimodal')
|
||||
|
||||
@if($countproses > 0)
|
||||
<script>
|
||||
Swal.fire({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey: false,
|
||||
allowOutsideClick: false,
|
||||
didOpen: () => {
|
||||
Swal.showLoading()
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
<th>Jum Tuntut/Bayar</th>
|
||||
<th>Keuntungan</th>
|
||||
<th>Caj Lelong</th>
|
||||
<th>Tuntutan</th>
|
||||
<th>Cetak</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -805,6 +806,24 @@
|
||||
var urlroute = '{{ route("lelongan", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', gadai_detail["norujukan"]);
|
||||
|
||||
var tuntutan = 'Pelanggan';
|
||||
|
||||
$.ajax({
|
||||
method:"GET",
|
||||
async:false,
|
||||
url: api_url + "/api/check/customer/",
|
||||
data:{
|
||||
"norujukan" : gadai_detail['norujukan'],
|
||||
"kodcaw" : kodcaw
|
||||
},
|
||||
success: function(response){
|
||||
if(response[0].teller = 'DM')
|
||||
{
|
||||
tuntutan = 'WTD';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if(gadai_detail['trkhtuntut'] == null){
|
||||
tablelelong.row.add([
|
||||
counter,
|
||||
@@ -816,6 +835,7 @@
|
||||
'RM '+formatter.format(gadai_detail['baki']),
|
||||
'RM '+formatter.format(gadai_detail['bakiupah']),
|
||||
'RM '+formatter.format(gadai_detail['cajlelong']),
|
||||
'',
|
||||
'<button class="btn btn-info" disabled>Cetak</button>'
|
||||
]).draw();
|
||||
}else{
|
||||
@@ -829,6 +849,7 @@
|
||||
'RM '+formatter.format(gadai_detail['baki']),
|
||||
'RM '+formatter.format(gadai_detail['bakiupah']),
|
||||
'RM '+formatter.format(gadai_detail['cajlelong']),
|
||||
tuntutan,
|
||||
'<button class="btn btn-info" onclick="cetaktuntutbaki(this)" data-norujukan=' + gadai_detail['norujukan'] +'>Cetak</button>'
|
||||
]).draw();
|
||||
}
|
||||
@@ -874,7 +895,99 @@
|
||||
text: 'Lelongan dalam process WTD'
|
||||
});
|
||||
}else{
|
||||
window.location.href = urlroute;
|
||||
|
||||
const swalWithBootstrapButtons = Swal.mixin({
|
||||
customClass: {
|
||||
confirmButton: 'btn btn-success ml-1',
|
||||
cancelButton: 'btn btn-danger'
|
||||
},
|
||||
buttonsStyling: false
|
||||
});
|
||||
|
||||
swalWithBootstrapButtons.fire({
|
||||
title: 'Dapatkan Pengesahan Khazanah',
|
||||
text: "Kelulusan Tuntut Baki Lelong",
|
||||
icon: 'info',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Hantar',
|
||||
cancelButtonText: 'Batal',
|
||||
reverseButtons: true
|
||||
}).then((result) => {
|
||||
if(result.isConfirmed) {
|
||||
Swal.fire({
|
||||
title: 'Tunggu Pengesahan Daripada Khazanah.',
|
||||
icon: 'info',
|
||||
width: 600,
|
||||
padding: '3em',
|
||||
background: '#fffff',
|
||||
showCancelButton: false,
|
||||
showConfirmButton: false,
|
||||
allowOutsideClick: false,
|
||||
allowEscapeKey: false,
|
||||
allowEnterKey: false
|
||||
})
|
||||
|
||||
let mohon = "Tuntut Baki";
|
||||
|
||||
$.ajax({
|
||||
method:'post',
|
||||
url: '{{ route("teller.createkelulusan") }}',
|
||||
data: {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
"norujukan" : norujukan,
|
||||
"mohon" : mohon
|
||||
},
|
||||
success:function(data){
|
||||
},error: function(xhr, status, error) {
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(xhr.responseText);
|
||||
}
|
||||
});
|
||||
|
||||
let teller = "{{ Auth::user()->name }}";
|
||||
|
||||
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
|
||||
cluster: 'ap1',
|
||||
encrypted: true
|
||||
});
|
||||
|
||||
var channel = pusher.subscribe('notice-ubahhapus');
|
||||
channel.bind('my-ubahhapus', function(data) {
|
||||
|
||||
if(data.norujukan == norujukan && data.teller == teller)
|
||||
{
|
||||
if(data.kelulusan == 'lulus')
|
||||
{
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: 'Telah Disahkan'
|
||||
}).then(function(){
|
||||
window.location.href = urlroute;
|
||||
});
|
||||
}
|
||||
else if(data.kelulusan == 'batal')
|
||||
{
|
||||
Swal.fire({
|
||||
icon: 'warning',
|
||||
title: 'Telah Dibatalkan',
|
||||
text: `Komen : ${data.komen}`
|
||||
}).then(function(){
|
||||
location.reload();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else if (result.dismiss === Swal.DismissReason.cancel){
|
||||
swalWithBootstrapButtons.fire(
|
||||
'Batal',
|
||||
'Tidak Berjaya Mendapatkan Pengesahan Khazanah',
|
||||
'error'
|
||||
)
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -890,6 +1003,7 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
$(document).ready( function () {
|
||||
|
||||
$('#myTable').parents('div.dataTables_wrapper').first().hide();
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -5,13 +5,13 @@
|
||||
<div class="modal-dialog modal-xl modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
|
||||
<!-- Modal Header -->
|
||||
<!-- Modal Header -->
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title"></h4>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
|
||||
<!-- Modal body -->
|
||||
<!-- Modal body -->
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@@ -42,13 +42,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal footer -->
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
<!-- Modal footer -->
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
@@ -58,13 +58,27 @@
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb pb-3">
|
||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ url('menu') }}">Khazanah</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Kelulusan Gadaian</li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ url('menu') }}">Khazanah</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Kelulusan Gadaian</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
@if (\Session::has('type') == true && Session::get('type') == 'unavailable')
|
||||
<script>
|
||||
Swal.fire(
|
||||
"{!! \Session::get('message') !!}",
|
||||
"{{ \Session::get('norujukan') }}",
|
||||
'warning'
|
||||
)
|
||||
|
||||
</script>
|
||||
@elseif(\Session::has('type') == true && Session::get('type') == 'scanned')
|
||||
<div class="alert alert-success text-bold d-flex mx-auto justify-content-center w-50">
|
||||
{!! \Session::get('message') !!} <br> {{ \Session::get('norujukan') }}
|
||||
</div>
|
||||
@endif
|
||||
<div class="row mb-4">
|
||||
<div class="col-2 justify-content-start">
|
||||
</div>
|
||||
@@ -72,7 +86,8 @@
|
||||
<form action="{{ route('barcode.scanned') }}" method="post">
|
||||
@csrf
|
||||
<label>Scan Barcode Kemasukan Marhun Ke Peti Besi</label>
|
||||
<input type="text" class="form-control col-4 mx-auto" name="norujukan_barcode" autocomplete="off" id="norujukan_barcode"/>
|
||||
<input type="text" class="form-control col-4 mx-auto" name="norujukan_barcode"
|
||||
autocomplete="off" id="norujukan_barcode" required />
|
||||
<input type="submit" id="submit_button" name="submit_button" hidden>
|
||||
</form>
|
||||
</div>
|
||||
@@ -82,15 +97,19 @@
|
||||
|
||||
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="gadaian-semasa-tab" data-toggle="tab" href="#gadaian-semasa" role="tab" aria-controls="gadaian-semasa" aria-selected="true">Gadaian Masuk</a>
|
||||
<a class="nav-link active" id="gadaian-semasa-tab" data-toggle="tab" href="#gadaian-semasa"
|
||||
role="tab" aria-controls="gadaian-semasa" aria-selected="true">Gadaian Masuk</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="gadaian-belum-serah-tab" data-toggle="tab" href="#gadaian-belum-serah" role="tab" aria-controls="gadaian-belum-serah" aria-selected="false">Pengesahan Marhun</a>
|
||||
<a class="nav-link" id="gadaian-belum-serah-tab" data-toggle="tab"
|
||||
href="#gadaian-belum-serah" role="tab" aria-controls="gadaian-belum-serah"
|
||||
aria-selected="false">Pengesahan Marhun</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="tab-pane fade show active" id="gadaian-semasa" role="tabpanel" aria-labelledby="gadaian-semasa-tab">
|
||||
<div class="tab-pane fade show active" id="gadaian-semasa" role="tabpanel"
|
||||
aria-labelledby="gadaian-semasa-tab">
|
||||
<div class="row mb-4">
|
||||
<div class="col-2">
|
||||
</div>
|
||||
@@ -111,27 +130,35 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (is_array($gadai) || is_object($gadai))
|
||||
@foreach($gadai as $index=>$gadaian)
|
||||
<tr>
|
||||
<td>{{ $index+1 }}</td>
|
||||
<td>
|
||||
@php
|
||||
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/marhun/' . $gadaian['norujukan'] )->json();
|
||||
@endphp
|
||||
<a style="user-select: none;" href="#" data-toggle="modal" data-berat="{{$gadaian['berat']}}" data-marhun="{{ json_encode($marhun) }}" data-norujukan="{{$gadaian['norujukan']}}" data-hargajualan="{{$gadaian['hargajualan']}}" data-kodcaw="{{ $gadaian['kodcaw'] }}"
|
||||
data-target="#marhunModal"> {{$gadaian['norujukan']}}</a>
|
||||
</td>
|
||||
<td>{{ number_format($gadaian['pinjaman'],2) }}</td>
|
||||
<td>{{ number_format($gadaian['nilaimarhun'],2) }}</td>
|
||||
<td>{{ $gadaian['teller'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@foreach($gadai as $index=>$gadaian)
|
||||
<tr>
|
||||
<td>{{ $index+1 }}</td>
|
||||
<td>
|
||||
@php
|
||||
$marhun = Http::withOptions(['verify' =>
|
||||
config('app.api_verify')])->get($api_url . '/api/marhun/' .
|
||||
$gadaian['norujukan'] )->json();
|
||||
@endphp
|
||||
<a style="user-select: none;" href="#" data-toggle="modal"
|
||||
data-berat="{{$gadaian['berat']}}"
|
||||
data-marhun="{{ json_encode($marhun) }}"
|
||||
data-norujukan="{{$gadaian['norujukan']}}"
|
||||
data-hargajualan="{{$gadaian['hargajualan']}}"
|
||||
data-kodcaw="{{ $gadaian['kodcaw'] }}" data-target="#marhunModal">
|
||||
{{$gadaian['norujukan']}}</a>
|
||||
</td>
|
||||
<td>{{ number_format($gadaian['pinjaman'],2) }}</td>
|
||||
<td>{{ number_format($gadaian['nilaimarhun'],2) }}</td>
|
||||
<td>{{ $gadaian['teller'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="gadaian-belum-serah" role="tabpanel" aria-labelledby="gadaian-belum-serah-tab">
|
||||
<div class="tab-pane fade" id="gadaian-belum-serah" role="tabpanel"
|
||||
aria-labelledby="gadaian-belum-serah-tab">
|
||||
<div class="row mb-4">
|
||||
<div class="col-1">
|
||||
</div>
|
||||
@@ -152,22 +179,29 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (is_array($petibesi) || is_object($petibesi))
|
||||
@php $total_nm = 0; @endphp
|
||||
@foreach($petibesi as $index=>$marhun)
|
||||
@php $total_nm += $marhun['nilaimarhun']; @endphp
|
||||
<tr>
|
||||
<td>{{ $index+1 }}</td>
|
||||
<td>
|
||||
@php
|
||||
$marhun_detail = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/marhun/' . $marhun['norujukan'] )->json();
|
||||
@endphp
|
||||
<a href="#" data-toggle="modal" data-berat="{{$marhun['berat']}}" data-marhun="{{ json_encode($marhun_detail) }}" data-norujukan="{{$marhun['norujukan']}}" data-hargajualan="{{$marhun['hargajualan']}}" data-kodcaw="{{ $marhun['kodcaw'] }}" data-target="#marhunModal"> {{$marhun['norujukan']}}</a>
|
||||
</td>
|
||||
<td>{{ number_format($marhun['pinjaman'],2) }}</td>
|
||||
<td>{{ number_format($marhun['nilaimarhun'],2) }}</td>
|
||||
<td>{{ $marhun['teller'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@php $total_nm = 0; @endphp
|
||||
@foreach($petibesi as $index=>$marhun)
|
||||
@php $total_nm += $marhun['nilaimarhun']; @endphp
|
||||
<tr>
|
||||
<td>{{ $index+1 }}</td>
|
||||
<td>
|
||||
@php
|
||||
$marhun_detail = Http::withOptions(['verify' =>
|
||||
config('app.api_verify')])->get($api_url . '/api/marhun/' .
|
||||
$marhun['norujukan'] )->json();
|
||||
@endphp
|
||||
<a href="#" data-toggle="modal" data-berat="{{$marhun['berat']}}"
|
||||
data-marhun="{{ json_encode($marhun_detail) }}"
|
||||
data-norujukan="{{$marhun['norujukan']}}"
|
||||
data-hargajualan="{{$marhun['hargajualan']}}"
|
||||
data-kodcaw="{{ $marhun['kodcaw'] }}" data-target="#marhunModal">
|
||||
{{$marhun['norujukan']}}</a>
|
||||
</td>
|
||||
<td>{{ number_format($marhun['pinjaman'],2) }}</td>
|
||||
<td>{{ number_format($marhun['nilaimarhun'],2) }}</td>
|
||||
<td>{{ $marhun['teller'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -178,13 +212,15 @@
|
||||
<div class="col-md-12">
|
||||
<div class="row form-group justify-content-end">
|
||||
<label class="label-control mr-3">Nilai Marhun Terkumpul</label>
|
||||
<input class="form-control col-md-3" type="text" value="{{ number_format($total_nm,2) }}" readonly/>
|
||||
<input class="form-control col-md-3" type="text"
|
||||
value="{{ number_format($total_nm,2) }}" readonly />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row mt-2 d-flex justify-content-end">
|
||||
<a href="{{ route('laporanscanbarcode') }}" target="_blank" class="btn btn-info mr-md-2">Rekod Barcode Gadaian</a>
|
||||
<a href="{{ route('laporanscanbarcode') }}" target="_blank" class="btn btn-info mr-md-2">Rekod
|
||||
Barcode Gadaian</a>
|
||||
<!-- <a href="#" class="btn btn-info">Senarai Pembatalan No Rujukan</a> -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -205,10 +241,10 @@
|
||||
|
||||
var tablegadaianmasuk = $('#table-gadaian-semasa').DataTable({
|
||||
// "scrollX": true
|
||||
});
|
||||
});
|
||||
|
||||
var pengesahanmarhun = $('#table-gadaian-belum-serah').DataTable({
|
||||
// "scrollX": true
|
||||
// "scrollX": true
|
||||
});
|
||||
|
||||
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
|
||||
@@ -217,19 +253,18 @@
|
||||
});
|
||||
|
||||
var channel = pusher.subscribe('serahanpenilai-notify');
|
||||
channel.bind('trigger-serahanpenilai', function(data) {
|
||||
channel.bind('trigger-serahanpenilai', function (data) {
|
||||
|
||||
if(cawangan == data.kodcaw)
|
||||
{
|
||||
if (cawangan == data.kodcaw) {
|
||||
fetchGadaianEverytime();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
$(document).ready(function () {
|
||||
$('#norujukan_barcode').focus();
|
||||
})
|
||||
|
||||
$('#marhunModal').on('show.bs.modal', function(event) {
|
||||
$('#marhunModal').on('show.bs.modal', function (event) {
|
||||
var button = $(event.relatedTarget); // button yg trigger
|
||||
var arraymarhun = button.data('marhun');
|
||||
var norujukan = button.data('norujukan');
|
||||
@@ -240,19 +275,27 @@
|
||||
$('#jumlah_berat').val(total_berat);
|
||||
var bil_count = 0;
|
||||
$('#tablemarhun').empty();
|
||||
$.each(arraymarhun,function(index,marhun){
|
||||
$.each(marhun, function(index,marhun_detail){
|
||||
$.each(arraymarhun, function (index, marhun) {
|
||||
$.each(marhun, function (index, marhun_detail) {
|
||||
var marhun_name;
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
method: 'GET',
|
||||
url: api_url + '/api/jemas/nama_marhun',
|
||||
dataType: 'json',
|
||||
data:{
|
||||
marhun:marhun_detail['marhun']
|
||||
data: {
|
||||
marhun: marhun_detail['marhun']
|
||||
},
|
||||
success:function(marhun_ajax){
|
||||
success: function (marhun_ajax) {
|
||||
bil_count++;
|
||||
$("#tablemarhun").append("<tr><td>" + bil_count + "</td><td>" + marhun_ajax['descpt'] +"</td><td>" + marhun_detail['berat'] +"</td><td>" + marhun_detail['karat'] +"</td><td>RM " + marhun_detail['n_marhun'].toLocaleString(undefined,{minimumFractionDigits:2}) +"</td><td>"+ marhun_detail['nota'] +"</td></tr>");
|
||||
$("#tablemarhun").append("<tr><td>" + bil_count +
|
||||
"</td><td>" + marhun_ajax['descpt'] + "</td><td>" +
|
||||
marhun_detail['berat'] + "</td><td>" +
|
||||
marhun_detail['karat'] + "</td><td>RM " +
|
||||
marhun_detail['n_marhun'].toLocaleString(
|
||||
undefined, {
|
||||
minimumFractionDigits: 2
|
||||
}) + "</td><td>" + marhun_detail['nota'] +
|
||||
"</td></tr>");
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -260,25 +303,34 @@
|
||||
|
||||
})
|
||||
|
||||
function fetchGadaianEverytime(){
|
||||
function fetchGadaianEverytime() {
|
||||
|
||||
tablegadaianmasuk.clear().draw();
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
method: 'get',
|
||||
url: api_url + '/api/gadai/serah_marhun/khazanah/' + cawangan,
|
||||
success:function(data){
|
||||
success: function (data) {
|
||||
var count = 0;
|
||||
$.each(data,function(index,gadaianmasuk){
|
||||
$.each(data, function (index, gadaianmasuk) {
|
||||
$.ajax({
|
||||
url: api_url + '/api/marhun/' + gadaianmasuk['norujukan'],
|
||||
method:'get',
|
||||
success:function(rekodmarhun){
|
||||
method: 'get',
|
||||
success: function (rekodmarhun) {
|
||||
|
||||
count++;
|
||||
tablegadaianmasuk.row.add([
|
||||
count,
|
||||
'<a style="user-select: none;" href="#" data-toggle="modal" data-berat=' + gadaianmasuk['berat'] + ' data-marhun=' + JSON.stringify(rekodmarhun) + ' data-pinjaman=' + gadaianmasuk['pinjaman'] + ' data-norujukan=' + gadaianmasuk['norujukan'] + ' data-hargajualan=' + gadaianmasuk['hargajualan'] + ' data-kodcaw=' + gadaianmasuk['kodcaw'] + ' data-target="#marhunModal"> ' + gadaianmasuk['norujukan'] + '</a>',
|
||||
'<a style="user-select: none;" href="#" data-toggle="modal" data-berat=' +
|
||||
gadaianmasuk['berat'] + ' data-marhun=' + JSON
|
||||
.stringify(rekodmarhun) + ' data-pinjaman=' +
|
||||
gadaianmasuk['pinjaman'] + ' data-norujukan=' +
|
||||
gadaianmasuk['norujukan'] +
|
||||
' data-hargajualan=' + gadaianmasuk[
|
||||
'hargajualan'] + ' data-kodcaw=' +
|
||||
gadaianmasuk['kodcaw'] +
|
||||
' data-target="#marhunModal"> ' + gadaianmasuk[
|
||||
'norujukan'] + '</a>',
|
||||
formatter.format(gadaianmasuk['pinjaman']),
|
||||
formatter.format(gadaianmasuk['nilaimarhun']),
|
||||
gadaianmasuk['teller']
|
||||
@@ -319,5 +371,6 @@
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb pb-3">
|
||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Audit Customer</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(session()->has('errormessage'))
|
||||
<div class="alert alert-danger">
|
||||
{{ session()->get('errormessage') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<form action="{{ route('laporan.auditcustomercetak') }}" method="post">
|
||||
@csrf
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon1">Mula</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datemula" name="datemula">
|
||||
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon1">Hingga</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datehingga" name="datehingga">
|
||||
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Cetak">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var tablecustomers = $('#myTable').DataTable({
|
||||
"ordering": false
|
||||
});
|
||||
|
||||
$(document).ready( function () {
|
||||
var today = new Date();
|
||||
|
||||
var dateObject = '';
|
||||
$('#datemula').datepicker({
|
||||
maxViewMode:1,
|
||||
format: 'dd-mm-yyyy',
|
||||
autoclose:true,
|
||||
endDate: "today",
|
||||
maxDate: today
|
||||
});
|
||||
|
||||
$('#datehingga').datepicker({
|
||||
maxViewMode:1,
|
||||
format: 'dd-mm-yyyy',
|
||||
autoclose:true,
|
||||
endDate: "today",
|
||||
maxDate: today
|
||||
});
|
||||
|
||||
// $('#datemula').change(function() {
|
||||
|
||||
// $('#datehingga').datepicker('option', 'maxDate', new Date($(this).val()));
|
||||
// console.log($(this).val());
|
||||
|
||||
// });
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -47,6 +47,9 @@
|
||||
<div class="row">
|
||||
<a href="{{route('laporan.stokauditbackdate')}}" class="btn btn-dark btn-lg btn-block mb-3">Stok Audit Backdate</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="{{ route('laporan.serahmarhungadai') }}" class="btn btn-dark btn-lg btn-block mb-3">Serah Marhun Gadai</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3 mx-1">
|
||||
<div class="row">
|
||||
@@ -76,6 +79,9 @@
|
||||
<div class="row">
|
||||
<a href="{{ route('laporan.saghilang') }}" class="btn btn-dark btn-lg btn-block mb-3">SAG Hilang</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="{{ route('laporan.serahmarhuntebus') }}" class="btn btn-dark btn-lg btn-block mb-3">Serah Marhun Tebus</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3 mx-1">
|
||||
<div class="row">
|
||||
@@ -102,6 +108,9 @@
|
||||
<div class="row">
|
||||
<a href="{{ route('laporan.perbelanjaan') }}" class="btn btn-dark btn-lg btn-block mb-3">Perbelanjaan</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="{{ route('laporan.auditcustomer') }}" class="btn btn-dark btn-lg btn-block mb-3">Audit Customer</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb pb-3">
|
||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Serah Gadai</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<form action="{{ route('laporan.serahmarhungadaicetak') }}" target="_blank" method="post">
|
||||
@csrf
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon1">Mula</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" placeholder="Pilih Tarikh"
|
||||
aria-label="Tarikh" id="datemula" name="datemula"
|
||||
aria-describedby="basic-addon1">
|
||||
|
||||
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon1">Hingga</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" placeholder="Pilih Tarikh"
|
||||
aria-label="Tarikh" id="datehingga" name="datehingga"
|
||||
aria-describedby="basic-addon1">
|
||||
|
||||
|
||||
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button"
|
||||
name="submit_button" value="Cetak">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var kodcaw = "<?php echo $cawangan_info['kodcaw'] ?>";
|
||||
|
||||
|
||||
|
||||
$('#datemula').datepicker({
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
$('#datehingga').datepicker({
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,65 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb pb-3">
|
||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Serah Marhun Tebus</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<form action="{{ route('laporan.serahmarhuntebuscetak') }}" target="_blank" method="post">
|
||||
@csrf
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon1">Mula</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datemula" name="datemula" aria-describedby="basic-addon1">
|
||||
|
||||
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon1">Hingga</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datehingga" name="datehingga" aria-describedby="basic-addon1">
|
||||
|
||||
|
||||
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Cetak">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var kodcaw = "<?php echo $cawangan_info['kodcaw'] ?>";
|
||||
|
||||
$(document).ready( function () {
|
||||
$('#datemula').datepicker({
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
|
||||
$('#datehingga').datepicker({
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -15,11 +15,11 @@
|
||||
|
||||
<div class="card-body mx-auto">
|
||||
|
||||
<a href="{{ url('khazanahgadaian') }}" class="btn btn-info mb-4 ml-2 mr-2 btn-lg col-5">Gadai <span class="badge badge-light ">{{ count($gadai) }}</span></a>
|
||||
<a href="{{ url('khazanahtebus') }}" class="btn btn-info mb-4 ml-2 mr-2 btn-lg col-5">Tebus <span class="badge badge-light">{{ count($listserah) }}</span></a>
|
||||
<a href="{{ url('khazanahgadaian') }}" class="btn {{ count($gadai) > 0 ? 'btn-danger' : 'btn-info' }} mb-4 ml-2 mr-2 btn-lg col-5">Gadai <span class="badge badge-light ">{{ count($gadai) }}</span></a>
|
||||
<a href="{{ url('khazanahtebus') }}" class="btn {{ count($listserah) > 0 ? 'btn-danger' : 'btn-info' }} mb-4 ml-2 mr-2 btn-lg col-5">Tebus <span class="badge badge-light">{{ count($listserah) }}</span></a>
|
||||
|
||||
<a href="{{ url('pendahuluan') }}" class="btn btn-info ml-2 mr-2 btn-lg col-5">Pendahuluan <span class="badge badge-light">{{ $countmodal }}</span></a>
|
||||
<a href="{{ url('serahan') }}" class="btn btn-info btn-lg ml-2 mr-2 col-5">Serahan <span class="badge badge-light">{{ $countserahan }}</span></a>
|
||||
<a href="{{ url('pendahuluan') }}" class="btn {{ $countmodal > 0 ? 'btn-danger' : 'btn-info' }} ml-2 mr-2 btn-lg col-5">Pendahuluan <span class="badge badge-light">{{ $countmodal }}</span></a>
|
||||
<a href="{{ url('serahan') }}" class="btn {{ $countserahan > 0 ? 'btn-danger' : 'btn-info' }} btn-lg ml-2 mr-2 col-5">Serahan <span class="badge badge-light">{{ $countserahan }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -54,6 +54,20 @@
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
@if (\Session::has('type') == true && Session::get('type') == 'unavailable')
|
||||
<script>
|
||||
Swal.fire(
|
||||
"{!! \Session::get('message') !!}",
|
||||
"{{ \Session::get('norujukan') }}",
|
||||
'warning'
|
||||
)
|
||||
|
||||
</script>
|
||||
@elseif(\Session::has('type') == true && Session::get('type') == 'scanned')
|
||||
<div class="alert alert-success text-bold d-flex mx-auto justify-content-center w-50">
|
||||
{!! \Session::get('message') !!} <br> {{ \Session::get('norujukan') }}
|
||||
</div>
|
||||
@endif
|
||||
<div class="row mb-4">
|
||||
<div class="col-2 justify-content-start">
|
||||
</div>
|
||||
@@ -61,7 +75,7 @@
|
||||
<form action="{{ route('barcodetebus.scanned') }}" method="post">
|
||||
@csrf
|
||||
<label>Scan Barcode Keluar Marhun Dari Peti Besi </label>
|
||||
<input type="text" class="form-control col-6 mx-auto" name="norujukan_barcode" autocomplete="off" id="norujukan_barcode" placeholder="SILA SCAN BARCODE PADA SAG"/>
|
||||
<input type="text" class="form-control col-6 mx-auto" name="norujukan_barcode" autocomplete="off" id="norujukan_barcode" placeholder="SILA SCAN BARCODE PADA SAG" required/>
|
||||
<input type="submit" id="submit_button" name="submit_button" hidden>
|
||||
</form>
|
||||
|
||||
@@ -153,7 +167,7 @@
|
||||
|
||||
</div>
|
||||
<div class="form-group d-flex justify-content-end mr-4">
|
||||
<a href="{{ url('menu') }}" class="btn btn-primary">Cetak</a>
|
||||
<a href="{{ route('laporanscantebusbarcode') }}" class="btn btn-primary">Cetak</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -332,6 +332,28 @@
|
||||
@else
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(session()->has('iklan') && session()->get('iklan') == 0)
|
||||
|
||||
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true" style="position: absolute; top: 1rem; right: 1rem; width:100%;z-index:1;" data-autohide="false">
|
||||
<div class="toast-header">
|
||||
|
||||
<i class="text-danger fa-2x fa fa-exclamation-triangle mr-2"></i>
|
||||
<strong class="mr-auto text-danger fa-2x">Amaran</strong>
|
||||
{{-- <small>11 mins ago</small> --}}
|
||||
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="toast-body">
|
||||
<b style="font-size:18px;">sila tukar kata laluan asal dengan segera!</b>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('.toast').toast('show');
|
||||
</script>
|
||||
@endif
|
||||
|
||||
|
||||
<main class="py-4">
|
||||
@yield('content')
|
||||
|
||||
@@ -221,6 +221,27 @@
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@if(session()->has('iklan') && session()->get('iklan') == 0)
|
||||
|
||||
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true" style="position: absolute; top: 1rem; right: 1rem; width:100%;z-index:1;" data-autohide="false">
|
||||
<div class="toast-header">
|
||||
|
||||
<i class="text-danger fa-2x fa fa-exclamation-triangle mr-2"></i>
|
||||
<strong class="mr-auto text-danger fa-2x">Amaran</strong>
|
||||
{{-- <small>11 mins ago</small> --}}
|
||||
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="toast-body">
|
||||
<b style="font-size:18px;">sila tukar kata laluan asal dengan segera!</b>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('.toast').toast('show');
|
||||
</script>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
<main class="py-4">
|
||||
|
||||
@@ -1050,6 +1050,7 @@
|
||||
if($('#sltjenistebus').find(":selected").val() == 'T'){
|
||||
|
||||
var adadah = false;
|
||||
var adaonline = false;
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
@@ -1062,7 +1063,6 @@
|
||||
|
||||
if(count > 0)
|
||||
{
|
||||
console.log(count);
|
||||
Swal.fire('Amaran!','Tebus sudah dibuat sila tekan butang batal!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
adadah = true;
|
||||
@@ -1070,7 +1070,25 @@
|
||||
}
|
||||
});
|
||||
|
||||
if(adadah === true)
|
||||
$.ajax({
|
||||
method:'get',
|
||||
datatype: 'json',
|
||||
url: api + '/api/searchsagonline/',
|
||||
async:false,
|
||||
data: { 'norujukan' : norujukan },
|
||||
success:function(success_data){
|
||||
|
||||
if(success_data == true)
|
||||
{
|
||||
Swal.fire('Amaran!','Bayaran online belum diproses!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
adaonline = true;
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
if(adadah === true || adaonline === true)
|
||||
{
|
||||
return false;
|
||||
event.preventDefault();
|
||||
@@ -1179,6 +1197,28 @@
|
||||
///////////
|
||||
|
||||
}else if($('#sltjenistebus').find(":selected").val() == 'A'){
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
datatype: 'json',
|
||||
url: api + '/api/listpenebusanhistory/' + kodcaw,
|
||||
async:false,
|
||||
data: { 'norujukan' : norujukan },
|
||||
success:function(success_data){
|
||||
var count = Object.keys(success_data).length;
|
||||
|
||||
if(count > 0)
|
||||
{
|
||||
Swal.fire('Amaran!','Tebus sudah dibuat sila tekan butang batal!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
|
||||
return false;
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
let jenisbayarantebus = '';
|
||||
let hadbayaransuran = (parseFloat("{{ $gadai['nilaimarhun']}}") * 0.1);
|
||||
|
||||
|
||||
@@ -0,0 +1,322 @@
|
||||
<style>
|
||||
#header {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td,
|
||||
#customers th {
|
||||
|
||||
padding: 4px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#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: 8px;
|
||||
}
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#sign {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sign td,
|
||||
#sign th {
|
||||
|
||||
padding: 8px;
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sign tr:nth-child(even) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#sign tr:hover {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
#sign th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
}
|
||||
|
||||
@media print {
|
||||
.new-page {
|
||||
page-break-before: always;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table id="header">
|
||||
<tr>
|
||||
{{-- <th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img>
|
||||
</th> --}}
|
||||
{{-- <th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th> --}}
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:20px;font-weight:bold;">{{ $cawangan_detail['namacaw'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
{{-- <tr>
|
||||
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}
|
||||
</td>
|
||||
<td></td>
|
||||
</tr> --}}
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<table id="scan">
|
||||
<tr>
|
||||
<th colspan="5"><b>LAPORAN AUDIT CUSTOMER</b></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="5"><b> TARIKH CETAK:</b>
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
@endphp
|
||||
</th>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:20px"> <b>TARIKH:</b></td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $datemula);
|
||||
$datefirst = $myDateTime->format('d-m-Y');
|
||||
echo($datefirst);
|
||||
@endphp</td>
|
||||
<td style="width:20px"> <b>HINGGA:</b></td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $datehingga);
|
||||
$datelast = $myDateTime->format('d-m-Y');
|
||||
echo($datelast);
|
||||
@endphp</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Nama Pelanggan</th>
|
||||
<th>No IC</th>
|
||||
<th>Data Ditukar</th>
|
||||
<th>Data Lama</th>
|
||||
<th>Data Baru</th>
|
||||
<th>Teller/PPC</th>
|
||||
<th>Tarikh</th>
|
||||
<th>Masa</th>
|
||||
</tr>
|
||||
@php $counter = 1; $jenis = ''; @endphp
|
||||
@foreach($auditcustomer as $index=>$item)
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $item['customer_name'] }}</td>
|
||||
<td>{{ $item['nokp'] }}</td>
|
||||
<td>
|
||||
@php
|
||||
$tempitem = array_keys((array)$item['old']);
|
||||
|
||||
foreach($tempitem as $temp)
|
||||
{
|
||||
echo ($temp == 'alamat1') ? 'alamat' . '<br>' : $temp . '<br>';
|
||||
}
|
||||
@endphp
|
||||
<td>
|
||||
@foreach($item['old'] as $index=>$old)
|
||||
{{ $old }} <br>
|
||||
@endforeach
|
||||
</td>
|
||||
<td>
|
||||
@foreach($item['new'] as $index=>$new)
|
||||
{{ $new }} <br>
|
||||
@endforeach
|
||||
</td>
|
||||
<td>{{ $item['username'] }}</td>
|
||||
<td>{{ date("d-m-Y",strtotime($item['tarikhmasa'])) }}</td>
|
||||
<td>{{ date("H:i:s A",strtotime($item['tarikhmasa'])) }}</td>
|
||||
</tr>
|
||||
@php $counter++;@endphp
|
||||
@endforeach
|
||||
</table>
|
||||
<br><br>
|
||||
{{-- <table id="details" style="border-top:1px solid black;border-bottom:1px solid black;text-align:center;">
|
||||
<tr>
|
||||
<td colspan="3" style="text-align: center;"><b>JUMLAH {{ $jenis }}</b></td>
|
||||
<td style="text-align:center">{{ 'RM ' . number_format($totalamaun,2) }}</td>
|
||||
</tr>
|
||||
</table> --}}
|
||||
|
||||
<br>
|
||||
<br><br><br>
|
||||
<table id="sign">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"> .................................................................. </td>
|
||||
<td> </td>
|
||||
<td colspan="2"> .................................................................. </td>
|
||||
<td> </td>
|
||||
<td colspan="2">.................................................................. </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"><B> Disediakan </B> </td>
|
||||
<td></td>
|
||||
<td colspan="2"><B> Disemak </B> </td>
|
||||
<td> </td>
|
||||
<td colspan="2"><B> Disahkan </B></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,285 @@
|
||||
<style>
|
||||
#header {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding:4px;
|
||||
font-size:10px;
|
||||
}
|
||||
|
||||
#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:8px;
|
||||
}
|
||||
|
||||
#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;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#sign {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sign td, #sign th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sign tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#sign tr:hover {background-color: #ddd;}
|
||||
|
||||
#sign th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table id="header">
|
||||
<tr>
|
||||
{{-- <th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th> --}}
|
||||
{{-- <th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th> --}}
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:20px;font-weight:bold;">{{ $cawangan_detail['namacaw'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
{{-- <tr>
|
||||
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||
<td></td>
|
||||
</tr> --}}
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<table id="scan">
|
||||
<tr>
|
||||
<th colspan ="5"><b>LAPORAN SERAH MARHUN TEBUS</b></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b> Tarikh:</b></td>
|
||||
<td style="text-align:left;"> @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $datemula);
|
||||
$datefirst = $myDateTime->format('d-m-Y');
|
||||
echo($datefirst);
|
||||
echo '<b style="margin-left:20px;margin-right:20px;">Hingga:</b>';
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $datehingga);
|
||||
$datelast = $myDateTime->format('d-m-Y');
|
||||
echo($datelast);
|
||||
@endphp</td>
|
||||
<td style="width:10px"> <b>Tarikh Cetak</b></td>
|
||||
<td style="text-align:left;">@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$datecetak = $myDateTime->format('d-m-Y');
|
||||
echo($datecetak);
|
||||
@endphp</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:50px">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Norujukan</th>
|
||||
<th>Tarikh</th>
|
||||
<th>N Marhun</th>
|
||||
<th>Pembiayaan</th>
|
||||
<th>Tag Terima</th>
|
||||
</tr>
|
||||
@php $counter = 1;@endphp
|
||||
|
||||
@foreach($serahmarhun as $index=>$item)
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $serahmarhun[$index - 1]['teller'])
|
||||
<tr>
|
||||
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td style="width:100px">{{$item['norujukan']}}</td>
|
||||
<td>{{ $item['t_tebus'] }}</td>
|
||||
<td>{{ number_format($item['nilaimarhun'],2) }}</td>
|
||||
<td>{{ number_format($item['pinjaman'],2) }}</td>
|
||||
<td>{{ $item['tagterima'] }}</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
</table>
|
||||
<br><br>
|
||||
{{-- <table id="details" style="border-top:1px solid black;border-bottom:1px solid black;text-align:center;">
|
||||
<tr>
|
||||
<th colspan="9" style="text-align: center;"><b>JUMLAH BILANGAN = {{ $bil }}</b></th>
|
||||
<th style="text-align:center;">Berat (g/m)</th>
|
||||
<th style="text-align:center;">Nilai Marhun (RM)</th>
|
||||
<th style="text-align:center;">Pembiayaan (RM)</th>
|
||||
<th style="text-align:center;">Upah/Keuntungan (RM)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($totalberat,2) }}</td>
|
||||
<td>{{ number_format($totalnm,2) }}</td>
|
||||
<td>{{ number_format($totalpinjaman,2) }}</td>
|
||||
<td>{{ number_format($totalupah,2) }}</td>
|
||||
</tr>
|
||||
</table> --}}
|
||||
|
||||
{{-- <h5 style="float:right;">JUMLAH KESELURUHAN GADAIAN : RM {{ number_format($totalpinjaman,2) }}</h5> --}}
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<table id="sign">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"> .................................................................. </td>
|
||||
<td> </td>
|
||||
<td colspan="2">.................................................................. </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"><B> DI SEMAK</B> </td>
|
||||
<td> </td>
|
||||
<td colspan="2"><B>DI SAHKAN </B></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,293 @@
|
||||
<style>
|
||||
#header {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding:4px;
|
||||
font-size:10px;
|
||||
}
|
||||
|
||||
#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:8px;
|
||||
}
|
||||
|
||||
#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;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#sign {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sign td, #sign th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sign tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#sign tr:hover {background-color: #ddd;}
|
||||
|
||||
#sign th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table id="header">
|
||||
<tr>
|
||||
{{-- <th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th> --}}
|
||||
{{-- <th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th> --}}
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:20px;font-weight:bold;">{{ $cawangan_detail['namacaw'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
{{-- <tr>
|
||||
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat2'].' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||
<td></td>
|
||||
</tr> --}}
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<table id="scan">
|
||||
<tr>
|
||||
<th colspan ="5"><b>LAPORAN SERAH MARHUN GADAI</b></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b> Tarikh:</b></td>
|
||||
<td style="text-align:left;"> @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $datemula);
|
||||
$datefirst = $myDateTime->format('d-m-Y');
|
||||
echo($datefirst);
|
||||
echo '<b style="margin-left:20px;margin-right:20px;">Hingga:</b>';
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $datehingga);
|
||||
$datelast = $myDateTime->format('d-m-Y');
|
||||
echo($datelast);
|
||||
@endphp</td>
|
||||
<td style="width:10px"> <b>Tarikh Cetak</b></td>
|
||||
<td style="text-align:left;">@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$datecetak = $myDateTime->format('d-m-Y');
|
||||
echo($datecetak)
|
||||
@endphp</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:50px">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table id="details">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Norujukan</th>
|
||||
<th>Penilai</th>
|
||||
<th>Tarikh</th>
|
||||
<th>Masa</th>
|
||||
<th>N Marhun</th>
|
||||
<th>Pembiayaan</th>
|
||||
<th>Cetak</th>
|
||||
<th>Tag Serah</th>
|
||||
<th>Semak Barcode</th>
|
||||
</tr>
|
||||
@php $counter = 1;@endphp
|
||||
@foreach($serahbarcode as $index=>$item)
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $serahbarcode[$index - 1]['teller'])
|
||||
<tr>
|
||||
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td style="width:100px">{{$item['norujukan']}}</td>
|
||||
<td>
|
||||
{{ $item['penilai'] }}
|
||||
</td>
|
||||
<td>{{ $item['t_gadai'] }}</td>
|
||||
<td>{{ $item['masa'] }}</td>
|
||||
<td>{{ number_format($item['nilaimarhun'],2) }}</td>
|
||||
<td>{{ number_format($item['pinjaman'],2) }}</td>
|
||||
<td>{{ $item['cetak'] }}</td>
|
||||
<td>{{ $item['tagserah'] }}</td>
|
||||
<td>{{ $item['semakbarcode'] }}</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
</table>
|
||||
<br><br>
|
||||
{{-- <table id="details" style="border-top:1px solid black;border-bottom:1px solid black;text-align:center;">
|
||||
<tr>
|
||||
<th colspan="9" style="text-align: center;"><b>JUMLAH BILANGAN = {{ $bil }}</b></th>
|
||||
<th style="text-align:center;">Berat (g/m)</th>
|
||||
<th style="text-align:center;">Nilai Marhun (RM)</th>
|
||||
<th style="text-align:center;">Pembiayaan (RM)</th>
|
||||
<th style="text-align:center;">Upah/Keuntungan (RM)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($totalberat,2) }}</td>
|
||||
<td>{{ number_format($totalnm,2) }}</td>
|
||||
<td>{{ number_format($totalpinjaman,2) }}</td>
|
||||
<td>{{ number_format($totalupah,2) }}</td>
|
||||
</tr>
|
||||
</table> --}}
|
||||
|
||||
{{-- <h5 style="float:right;">JUMLAH KESELURUHAN GADAIAN : RM {{ number_format($totalpinjaman,2) }}</h5> --}}
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<table id="sign">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"> .................................................................. </td>
|
||||
<td> </td>
|
||||
<td colspan="2">.................................................................. </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"><B> DI SEMAK</B> </td>
|
||||
<td> </td>
|
||||
<td colspan="2"><B>DI SAHKAN </B></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -254,6 +254,16 @@ Route::get('laporan/lelongan/notistuntutbaki/',['as'=>'lelongan.notistuntutbaki'
|
||||
|
||||
Route::get('/laporan/komoditi',['as'=>'laporan.komoditi','uses'=>'KomuditiController@cetakRekodKomoditi']);
|
||||
|
||||
Route::get('laporan/serahmarhungadai/',['as'=>'laporan.serahmarhungadai','uses'=>'KhazanahController@Laporan_SerahPetiBesiGadai'])->middleware('auth','khazanah');
|
||||
Route::post('/laporan/serahmarhungadai/cetak',['as'=>'laporan.serahmarhungadaicetak','uses'=>'KhazanahController@cetak_serahBarcodeGadai']);
|
||||
Route::get('laporan/serahmarhuntebus/',['as'=>'laporan.serahmarhuntebus','uses'=>'KhazanahController@Laporan_SerahMarhunTebus'])->middleware('auth','khazanah');
|
||||
Route::post('/laporan/serahmarhuntebus/cetak',['as'=>'laporan.serahmarhuntebuscetak','uses'=>'KhazanahController@cetak_serahMarhunTebus']);
|
||||
|
||||
Route::get('laporan/auditcustomer/',['as'=>'laporan.auditcustomer','uses'=>'KhazanahController@Laporan_AuditCustomer'])->middleware('auth','khazanah');
|
||||
Route::post('/laporan/auditcustomer/cetak',['as'=>'laporan.auditcustomercetak','uses'=>'KhazanahController@cetak_AuditCustomer']);
|
||||
|
||||
Route::get('/laporanscantebusbarcode',['as'=>'laporanscantebusbarcode','uses'=>'KhazanahController@LaporanTebusBarcode'])->middleware('auth','khazanah');
|
||||
|
||||
//Resit Ansurans
|
||||
Route::get('/resit/{id}',['as'=>'resit.ansuran','uses'=>'GadaianController@resit'])->middleware('auth','teller');
|
||||
Route::get('/resitansurans/{id}',['as'=>'resit.ansurans','uses'=>'GadaianController@resitansurans'])->middleware('auth','teller');
|
||||
|
||||
Reference in New Issue
Block a user