tangguh lelong by pc
This commit is contained in:
@@ -128,6 +128,7 @@ class PaymentController extends Controller
|
||||
$user = Auth::user();
|
||||
|
||||
$bid_id = explode(",", $request->eachbid);
|
||||
dd($bid_id);
|
||||
|
||||
$resit = Resit::where('lelong_id', $request->lelong_id)
|
||||
->where('user_id',$request->user_id)
|
||||
@@ -222,14 +223,14 @@ class PaymentController extends Controller
|
||||
|
||||
public function banktransfer(Request $request)
|
||||
{
|
||||
// dd($request->all());
|
||||
dd($request->all());
|
||||
|
||||
$currentdate = Carbon::now();
|
||||
$currentdate = $currentdate->toDateTimeString();
|
||||
|
||||
$user = Auth::user();
|
||||
// dd($user);
|
||||
|
||||
// dd($request->checkboxdata);
|
||||
$totalcheck = implode(",", $request->checkboxdata);
|
||||
|
||||
$resit = Resit::where('lelong_id', $request->lelong_id)
|
||||
@@ -245,7 +246,7 @@ class PaymentController extends Controller
|
||||
$payment->status = 2;
|
||||
$payment->remark = 'BAYARAN CDM';
|
||||
$payment->resit_id = $resit->id;
|
||||
$payment->total_payment = $totalcheck;
|
||||
$payment->total_payment = sum($totalcheck->valueOf());
|
||||
$payment->diminta_pada = $currentdate;
|
||||
$payment->diminta_oleh = $user->id;
|
||||
$payment->save();
|
||||
|
||||
@@ -0,0 +1,160 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Carbon\Carbon;
|
||||
|
||||
use App\Models\Gadai;
|
||||
use App\Models\Cawangan;
|
||||
use App\Models\Customer;
|
||||
use App\Models\Lelong;
|
||||
use App\Models\LelongBid;
|
||||
use App\Models\LelongBidMarhun;
|
||||
use App\Models\CawanganLelong;
|
||||
use App\Models\Pengesahan;
|
||||
|
||||
class TangguhLelongController extends Controller
|
||||
{
|
||||
public function senleluntuktangguh()
|
||||
{
|
||||
$user = Auth::user();
|
||||
|
||||
$arrayinfo = [];
|
||||
|
||||
$lelong = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
|
||||
->join('cawangan','cawangan_lelong.caw_id', '=', 'cawangan.id')
|
||||
->where('cawangan.caw_code', $user->kodcaw)
|
||||
->where('sts_lelong', 0)
|
||||
->select('lelong_id','tarikh_lelong','masatamat_lelong','harga_emas_asas','jbg','cajlelong','sts_lelong')
|
||||
->groupBy('lelong_id')
|
||||
->get()
|
||||
->toArray();
|
||||
|
||||
foreach($lelong as $info)
|
||||
{
|
||||
|
||||
$detailsinfo = CawanganLelong::join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
|
||||
->where('lelong_id',$info['lelong_id'])
|
||||
->get()
|
||||
->toArray();
|
||||
array_push($arrayinfo,['info'=>$info, 'detailsinfo'=>$detailsinfo]);
|
||||
// dd($arrayinfo);
|
||||
|
||||
}
|
||||
|
||||
return view('tangguhlelong.senarailelongtangguh',compact('lelong', 'arrayinfo'));
|
||||
}
|
||||
|
||||
public function carian($lelong_id)
|
||||
{
|
||||
return view('tangguhlelong.carian', compact('lelong_id'));
|
||||
}
|
||||
|
||||
public function searchbyic(Request $request)
|
||||
{
|
||||
$user = Auth::user();
|
||||
|
||||
if($request->nokp == null)
|
||||
{
|
||||
return redirect()->route('tangguhlelong.carian', $request->lelong_id)->with('failed','Sila Masukkan No Kad Pengenalan');
|
||||
}
|
||||
else if($request->nokp != null)
|
||||
{
|
||||
$lelong = Lelong::where('id', $request->lelong_id)->first();
|
||||
|
||||
$getic = Customer::join('gadai', 'customer.nopelanggan', '=', 'gadai.nopelanggan')
|
||||
->where('customer.kpbaru', $request->nokp)
|
||||
->where('gadai.tempoh', $lelong->jbg)
|
||||
->get();
|
||||
|
||||
foreach($getic as $index1=>$ic)
|
||||
{
|
||||
$getnorujukan = LelongBid::join('lelongbidmarhun', 'lelongbid.id', '=', 'lelongbidmarhun.lelongbid_id')
|
||||
->where('norujukan', $ic->norujukan)
|
||||
->where('jbg', $ic->tempoh)
|
||||
->get();
|
||||
|
||||
$getic[$index1]['user_details'] = $getnorujukan;
|
||||
// dd($getic[$index1]['user_details']);
|
||||
}
|
||||
$lelong_id = $request->lelong_id;
|
||||
|
||||
return view('tangguhlelong.searchbyic', compact('getic', 'user', 'lelong_id' ));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function tangguhlelong(Request $request)
|
||||
{
|
||||
// dd($request->all());
|
||||
$user = Auth::user();
|
||||
$currentdate = Carbon::now();
|
||||
$currentdate = $currentdate->toDateTimeString();
|
||||
|
||||
$lelbidmarhun = $request->checkboxdata;
|
||||
|
||||
$lelong = Lelong::where('id', $request->lelong_id)->get()->toArray();
|
||||
|
||||
foreach($lelbidmarhun as $bidmarhun)
|
||||
{
|
||||
// dd($bidmarhun);
|
||||
$lelongbidmarhun = LelongBidMarhun::join('lelongbid', 'lelongbidmarhun.lelongbid_id', '=', 'lelongbid.id')
|
||||
->where('lelongbidmarhun.id', $bidmarhun)
|
||||
->select('lelongbidmarhun.id as lelongbidmarhun_id',
|
||||
'lelongbidmarhun.bil',
|
||||
'lelongbidmarhun.marhun',
|
||||
'lelongbidmarhun.nota',
|
||||
'lelongbidmarhun.old_karat',
|
||||
'lelongbidmarhun.karat',
|
||||
'lelongbidmarhun.old_berat',
|
||||
'lelongbidmarhun.berat',
|
||||
'lelongbidmarhun.old_harga',
|
||||
'lelongbidmarhun.harga',
|
||||
'lelongbidmarhun.old_nmarhun',
|
||||
'lelongbidmarhun.n_marhun',
|
||||
'lelongbidmarhun.old_hargaasas',
|
||||
'lelongbidmarhun.hargaasas',
|
||||
'lelongbid.id as lelongbid_id',
|
||||
'lelongbid.caw_id',
|
||||
'lelongbid.kodcaw',
|
||||
'lelongbid.norujukan',
|
||||
'lelongbid.t_lelong',
|
||||
'lelongbid.hargaasas',
|
||||
'lelongbid.nopembeli',
|
||||
'lelongbid.jbg',
|
||||
'lelongbid.kadarupah',
|
||||
'lelongbid.upahsimpan',
|
||||
'lelongbid.ansuran',
|
||||
'lelongbid.nilaimarhun',
|
||||
'lelongbid.pinjaman',
|
||||
'lelongbid.bakiupah',
|
||||
'lelongbid.cajlain',
|
||||
'lelongbid.cajlelong',
|
||||
'lelongbid.baki',
|
||||
'lelongbid.berat',
|
||||
'lelongbid.marhun',
|
||||
)
|
||||
->get()->toArray();
|
||||
// dd($lelongbidmarhun);
|
||||
|
||||
$pengesahan = new Pengesahan();
|
||||
$pengesahan->lelong_id = $request->lelong_id;
|
||||
$pengesahan->lelongbid_id = $lelongbidmarhun[0]['lelongbid_id'];
|
||||
$pengesahan->lelongbidmarhun_id = $lelongbidmarhun[0]['lelongbidmarhun_id'];
|
||||
$pengesahan->norujukan = $lelongbidmarhun[0]['norujukan'];
|
||||
$pengesahan->diminta_oleh = $user->id;
|
||||
$pengesahan->diminta_pada = $currentdate;
|
||||
$pengesahan->status = 2;
|
||||
$pengesahan->status_ubah = 6;
|
||||
|
||||
$deletemarhun = LelongBidMarhun::where('id', $lelongbidmarhun[0]['lelongbidmarhun_id'])
|
||||
->delete();
|
||||
}
|
||||
|
||||
return redirect()->route('tangguhlelong.carian', $request->lelong_id)->with('success','Tangguh Lelong Berjaya');
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Customer extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'customer';
|
||||
|
||||
protected $fillable = [
|
||||
'ahli',
|
||||
'kodcaw',
|
||||
'nosiri',
|
||||
'tarikhdaftar',
|
||||
'nopelanggan',
|
||||
'kplama',
|
||||
'kpbaru',
|
||||
'nama',
|
||||
't_lahir',
|
||||
'jantina',
|
||||
'alamat1',
|
||||
'alamat2',
|
||||
'alamat3',
|
||||
'alamat4',
|
||||
'poskod',
|
||||
'koddaerah',
|
||||
'kodnegeri',
|
||||
'telefon',
|
||||
'jumpinjaman',
|
||||
't_gadai',
|
||||
'pinjamhari',
|
||||
'bumiputra',
|
||||
'warganegara',
|
||||
'bangsa',
|
||||
'kodkerja',
|
||||
'kodugama',
|
||||
'kodstatus',
|
||||
'kodbank',
|
||||
'noakaun',
|
||||
'nota',
|
||||
'teller',
|
||||
'pelulus',
|
||||
't_ubah',
|
||||
'm_ubah',
|
||||
'aktif',
|
||||
'yuranahli',
|
||||
'nopelangganlama',
|
||||
'tujuangadai',
|
||||
'kodkerjabaru',
|
||||
'tagperingatan',
|
||||
'namateller',
|
||||
'kumpulan',
|
||||
'telefon2',
|
||||
'tagpelanggan'
|
||||
];
|
||||
}
|
||||
@@ -24,7 +24,7 @@ class CreatePengesahanTable extends Migration
|
||||
$table->integer('diminta_oleh');
|
||||
$table->datetime('diminta_pada');
|
||||
$table->integer('status')->default(0); //1 = terima, 2 = tangguh lelong
|
||||
$table->integer('status_ubah')->default(0); //1 = ubah mutu, 2 = tambah marhun, 3 = hapus marhun, 4 = ubah berat, 5 = ubah mutu & berat
|
||||
$table->integer('status_ubah')->default(0); //1 = ubah mutu, 2 = tambah marhun, 3 = hapus marhun, 4 = ubah berat, 5 = ubah mutu & berat, 6 = tangguh lelong pc
|
||||
$table->timestamps();
|
||||
|
||||
// $table->foreign('lelong_id')
|
||||
|
||||
@@ -71,6 +71,10 @@ class RolesSeeder extends Seeder
|
||||
'name' => 'serahan',
|
||||
'description' => 'Penyerahan Marhun Kepada Pembida Yang Menang'
|
||||
]);
|
||||
Permission::create([
|
||||
'name' => 'tangguhlelong',
|
||||
'description' => 'Penangguhan Lelong Cawangan'
|
||||
]);
|
||||
|
||||
//jurulelong
|
||||
Permission::create([
|
||||
@@ -152,7 +156,7 @@ class RolesSeeder extends Seeder
|
||||
$role4->givePermissionTo('jananotis');
|
||||
$role4->givePermissionTo('pengesahanbayarancash');
|
||||
$role4->givePermissionTo('serahan');
|
||||
|
||||
$role4->givePermissionTo('tangguhlelong');
|
||||
|
||||
$role5 = Role::create(['name' => 'jurulelong']);
|
||||
$role5->givePermissionTo('pendaftaranbatch');
|
||||
|
||||
@@ -83,6 +83,9 @@
|
||||
</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>
|
||||
|
||||
@@ -215,6 +215,7 @@
|
||||
$('#eachbid').val(arraylelongbid);
|
||||
$("#formbanktransfer").submit();
|
||||
var total_sum = parseFloat($('#total').val());
|
||||
$('#total').val(parseFloat(total_sum).toFixed(2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-6 mx-auto card">
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger" style="margin-top:1%;">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<h3 class="pt-3" style="margin-left:2%;">Sila Masukkan No Kad Pengenalan</h3>
|
||||
|
||||
<form action="{{route('tangguhlelong.searchbyic')}}" method="POST" id="formcariannokp">
|
||||
@csrf
|
||||
<input type="hidden" name="lelong_id" value="{{ $lelong_id }}">
|
||||
<div class="form-group row" style="margin-top:2%; margin-left:1%;">
|
||||
<label for="nokp" class=" col-form-label mr-3" style="margin-left:2%;">No Kad Pengenalan</label>
|
||||
<div>
|
||||
<input type="text" class="form-control" id="nokp" name="nokp" placeholder="xxxxxxxxxxxx">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-center" style="margin:2% 0%; ">
|
||||
<a href="{{ route('tangguhlelong.senleluntuktangguh') }}" class="btn btn-primary mr-2">Kembali</a>
|
||||
<button type="button" class="btn btn-primary" onclick="carian()" >Carian</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function carian()
|
||||
{
|
||||
$("#formcariannokp").submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,157 @@
|
||||
@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="formtangguhlelong" 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="tangguhlelong" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>JBG</th>
|
||||
<th>Narhun</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Berat</th>
|
||||
<th class="text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($getic as $ic)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{$ic['user_details'][0]['t_lelong']}}</td>
|
||||
<td>{{$ic['norujukan']}}</td>
|
||||
<td>{{$ic['jbg']}}</td>
|
||||
<td>{{$ic['marhun']}}</td>
|
||||
<td>{{$ic['nilaimarhun']}}</td>
|
||||
<td>{{$ic['pinjaman']}}</td>
|
||||
<td>{{$ic['berat']}}</td>
|
||||
<td class="text-center">
|
||||
<input type="checkbox" onclick="bidmarhunfunc(this)" aria-label="Checkbox for following text input" name="checkboxdata[]" value="{{ $ic['user_details'][0]['id'] }}" data-bidmarhun="{{ $ic['user_details'][0]['id'] }}">
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('tangguhlelong.carian', ['lelong_id'=>$ic['user_details'][0]['lelong_id']]) }}" class="btn btn-primary">Kembali</a>
|
||||
<button type="submit" class="btn btn-danger">Tangguh Lelong</button>
|
||||
</form>
|
||||
</div>
|
||||
</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 () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
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": 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 tangguhlelong',
|
||||
// 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) {
|
||||
tabletangguhlelong.rows().nodes().to$().find('input[type="checkbox"]').each(function(){
|
||||
$(this).prop('checked', cb.checked);
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,142 @@
|
||||
@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>Tarikh Lelong</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Harga Emas Asas</th>
|
||||
<th>JBG</th>
|
||||
<th>Caj Lelong</th>
|
||||
<th>Status Lelong</th>
|
||||
<th class="text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($arrayinfo as $lel)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td>{{ $lel['info']['tarikh_lelong']}}</td>
|
||||
<td>
|
||||
@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('tangguhlelong.carian', $lel['info']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Carian"><i class="fas fa-search"></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
|
||||
@@ -221,6 +221,12 @@ Route::group(['middleware' => ['permission:pengesahanbayarancash'],'prefix'=>'pe
|
||||
Route::post('/banktransfer', ['as'=>'pembayaran.banktransfer','uses'=>'PaymentController@banktransfer']);
|
||||
|
||||
});
|
||||
Route::group(['middleware' => ['permission:tangguhlelong'],'prefix'=>'tangguhlelong'], function () {
|
||||
Route::get('/senleluntuktangguh', ['as'=>'tangguhlelong.senleluntuktangguh','uses'=>'TangguhLelongController@senleluntuktangguh']);
|
||||
Route::get('/carian/{lelong_id}', ['as'=>'tangguhlelong.carian','uses'=>'TangguhLelongController@carian']);
|
||||
Route::post('/searchbyic', ['as'=>'tangguhlelong.searchbyic','uses'=>'TangguhLelongController@searchbyic']);
|
||||
Route::post('/tangguhlelong', ['as'=>'tangguhlelong.tangguhlelong','uses'=>'TangguhLelongController@tangguhlelong']);
|
||||
});
|
||||
// Pengurus Cawangan
|
||||
|
||||
// Account
|
||||
|
||||
Reference in New Issue
Block a user