add new page konfirmasi bank
This commit is contained in:
@ -9,6 +9,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
|||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
use Carbon\Carbon;
|
||||||
|
|
||||||
|
|
||||||
class ViewAccount extends Model
|
class ViewAccount extends Model
|
||||||
@ -35,6 +36,32 @@ class ViewAccount extends Model
|
|||||||
'MATURITY_DATE'"
|
'MATURITY_DATE'"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
public function getSearchAccount($cif , $kodecabang, $periode){
|
||||||
|
// $store = DB::connection('oracle');
|
||||||
|
$currentDate = Carbon::now();
|
||||||
|
$formattedDate = $currentDate->format('Y');
|
||||||
|
|
||||||
|
$data = [];
|
||||||
|
|
||||||
|
if ($cif != null && $kodecabang == null && $periode == null) {
|
||||||
|
$data = DB::connection("db2")->table("STG_DB.VW_ACCOUNTS")
|
||||||
|
->where('CUSTOMER_NO',$cif)
|
||||||
|
->where('BATCH_DATE','LIKE','%'.$formattedDate.'%');
|
||||||
|
} elseif ($cif != null && $kodecabang != null && $periode == null) {
|
||||||
|
$data = DB::connection("db2")->table("STG_DB.VW_ACCOUNTS")
|
||||||
|
->where('CUSTOMER_NO',$cif)
|
||||||
|
->where('COMPANY_NAME', 'like', "%" .$kodecabang."%")
|
||||||
|
->where('BATCH_DATE','LIKE','%'.$formattedDate.'%');
|
||||||
|
}else {
|
||||||
|
$data = DB::connection("db2")->table("STG_DB.VW_ACCOUNTS")
|
||||||
|
->where('CUSTOMER_NO',$cif)
|
||||||
|
->where('COMPANY_NAME', 'like', "%" .$kodecabang."%")
|
||||||
|
->where('BATCH_DATE','LIKE','%'.$periode.'%');
|
||||||
|
}
|
||||||
|
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
public function getAccount($cus_no,$account,$kodecabang,$periode){
|
public function getAccount($cus_no,$account,$kodecabang,$periode){
|
||||||
$data = [];
|
$data = [];
|
||||||
$data = DB::connection("db2")->table("STG_DB.VW_ACCOUNTS")->select('*')->where('CUSTOMER_NO',$cus_no)->whereIn('ACCOUNT_NUMBER',$account)->get();
|
$data = DB::connection("db2")->table("STG_DB.VW_ACCOUNTS")->select('*')->where('CUSTOMER_NO',$cus_no)->whereIn('ACCOUNT_NUMBER',$account)->get();
|
||||||
|
@ -29,14 +29,41 @@
|
|||||||
/**
|
/**
|
||||||
* Display a listing of the resource.
|
* Display a listing of the resource.
|
||||||
*/
|
*/
|
||||||
public function index(ViewAccountDataTable $dataTable)
|
// public function index(ViewAccountDataTable $dataTable)
|
||||||
|
// {
|
||||||
|
|
||||||
|
// if (is_null($this->user) || !$this->user->can('konfirmasibank.read')) {
|
||||||
|
// abort(403, 'Sorry !! You are Unauthorized to view any master data !');
|
||||||
|
// }
|
||||||
|
|
||||||
|
// return $dataTable->render('konfirmasibank::index');
|
||||||
|
// }
|
||||||
|
|
||||||
|
public function index(Request $request)
|
||||||
{
|
{
|
||||||
|
// $keyword = $request->input('search');
|
||||||
|
|
||||||
if (is_null($this->user) || !$this->user->can('konfirmasibank.read')) {
|
//$data = ViewAccount::take(10)->get();
|
||||||
abort(403, 'Sorry !! You are Unauthorized to view any master data !');
|
//dd($data);
|
||||||
}
|
|
||||||
|
|
||||||
return $dataTable->render('konfirmasibank::index');
|
return view('konfirmasibank::pages.index');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getData(Request $request)
|
||||||
|
{
|
||||||
|
$data = [];
|
||||||
|
$Account = new ViewAccount;
|
||||||
|
|
||||||
|
$Accounts = $Account->getSearchAccount($request->cif, $request->kodecabang,$request->periode)->get();
|
||||||
|
foreach ($Accounts as $key => $account) {
|
||||||
|
$data[$key]['ACCOUNT_NUMBER'] = $account->ACCOUNT_NUMBER;
|
||||||
|
$data[$key]['COMPANY_NAME'] = $account->COMPANY_NAME;
|
||||||
|
$data[$key]['SHORT_TITLE'] = $account->SHORT_TITLE;
|
||||||
|
$data[$key]['WORKING_BALANCE'] = $account->WORKING_BALANCE;
|
||||||
|
$data[$key]['PRODUCT'] = $account->PRODUCT;
|
||||||
|
$data[$key]['CURRENCY'] = $account->CURRENCY;
|
||||||
|
}
|
||||||
|
return json_encode($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
160
Resources/views/pages/exportPdf.blade.php
Normal file
160
Resources/views/pages/exportPdf.blade.php
Normal file
@ -0,0 +1,160 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Membuat Laporan PDF Dengan DOMPDF Laravel</title>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<style>
|
||||||
|
.space1 {
|
||||||
|
border: 1px solid black;
|
||||||
|
border-collapse: collapse;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
},
|
||||||
|
p {
|
||||||
|
font-size: 12px;
|
||||||
|
border: none;
|
||||||
|
},
|
||||||
|
.text-center{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<table style="width:100%;">
|
||||||
|
<tr style="height:80px">
|
||||||
|
<td style="width:35%;font-size:12px;" >
|
||||||
|
<img style="width:110px; height:70px" src="C:/Users/KATAM%20NUGRAHA/projects/core/public/assets/media/bag.png" alt="">
|
||||||
|
<p>Nomor : </p>
|
||||||
|
<p>Tanggal :</p>
|
||||||
|
</td>
|
||||||
|
<td style="width:30%">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td style="width:35%;font-size:12px">
|
||||||
|
<P><u> BANK ARTHA GRAHA INTERNATIONAL</u></P>
|
||||||
|
<p>Kawasan Niaga Terpadu Sudirman (SCBD)
|
||||||
|
Jl. Jendral Sudirman Kav. 52 – 53 , Jakarta Indonesia
|
||||||
|
</p>
|
||||||
|
<p>Phone :</p>
|
||||||
|
<p>Faxmail :</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table><br>
|
||||||
|
|
||||||
|
|
||||||
|
<p>Kepada Yth</p>
|
||||||
|
<p>Bp. ...</p>
|
||||||
|
<p>Sepatan, Kab. Tanggerang</p>
|
||||||
|
|
||||||
|
<p>Sesuai dengan surat saudara Nomor …. tanggal … dengan ini kami smpaikan data – data nasbah sesuai permintaan saudara sebagai berikut : </p>
|
||||||
|
|
||||||
|
<p>Nama Nasabah : {{$data[0]->NAME_1}}</p>
|
||||||
|
<p>Nomor Rekening : {{$data[0]->CUSTOMER_NO}}</p><br>
|
||||||
|
|
||||||
|
<p style="font-size: 12px;"> SIMPAMAN NASABAH YANG BERSANGKUTAN PADA BANK</p>
|
||||||
|
<p style="font-size: 12px;">POSISI ....</p>
|
||||||
|
<table class="space1" style="width:100%;">
|
||||||
|
<thead style="background-color: dimgrey">
|
||||||
|
<tr class="space1" >
|
||||||
|
<th class="text-center space1">No</th>
|
||||||
|
<th class="space1">Rekening</th>
|
||||||
|
<th class="space1">Cabang</th>
|
||||||
|
<th class="space1">Jenis Rekening</th>
|
||||||
|
<th class="space1">Mata Uang</th>
|
||||||
|
<th class="space1">Saldo</th>
|
||||||
|
<th class="space1">Jangka Waktu</th>
|
||||||
|
<th class="space1">Suku Bung</th>
|
||||||
|
<th class="space1">Tgl Jatuh Tempo</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@php $i=1 @endphp
|
||||||
|
@foreach ($data as $val)
|
||||||
|
<tr class="space1">
|
||||||
|
<td class="text-center space1">{{ $i++ }}</td>
|
||||||
|
<td class="space1">{{ $val->ACCOUNT_NUMBER }}</td>
|
||||||
|
<td class="space1">{{ $val->COMPANY_NAME }}</td>
|
||||||
|
<td class="space1">{{ $val->SHORT_NAME }}</td>
|
||||||
|
<td class="space1 texet-center">{{ $val->CURRENCY }}</td>
|
||||||
|
<td class="space1"></td>
|
||||||
|
<td class="space1"></td>
|
||||||
|
<td class="space1"></td>
|
||||||
|
<td class="space1"></td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
|
</table><br>
|
||||||
|
|
||||||
|
<p style="font-size: 12px;">PINJAMAN YANG DI BERIKAN OLEH BANK KEPADA NASABAH</p>
|
||||||
|
<p style="font-size: 12px;">POSISI ....</p>
|
||||||
|
<table class="space1" style="width:100%;">
|
||||||
|
<thead style="background-color: dimgrey">
|
||||||
|
<tr class="space1" >
|
||||||
|
<th class="space1 text-center">No</th>
|
||||||
|
<th class="space1">Jenis Pinjaman</th>
|
||||||
|
<th class="space1">Cabang</th>
|
||||||
|
<th class="space1">Jenis Rekening</th>
|
||||||
|
<th class="space1 ">Mata Uang</th>
|
||||||
|
<th class="space1">Saldo</th>
|
||||||
|
<th class="space1">Jangka Waktu</th>
|
||||||
|
<th class="space1">Suku Bung</th>
|
||||||
|
<th class="space1">Tgl Jatuh Tempo</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr class="space1">
|
||||||
|
<tr class="space1">
|
||||||
|
<td class="space1" colspan="9" style="text-align: center;">Tidak Ada Pinjaman</td>
|
||||||
|
</tr>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p style="font-size: 12px;">FASILITAS LAIN YANG DI TERIMA OLEH NASABAH</p>
|
||||||
|
<p style="font-size: 12px;">POSISI ....</p>
|
||||||
|
<table class="space1" style="width:100%;">
|
||||||
|
<thead style="background-color: dimgrey">
|
||||||
|
<tr class="space1" >
|
||||||
|
<th class="text-center space1">No</th>
|
||||||
|
<th class="space1">Jenis Fasilitas</th>
|
||||||
|
<th class="space1">Cabang</th>
|
||||||
|
<th class="space1">Jenis Rekening</th>
|
||||||
|
<th class="space1">Mata Uang</th>
|
||||||
|
<th class="space1">Saldo</th>
|
||||||
|
<th class="space1">Jangka Waktu</th>
|
||||||
|
<th class="space1">Suku Bung</th>
|
||||||
|
<th class="space1">Tgl Jatuh Tempo</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr class="space1">
|
||||||
|
<td class="space1" colspan="9" style="text-align: center;">Tidak Ada Fasilitas</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table><br>
|
||||||
|
|
||||||
|
<div style="width:300px">
|
||||||
|
<table style="width:100%;" class="space1">
|
||||||
|
<tr class="space1" style="height:500px">
|
||||||
|
<td class="space1" style="width:20%;font-size:12px;" >
|
||||||
|
<p style="margin-top:100px; text-align: center;">Nama Pejabat 1</p>
|
||||||
|
<p style="text-align: center;">Jabatan</p>
|
||||||
|
</td>
|
||||||
|
<td class="space1" style="width:20%;font-size:12px;" >
|
||||||
|
<p style="margin-top:100px; text-align: center;">Nama Pejabat 2</p>
|
||||||
|
<p style="text-align: center;">Jabatan</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
197
Resources/views/pages/index.blade.php
Normal file
197
Resources/views/pages/index.blade.php
Normal file
@ -0,0 +1,197 @@
|
|||||||
|
<x-default-layout>
|
||||||
|
@php
|
||||||
|
$route = explode('.', Route::currentRouteName());
|
||||||
|
@endphp
|
||||||
|
<!--begin::Card-->
|
||||||
|
<meta name="csrf-token" content="{{ csrf_token() }}" />
|
||||||
|
<div class="card card-xxl-stretch mb-5 mb-xl-8">
|
||||||
|
<!--begin::Card body-->
|
||||||
|
<div class="card-body pt-6">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row" >
|
||||||
|
<div class="col-md-3"></div>
|
||||||
|
<div class="col-md-6" style="border: 1px solid grey;padding: 20px;background-color:#f4f4f4">
|
||||||
|
<form>
|
||||||
|
<div class="row mb-3">
|
||||||
|
<label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm">No CIF</label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input type="text" class="form-control form-control-sm" name="cif" id="cif" placeholder="No CIF">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-3">
|
||||||
|
<label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm">Cabang</label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input type="text" class="form-control form-control-sm" name="kodecabang" id="kodecabang" placeholder="Nama Cabang">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-3">
|
||||||
|
<label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm">Priode</label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input type="number" class="form-control form-control-sm" min="2020" max="2023" name="periode" id="periode" placeholder="Periode">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="text-end">
|
||||||
|
<button type="submit" class="btn btn-primary btn-sm ms-auto" id="btnSubmit">Cari</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3 ">
|
||||||
|
|
||||||
|
|
||||||
|
<form class="form_customer2" method="POST" action="{{ route($route[0] . '.export') }}">
|
||||||
|
@csrf
|
||||||
|
|
||||||
|
<div class="d-flex flex-column mb-8 fv-row">
|
||||||
|
<input type="hidden" style="margin-bottom: 5px" name="cus_no" id="acc_no2" />
|
||||||
|
<input type="hidden" style="margin-bottom: 5px" name="acc_no" />
|
||||||
|
<input type="hidden" style="margin-bottom: 5px" name="kode_cabang" />
|
||||||
|
<input type="hidden" style="margin-bottom: 5px" name="periode" />
|
||||||
|
<div class="text-right ">
|
||||||
|
<div class="d-flex justify-content-end ">
|
||||||
|
<button type="submit" class="btn btn-light-primary exportPdf" style="display:none">
|
||||||
|
<i class="ki-duotone ki-exit-down fs-2"><span class="path1"></span><span
|
||||||
|
class="path2"></span></i>
|
||||||
|
Export Report
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body pt-6">
|
||||||
|
<form class="form_customer3" method="POST" action="{{ route($route[0] . '.export') }}">
|
||||||
|
<div class="form-check d-flex justify-content-end " style ="margin-right:45px">
|
||||||
|
<input class="form-check-input mycheck" type="checkbox" value="" id="selectAll">
|
||||||
|
<label class="form-check-label mycheck" for="" style="padding-left:5px">
|
||||||
|
All
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive " style="overflow-x:auto;">
|
||||||
|
<div id="user_table">
|
||||||
|
@include('konfirmasibank::pages.table')
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!--end::Card body-->
|
||||||
|
</div>
|
||||||
|
<!--end::Card-->
|
||||||
|
@push('customscript')
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$('.mycheck').hide();
|
||||||
|
$('#cif_null').hide();
|
||||||
|
|
||||||
|
$("#btnSubmit").click(
|
||||||
|
function(e) {
|
||||||
|
//cekForm();
|
||||||
|
$('.row-none').hide();
|
||||||
|
$('.mycheck').show();
|
||||||
|
$('.firstrow').remove();
|
||||||
|
$('.secondrow').remove();
|
||||||
|
$('.loading1').show();
|
||||||
|
e.preventDefault();
|
||||||
|
var actionUrl = $(".form_customer3").attr('action');
|
||||||
|
var cif = $("input[name=cif]").val();
|
||||||
|
var kodecabang = $("input[name=kodecabang]").val();
|
||||||
|
var periode = $("input[name=periode]").val();
|
||||||
|
$("input[name=cus_no]").val(cif)
|
||||||
|
$("input[name=kode_cabang]").val(kodecabang)
|
||||||
|
$("input[name=periode]").val(periode)
|
||||||
|
var no = 1;
|
||||||
|
|
||||||
|
$.ajaxSetup({
|
||||||
|
headers: {
|
||||||
|
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$.ajax({
|
||||||
|
url: "{{ route('getData') }}",
|
||||||
|
type: 'GET',
|
||||||
|
dataType: 'json',
|
||||||
|
success: 'success',
|
||||||
|
data: {
|
||||||
|
'cif': cif,
|
||||||
|
'kodecabang': kodecabang,
|
||||||
|
'periode': periode
|
||||||
|
},
|
||||||
|
success: function(items) {
|
||||||
|
$('.loading1').hide();
|
||||||
|
$.each(items, function(i, index) {
|
||||||
|
let dateString = moment(items[i]['MATURITY_DATE']).format("YYYY-MM-DD");
|
||||||
|
$('#dataBody').append('<tr class="secondrow"><td>' + (
|
||||||
|
no++) +
|
||||||
|
'</td><td>' + items[i]['ACCOUNT_NUMBER'] +
|
||||||
|
'</td><td>' + items[i]['COMPANY_NAME'] +
|
||||||
|
'</td><td>' + items[i]['SHORT_TITLE'] +
|
||||||
|
'</td><td>' + items[i]['WORKING_BALANCE'] +
|
||||||
|
'</td><td>' + items[i]['PRODUCT'] +
|
||||||
|
'</td><td>' + items[i]['CURRENCY']+
|
||||||
|
'</td><td>'+ dateString +
|
||||||
|
'</td><td class="tes"><div style="padding-left:22px" class="form-check form-check-custom form-check-solid me-10"><input class=" form-check-input h-20px w-20px acc_no" type="checkbox" name="account_number" value="' +
|
||||||
|
items[i]['ACCOUNT_NUMBER'] + '"></div></td></tr>'
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
var acc_no = [];
|
||||||
|
$('#table4 tbody').on('change', 'tr td.tes input[type=checkbox]', function() {
|
||||||
|
$('.exportPdf').show();
|
||||||
|
if ($(this).is(':checked')) {
|
||||||
|
// Do something...
|
||||||
|
acc_no.push($(this).val());
|
||||||
|
$("input[name=acc_no]").val(acc_no)
|
||||||
|
};
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
var arr = [];
|
||||||
|
$("#selectAll").on('click', function() {
|
||||||
|
$('.exportPdf').show();
|
||||||
|
$("input[type=checkbox]").prop('checked', $(this).prop('checked'));
|
||||||
|
$.each($("input[name='account_number']:checked"), function() {
|
||||||
|
arr.push($(this).val());
|
||||||
|
$("input[name=acc_no]").val(arr)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// new tempusDominus.TempusDominus(document.getElementById("kt_td_picker_localization"), {
|
||||||
|
// localization: {
|
||||||
|
// locale: "idn",
|
||||||
|
// startOfTheWeek: 1,
|
||||||
|
// format: "yyyy-MM-dd"
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// $(document).on('click', '.pagination a', function(event) {
|
||||||
|
// event.preventDefault();
|
||||||
|
// var page = $(this).attr('href').split('page=')[1];
|
||||||
|
// fetch_user_data(page);
|
||||||
|
// });
|
||||||
|
|
||||||
|
// function fetch_user_data(page) {
|
||||||
|
// $.ajax({
|
||||||
|
// url: "/konpirmasibank/pagination-ajax?page=" + page,
|
||||||
|
// success: function(data) {
|
||||||
|
// $('#user_table').html(data);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
</x-default-layout>
|
17
Resources/views/pages/pagination_data.blade.php
Normal file
17
Resources/views/pages/pagination_data.blade.php
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-striped table-bordered">
|
||||||
|
<tr>
|
||||||
|
<th width="10%">ACCOUNT NO</th>
|
||||||
|
<th width="40%">BRANCH</th>
|
||||||
|
<th width="50%">ACCOUNT TYPE</th>
|
||||||
|
</tr>
|
||||||
|
@foreach($data as $row)
|
||||||
|
<tr>
|
||||||
|
<td>{{ $row->account_number }}</td>
|
||||||
|
<td>{{ $row->branch_name }}</td>
|
||||||
|
<td>{{ $row->product_description }}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
{!! $data->links() !!}
|
||||||
|
</div>
|
29
Resources/views/pages/table.blade.php
Normal file
29
Resources/views/pages/table.blade.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<table class="table table-striped " id="table4">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col">No</th>
|
||||||
|
<th scope="col">Rekening</th>
|
||||||
|
<th scope="col">Cabang</th>
|
||||||
|
<th scope="col">Jenis Rekening</th>
|
||||||
|
<th scope="col">Saldo</th>
|
||||||
|
<th scope="col">Produk</th>
|
||||||
|
<th scope="col">Mata Uang</th>
|
||||||
|
<th scope="col">Tanggal Jatuh Tempo</th>
|
||||||
|
<th scope="col">Check List</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="dataBody">
|
||||||
|
<tr class="row-none">
|
||||||
|
<td colspan="10" class="text-center">Tidak Ada Data Yang Ditampilkan</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="display:none" class="loading1">
|
||||||
|
<td colspan="10" class="text-center">
|
||||||
|
<div class="spinner-border" role="status">
|
||||||
|
<span class="visually-hidden">Loading...</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
@ -17,7 +17,14 @@ $module = file_get_contents(dirname(__FILE__, 2) . '/module.json');
|
|||||||
$module = json_decode($module);
|
$module = json_decode($module);
|
||||||
|
|
||||||
Route::group(['middleware' => ['auth', 'verified']], function () {
|
Route::group(['middleware' => ['auth', 'verified']], function () {
|
||||||
Route::resource('konfirmasibank', KonfirmasiBankController::class);
|
//Route::resource('konfirmasibank', KonfirmasiBankController::class);
|
||||||
// Route::post('konfirmasibank/getPdf', [KonfirmasiBankController::class, 'getPdf'])->name('getPdf');
|
// Route::post('konfirmasibank/getPdf', [KonfirmasiBankController::class, 'getPdf'])->name('getPdf');
|
||||||
Route::Post('/export',[KonfirmasiBankController::class,'export'])->name('konfirmasibank.export');
|
Route::get('/konfirmasibank', 'KonfirmasiBankController@index')->name('konfirmasibank.index');
|
||||||
|
//Route::get('/list', [CustomerController::class, 'list'])->name('customer.list');
|
||||||
|
Route::get('getData',array('as'=>'getData','uses'=>'KonfirmasiBankController@getData'));
|
||||||
|
//Route::post('getPdf/',array('as'=>'getPdf','uses'=>'CustomerController@getPdf'));
|
||||||
|
Route::post('export', [KonfirmasiBankController::class, 'export'])->name('konfirmasibank.export');
|
||||||
|
//Route::get('/store', 'CustomerController@store');
|
||||||
|
// Route::get('/create', [CustomerController::class, 'create'])->name('customer.create');
|
||||||
|
//Route::Post('/export',[KonfirmasiBankController::class,'export'])->name('konfirmasibank.export');
|
||||||
});
|
});
|
Reference in New Issue
Block a user