update notis tuntut baki pdf
This commit is contained in:
@@ -34,6 +34,8 @@ use PDF;
|
|||||||
use DateTime;
|
use DateTime;
|
||||||
use Maatwebsite\Excel\Concerns\FromCollection;
|
use Maatwebsite\Excel\Concerns\FromCollection;
|
||||||
use Excel;
|
use Excel;
|
||||||
|
use App\Models\LelongCawangan;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1702,6 +1704,208 @@ Sekian, terima kasih.';
|
|||||||
$failed = FailedJob::all();
|
$failed = FailedJob::all();
|
||||||
return view('notisperingatan.failedjob',compact('failed'));
|
return view('notisperingatan.failedjob',compact('failed'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function notistuntutbaki()
|
||||||
|
{
|
||||||
|
$user = Auth::user();
|
||||||
|
|
||||||
|
$lelongid = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
|
||||||
|
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
|
||||||
|
->where('cawangan.caw_code','=',$user->kodcaw)
|
||||||
|
->where('lelong.sts_lelong','=', 3)
|
||||||
|
->orderby('lelong.tarikh_lelong','DESC')
|
||||||
|
->get();
|
||||||
|
// dd($lelongid);
|
||||||
|
foreach($lelongid as $index1=>$bil){
|
||||||
|
$lel = Lelong::with('cawangan')->find($bil['lelong_id']);
|
||||||
|
// dd($bil['lelong_id']);
|
||||||
|
$cawanganDetail = $lel->cawangan->find($bil['caw_id']);
|
||||||
|
$lelong_id = $bil['lelong_id'];
|
||||||
|
$caw = Cawangan::with(["lelongBid" => function($q) use ($lelong_id){
|
||||||
|
$q->where('lelong_id', '=', $lelong_id)->select('id','caw_id','kodcaw','norujukan','pinjaman','bakiupah','hargaasas','nilaimarhun','cajlelong','baki');
|
||||||
|
}])
|
||||||
|
->where('caw_code','=',$cawanganDetail->caw_code)->first();
|
||||||
|
|
||||||
|
$lelongbid_data_pluck_norujukan = $caw->lelongBid->pluck('norujukan')->toArray();
|
||||||
|
// $listsag = LelongBid::where('lelong_id', $bil['lelong_id'])
|
||||||
|
// ->where('kodcaw','=',$user->kodcaw)
|
||||||
|
// ->get();
|
||||||
|
$listsag = LelongCawangan::on($cawanganDetail->caw_code)->whereIn('lelong.norujukan', $lelongbid_data_pluck_norujukan)
|
||||||
|
->join('gadai','gadai.norujukan','=','lelong.norujukan')
|
||||||
|
->select('lelong.trkhtuntut','gadai.nokp','lelong.jbg','lelong.norujukan','lelong.berat','lelong.nilaimarhun','lelong.pinjaman','lelong.bakiupah','lelong.kadarupah','lelong.bakipjm','gadai.tempoh','gadai.tempohbayar','gadai.sttebus')
|
||||||
|
->where('trkhtuntut','=',null)
|
||||||
|
->where('baki','>', '0.00')
|
||||||
|
->orderBy('norujukan','ASC')
|
||||||
|
->get();
|
||||||
|
|
||||||
|
|
||||||
|
$lelongid[$index1]['bilangan'] = sizeof($listsag);
|
||||||
|
// dd(sizeof($listsag));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return view('jananotis.notistuntutbaki',compact('lelongid'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function senaraituntutbaki($lelongid, $cawid)
|
||||||
|
{
|
||||||
|
$total_berat = 0;
|
||||||
|
$total_pinjaman = 0;
|
||||||
|
$total_upah = 0;
|
||||||
|
$total_hargaasas = 0;
|
||||||
|
$total_bakiupah = 0;
|
||||||
|
$total_nilaimarhun = 0;
|
||||||
|
$total_cazlelong = 0;
|
||||||
|
$rugilelong = 0;
|
||||||
|
$bakilelong = 0;
|
||||||
|
$keuntungan = 0;
|
||||||
|
$total_baki = 0;
|
||||||
|
$total_ktlhbyr = 0;
|
||||||
|
$total_bakipjm = 0;
|
||||||
|
$total_cazlelong = 0;
|
||||||
|
$total_hargajual = 0;
|
||||||
|
$lelongid = $lelongid;
|
||||||
|
|
||||||
|
$lel = Lelong::with('cawangan')->find($lelongid);
|
||||||
|
|
||||||
|
$cawanganDetail = $lel->cawangan->find($cawid);
|
||||||
|
|
||||||
|
$caw = Cawangan::with(["lelongBid" => function($q) use ($lelongid){
|
||||||
|
$q->where('lelong_id', '=', $lelongid)->select('id','caw_id','kodcaw','norujukan','pinjaman','bakiupah','hargajual','nilaimarhun','cajlelong','baki');
|
||||||
|
}])
|
||||||
|
->where('caw_code','=',$cawanganDetail->caw_code)->first();
|
||||||
|
|
||||||
|
$lelongbid_data_pluck_norujukan = $caw->lelongBid->pluck('norujukan')->toArray();
|
||||||
|
$lelongbid_keyby_norujukan = $caw->lelongBid->keyBy('norujukan');
|
||||||
|
|
||||||
|
$lelongbid_all = LelongCawangan::on($cawanganDetail->caw_code)->whereIn('lelong.norujukan', $lelongbid_data_pluck_norujukan)
|
||||||
|
->join('gadai','gadai.norujukan','=','lelong.norujukan')
|
||||||
|
->select('lelong.trkhtuntut','gadai.nokp','lelong.jbg','lelong.norujukan','lelong.berat','lelong.nilaimarhun','lelong.pinjaman','lelong.bakiupah','lelong.kadarupah','lelong.bakipjm','gadai.tempoh','gadai.tempohbayar','gadai.sttebus')
|
||||||
|
->where('trkhtuntut','=',null)
|
||||||
|
->where('baki','>', '0.00')
|
||||||
|
->orderBy('norujukan','ASC')
|
||||||
|
->get();
|
||||||
|
// dd($lelongbid_all);
|
||||||
|
$transaksi_all_groupby_norujukan = $caw->lelongBid->groupBy('norujukan');
|
||||||
|
foreach($transaksi_all_groupby_norujukan as $index7=>$transaksi){
|
||||||
|
if($lelongbid_keyby_norujukan[$index7]){
|
||||||
|
|
||||||
|
$gadai_true = $lelongbid_keyby_norujukan[$index7];
|
||||||
|
$gadai_true['data'] = $transaksi;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// dd($gadai_true['data_transaksi']);
|
||||||
|
|
||||||
|
|
||||||
|
foreach($lelongbid_all as $index1=>$gadai){
|
||||||
|
$data_transaksi = $transaksi_all_groupby_norujukan[$gadai->norujukan];
|
||||||
|
// dd($data_transaksi[0]['cajlelong']);
|
||||||
|
$total_berat = $total_berat + $gadai['berat'];
|
||||||
|
$total_pinjaman = $total_pinjaman + $gadai['pinjaman'];
|
||||||
|
$total_bakipjm = $total_bakipjm + $gadai['bakipjm'];
|
||||||
|
$total_nilaimarhun = $total_nilaimarhun + $gadai['nilaimarhun'];
|
||||||
|
$total_bakiupah = $total_bakiupah + $gadai['bakiupah'];
|
||||||
|
$total_cazlelong = $total_cazlelong + $data_transaksi[0]['cajlelong'];
|
||||||
|
$total_hargajual = $total_hargajual + $data_transaksi[0]['hargajual'];
|
||||||
|
|
||||||
|
$lelongbid_all[$index1]['lelongbid'] = $data_transaksi ;
|
||||||
|
}
|
||||||
|
|
||||||
|
$arrayinfo = [];
|
||||||
|
|
||||||
|
$lelong_id = Lelong::join('cawangan_lelong','lelong.id','=','cawangan_lelong.lelong_id')
|
||||||
|
->where('cawangan_lelong.lelong_id','=',$lelongid)
|
||||||
|
->select('lelong_id','tarikh_lelong','lelong.fasa')
|
||||||
|
->groupBy('lelong_id')
|
||||||
|
->get()->toArray();
|
||||||
|
|
||||||
|
|
||||||
|
foreach($lelong_id as $laporan)
|
||||||
|
{
|
||||||
|
$details = CawanganLelong::join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
|
||||||
|
->where('lelong_id',$laporan['lelong_id'])
|
||||||
|
->where('caw_id',$cawid)
|
||||||
|
->get()
|
||||||
|
->toArray();
|
||||||
|
array_push($arrayinfo,['laporan' => $laporan,'details' => $details]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return view('lelong.senaraituntutbaki',compact('arrayinfo','lelongbid_all','total_berat',
|
||||||
|
'total_nilaimarhun',
|
||||||
|
'total_pinjaman',
|
||||||
|
'total_bakipjm',
|
||||||
|
'total_bakiupah',
|
||||||
|
'total_ktlhbyr',
|
||||||
|
'total_cazlelong',
|
||||||
|
'total_hargajual',
|
||||||
|
'lel',
|
||||||
|
'lelongid',
|
||||||
|
'cawid',
|
||||||
|
'cawanganDetail'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function surattuntutbakipdf($lelong_id)
|
||||||
|
{
|
||||||
|
// focus only on variable: $marhuns, $lelongid, $caw, $tarikh_cetak
|
||||||
|
// variable not use: $lelong_id, $customer, $listsag
|
||||||
|
|
||||||
|
$user = Auth::user();
|
||||||
|
|
||||||
|
$caw = Cawangan::where('caw_code', '=', $user->kodcaw)->first();
|
||||||
|
|
||||||
|
$currentdate = Carbon::now();
|
||||||
|
$tarikh_cetak = $currentdate->toDateString();
|
||||||
|
$taxation = config('app.taxation');
|
||||||
|
// $lelongid = Lelong::find($lelong_id);
|
||||||
|
// $arraynorujukan = LelongBid::where('lelong_id', $lelong_id)->where('kodcaw', $caw->caw_code)->pluck('norujukan');
|
||||||
|
// $marhuns = Gadai::on($caw->caw_code)->whereIn('norujukan', $arraynorujukan)->select('nokp', 'norujukan')->orderBy('nokp', 'asc')->get();
|
||||||
|
$lel = Lelong::with('cawangan')->find($lelong_id);
|
||||||
|
|
||||||
|
$cawanganDetail = $lel->cawangan->find($caw->id);
|
||||||
|
|
||||||
|
$cawangan = Cawangan::with(["lelongBid" => function($q) use ($lelong_id){
|
||||||
|
$q->where('lelong_id', '=', $lelong_id)->select('id','caw_id','kodcaw','norujukan','pinjaman','bakiupah','hargaasas','nilaimarhun','cajlelong','baki');
|
||||||
|
}])
|
||||||
|
->where('caw_code','=',$cawanganDetail->caw_code)->first();
|
||||||
|
$lelongbid_data_pluck_norujukan = $cawangan->lelongBid->pluck('norujukan')->toArray();
|
||||||
|
$marhuns = LelongCawangan::on($cawanganDetail->caw_code)->whereIn('lelong.norujukan', $lelongbid_data_pluck_norujukan)
|
||||||
|
->join('gadai','gadai.norujukan','=','lelong.norujukan')
|
||||||
|
->where('trkhtuntut','=',null)
|
||||||
|
->where('baki','>', '0.00')
|
||||||
|
->select('nokp', 'lelong.norujukan','lelong.t_lelong AS tarikhlelong','lelong.hargajual','lelong.gst_hj','gadai.bakipjm','lelong.bakiupah','lelong.cajlelong','lelong.gst_cl','lelong.cajlain','lelong.baki')
|
||||||
|
->orderBy('nokp', 'asc')
|
||||||
|
->orderBy('lelong.norujukan','ASC')
|
||||||
|
->get();
|
||||||
|
// dd($marhuns);
|
||||||
|
|
||||||
|
$marhuns_pluck_nokp = $marhuns->pluck('nokp');
|
||||||
|
|
||||||
|
$customers = Customer::whereIn('kpbaru', $marhuns_pluck_nokp)
|
||||||
|
->orWhereIn('kplama', $marhuns_pluck_nokp)
|
||||||
|
->join('poskod', 'customer.poskod', '=', 'poskod.poskod')
|
||||||
|
->join('daerah', 'poskod.koddaerah', '=', 'daerah.koddaerah')
|
||||||
|
->join('negeri', 'poskod.kodnegeri', '=', 'negeri.kodnegeri')
|
||||||
|
->get();
|
||||||
|
|
||||||
|
$customers_keyBy_noKp = $customers->keyBy(function ($item) {
|
||||||
|
if ($item->kpbaru != '') {
|
||||||
|
return $item->kpbaru;
|
||||||
|
} else if ($item->kplama != '') {
|
||||||
|
return $item->kplama;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
foreach ($marhuns as $index => $marhun) {
|
||||||
|
if ($customers_keyBy_noKp[$marhun->nokp]) {
|
||||||
|
$marhuns[$index]['nama'] = $customers_keyBy_noKp[$marhun->nokp];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$pdf = PDF::loadView('pdf.pdfnotistuntutbaki', compact('marhuns', 'lelong_id', 'caw', 'tarikh_cetak','taxation'))
|
||||||
|
->setPaper('a4', 'potrait');
|
||||||
|
|
||||||
|
return $pdf->download('Penjanaan Notis Tuntut Baki ' . $lelong_id . '.pdf');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,106 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class LelongCawangan extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $connection = 'main';
|
||||||
|
protected $table = 'lelong';
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'batchno',
|
||||||
|
'sirilel',
|
||||||
|
'kodcaw',
|
||||||
|
'norujukan',
|
||||||
|
't_lelong',
|
||||||
|
'hargaasas',
|
||||||
|
'sandaran',
|
||||||
|
'hargajual',
|
||||||
|
'glcode',
|
||||||
|
't_jual',
|
||||||
|
'nopembeli',
|
||||||
|
'jbg',
|
||||||
|
'kadarupah',
|
||||||
|
'upahsimpan',
|
||||||
|
'ansuran',
|
||||||
|
'nilaimarhun',
|
||||||
|
'pinjaman',
|
||||||
|
'bakipjmas',
|
||||||
|
'bakipjm',
|
||||||
|
'bakiupahas',
|
||||||
|
'bakiupah',
|
||||||
|
'cajlainas',
|
||||||
|
'cajlain',
|
||||||
|
'cajlelongas',
|
||||||
|
'cajlelong',
|
||||||
|
'baki',
|
||||||
|
'terima',
|
||||||
|
'cetak',
|
||||||
|
'teller',
|
||||||
|
'pelulus',
|
||||||
|
'pelulust',
|
||||||
|
'f_lulus',
|
||||||
|
'type',
|
||||||
|
'prkod',
|
||||||
|
'tagsurat',
|
||||||
|
'trkhtuntut',
|
||||||
|
'tellertb',
|
||||||
|
'pelulustb',
|
||||||
|
'terimatb',
|
||||||
|
't_hapuskira',
|
||||||
|
'hapuskira',
|
||||||
|
'hkpjm',
|
||||||
|
'cancelid',
|
||||||
|
'canceltime',
|
||||||
|
'kodgl',
|
||||||
|
't_update',
|
||||||
|
'berat',
|
||||||
|
'marhun',
|
||||||
|
'recno',
|
||||||
|
'lebihkurang',
|
||||||
|
'nilaimarhuns',
|
||||||
|
'tagaid',
|
||||||
|
'gst_hj',
|
||||||
|
'gst_cl',
|
||||||
|
'hargajual_sim',
|
||||||
|
'cajlelong_sim',
|
||||||
|
'gst_hj_sim',
|
||||||
|
'gst_cl_sim',
|
||||||
|
'bakiupah_sim',
|
||||||
|
'hargaasas_sim',
|
||||||
|
'mutu_terendah',
|
||||||
|
'harga_baru',
|
||||||
|
'turun',
|
||||||
|
'percent',
|
||||||
|
'baki_sim',
|
||||||
|
'hargalama',
|
||||||
|
't_lelong_sim',
|
||||||
|
'tag_gst',
|
||||||
|
'makan_pinj',
|
||||||
|
'baki_upah6',
|
||||||
|
'baki6',
|
||||||
|
'rugi_asal',
|
||||||
|
'tagpelanggan',
|
||||||
|
'fasa',
|
||||||
|
'pmt',
|
||||||
|
'tagpmt',
|
||||||
|
'hargaasasasal',
|
||||||
|
'beratasal',
|
||||||
|
'loopsemak',
|
||||||
|
'lel1stop',
|
||||||
|
'jbg_lelong',
|
||||||
|
'berat_plastik',
|
||||||
|
'status_bida_online',
|
||||||
|
'nopelanggan',
|
||||||
|
'tag_tbaki',
|
||||||
|
'pel_tbaki',
|
||||||
|
'tagcall'
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -252,4 +252,6 @@ return [
|
|||||||
'app_pembida' => env('APP_PEMBIDA', 'http://localhost:8080'),
|
'app_pembida' => env('APP_PEMBIDA', 'http://localhost:8080'),
|
||||||
|
|
||||||
'storage_directory' => env('STORAGE_DIRECTORY', storage_path()),
|
'storage_directory' => env('STORAGE_DIRECTORY', storage_path()),
|
||||||
|
|
||||||
|
'taxation' => env('TAX_AROS',true),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -208,6 +208,11 @@
|
|||||||
<a href="{{url('jananotis/notislelong')}}">Jana Notis Lelong</a>
|
<a href="{{url('jananotis/notislelong')}}">Jana Notis Lelong</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<ul class="list-unstyled collapse {{ (request()->is('jananotis/*')) ? 'show' : '' }}" id="jananotisSubmenu">
|
||||||
|
<li class="{{ (request()->is('jananotis/notistuntutbaki/*') || request()->is('jananotis/notistuntutbaki') ) ? 'active' : '' }}">
|
||||||
|
<a href="{{url('jananotis/notistuntutbaki')}}">Notis Tuntutan Baki</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<ul class="list-unstyled collapse {{ (request()->is('jananotis/*')) ? 'show' : '' }}" id="jananotisSubmenu">
|
<ul class="list-unstyled collapse {{ (request()->is('jananotis/*')) ? 'show' : '' }}" id="jananotisSubmenu">
|
||||||
<li class="{{ (request()->is('jananotis/notistamatkontrak/*') || request()->is('jananotis/notistamatkontrak') ) ? 'active' : '' }}">
|
<li class="{{ (request()->is('jananotis/notistamatkontrak/*') || request()->is('jananotis/notistamatkontrak') ) ? 'active' : '' }}">
|
||||||
<a href="{{url('jananotis/notistamatkontrak')}}">Notis Peringatan Tamat Kontrak</a>
|
<a href="{{url('jananotis/notistamatkontrak')}}">Notis Peringatan Tamat Kontrak</a>
|
||||||
@@ -653,6 +658,9 @@
|
|||||||
<li class="{{ (request()->is('pembida/kebenaranbayarantunai/*') || request()->is('pembida/kebenaranbayarantunai') ) ? 'active' : '' }}">
|
<li class="{{ (request()->is('pembida/kebenaranbayarantunai/*') || request()->is('pembida/kebenaranbayarantunai') ) ? 'active' : '' }}">
|
||||||
<a href="{{url('pembida/kebenaranbayarantunai')}}">Kebenaran Bayaran Tunai</a>
|
<a href="{{url('pembida/kebenaranbayarantunai')}}">Kebenaran Bayaran Tunai</a>
|
||||||
</li>
|
</li>
|
||||||
|
{{-- <li class="{{ (request()->is('pembida/grafpembida/*') || request()->is('pembida/grafpembida') ) ? 'active' : '' }}">
|
||||||
|
<a href="{{url('pembida/grafpembida')}}">Graf Pembida</a>
|
||||||
|
</li> --}}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="{{ (request()->is('pengguna/*')) ? 'active' : '' }}">
|
<li class="{{ (request()->is('pengguna/*')) ? 'active' : '' }}">
|
||||||
|
|||||||
@@ -0,0 +1,119 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="col">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header header-style">
|
||||||
|
<div class="header-style-title">
|
||||||
|
Jana Notis Tuntut baki
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
@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 text-center table-bordered" id="tablenotislelong" style="width:100%">
|
||||||
|
<thead class="bg-primary text-white">
|
||||||
|
<tr>
|
||||||
|
{{-- <th><input type="checkbox" aria-label="Checkbox for following text input" onclick="selectall(this)"></th> --}}
|
||||||
|
<th>Batch Lelong</th>
|
||||||
|
<th>Tarikh Lelong</th>
|
||||||
|
<th>Fasa</th>
|
||||||
|
<th>Bilangan SAG</th>
|
||||||
|
<th class="text-center">Tindakan</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
|
||||||
|
@foreach ($lelongid as $bid)
|
||||||
|
<tr>
|
||||||
|
{{-- <td><input type="checkbox" aria-label="Checkbox for following text input" name="checkboxdata[]" value="{{ $bid->id }}"></td> --}}
|
||||||
|
<td>{{ $bid->lelong_id}}</td>
|
||||||
|
<td> @php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $bid->tarikh_lelong );
|
||||||
|
$datez = $myDateTime->format('d-m-Y');
|
||||||
|
echo($datez);
|
||||||
|
@endphp</td>
|
||||||
|
<td>{{ $bid->fasa }}</td>
|
||||||
|
<td>{{ $bid['bilangan'] }}</td>
|
||||||
|
<td class="text-center">
|
||||||
|
<a class="btn m-1 btn-primary" href="{{ route('jananotis.senaraituntutbaki',['lelongid'=>$bid->lelong_id,'cawid'=>$bid['caw_id']]) }}" data-toggle="tooltip" data-placement="top" title="Butiran Senarai Notis" ><i class="far fa-edit"></i></a>
|
||||||
|
{{-- @if($bid->fasa == '1') --}}
|
||||||
|
<a class="confirmrefresh btn m-1 btn-warning" href="{{ route('jananotis.surattuntutbakipdf',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Jana Notis Fasa 1" style="margin-right:40px" ><i class="fas fa-download"></i></a>
|
||||||
|
|
||||||
|
{{-- @elseif($bid->fasa == '2')
|
||||||
|
<a class="confirmrefresh btn m-1 btn-warning" href="{{ route('jananotis.jananotisfasa2',$bid->lelong_id) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Jana Notis Fasa 2" style="margin-right:40px" ><i class="fas fa-download"></i></a>
|
||||||
|
@endif --}}
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
//Enable tooltips everywhere
|
||||||
|
$(function () {
|
||||||
|
$('[data-toggle="tooltip"]').tooltip()
|
||||||
|
})
|
||||||
|
var tablenotislelong = $('#tablenotislelong').DataTable({
|
||||||
|
"columnDefs": [
|
||||||
|
{
|
||||||
|
"targets": 0,
|
||||||
|
"orderable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"targets": 3,
|
||||||
|
"orderable": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
order: [[0, 'DESC']],
|
||||||
|
"info": false,
|
||||||
|
"lengthChange": false,
|
||||||
|
"pageLength": 15,
|
||||||
|
dom: 'Bfrtip',
|
||||||
|
// buttons: [
|
||||||
|
// {
|
||||||
|
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm addcaw',
|
||||||
|
// text: '<i class="fas fa-plus" id="test"></i>',
|
||||||
|
// titleAttr: 'Tambah Cawangan',
|
||||||
|
// action: function ( e, dt, node, config ) {
|
||||||
|
// // alert( 'Button activated' );
|
||||||
|
// // console.log('hye');
|
||||||
|
|
||||||
|
// $('#myModal').modal("show");
|
||||||
|
// $('#myModal').on('shown.bs.modal', function () {
|
||||||
|
// $('#rolename').trigger('focus')
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// 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();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
});
|
||||||
|
|
||||||
|
// $('.addcaw').tooltip();
|
||||||
|
// $('.export').tooltip();
|
||||||
|
// // $( '.dt-buttons').addClass('btn-group');
|
||||||
|
// $( '.addcaw').removeClass('dt-button');
|
||||||
|
// $( '.export').removeClass('dt-button');
|
||||||
|
</script>
|
||||||
|
@endsection
|
||||||
@@ -0,0 +1,202 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row ">
|
||||||
|
<div class="col mx-auto p-4">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header header-style">
|
||||||
|
<a href="{{ route('jananotis.notistuntutbaki') }}" class="header-style-icon">
|
||||||
|
<i class="fas fa-arrow-left"></i>
|
||||||
|
</a>
|
||||||
|
<div class="header-style-title">
|
||||||
|
senarai Tuntut Baki
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
@if ($message = Session::get('success'))
|
||||||
|
<div class="alert alert-success">
|
||||||
|
{{ $message }}
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
<div class="col-3">
|
||||||
|
@foreach ($arrayinfo as $laporan)
|
||||||
|
@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
|
||||||
|
$datez = $myDateTime->format('d-m-Y');
|
||||||
|
// echo($datez);
|
||||||
|
@endphp
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="col-6 col-form-label text-left">Tarikh Lelong</label>
|
||||||
|
<div class="col-6">
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="text" readonly class="form-control bg-light" value="{{$datez}}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-3">
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="col-6 col-form-label text-left">Bil SAG Cawangan</label>
|
||||||
|
<div class="col-6">
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="text" readonly class="form-control bg-light" value="{{sizeof($lelongbid_all)}}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{-- <div class="mb-3">
|
||||||
|
<a href=" {{ route('report.lelongreport',[$lelongid,$cawid]) }}" class="btn btn-outline-success">Muat Turun PDF</a>
|
||||||
|
<a href="{{ route('jananotis.listsagbycust',[$lelongid,$cawid]) }}" class="btn btn-primary">Senarai Mengikut Nama Pelanggan</a>
|
||||||
|
</div> --}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@if ($message = Session::get('success'))
|
||||||
|
<div class="alert alert-success">
|
||||||
|
<p>{{ $message }}</p>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
{{-- <div class="text-left pt-4">
|
||||||
|
<a href=" {{ route('jananotis.lelongreportpc',[$lelongid,$cawid]) }}" class="btn btn-success">PDF</a>
|
||||||
|
<a href="{{ route('jananotis.senaraimarhunsimulasi',[$lelongid,$cawid]) }}" class="btn btn-success">Simulasi Lelong</a>
|
||||||
|
<a href="{{ route('jananotis.listsagbycust',[$lelongid,$cawid]) }}" class="btn btn-success">Senarai Mengikut Nama Pelangan</a>
|
||||||
|
<a href="{{ route('lelonghargajual.senaraimarhunkhasbelumjual',[$lelongid,$cawid]) }}" class="btn btn-success">Belum Jual</a>
|
||||||
|
<a href="{{ route('lelonghargajual.senaraimarhunkhastelahjual',[$lelongid,$cawid]) }}" class="btn btn-success">Telah Jual</a>
|
||||||
|
|
||||||
|
</div> --}}
|
||||||
|
<form id="deletesag" action="{{route('lelonghargajual.deletemarhun')}}" method="POST">
|
||||||
|
@csrf
|
||||||
|
<input type="hidden" name="lelongid" value="{{$lelongid}}">
|
||||||
|
<input type="hidden" name="cawid" value="{{$cawid}}">
|
||||||
|
<table class="table text-right table-bordered" id="marhun" style="width:100%">
|
||||||
|
<thead class="bg-primary text-white">
|
||||||
|
<tr>
|
||||||
|
<th>No</th>
|
||||||
|
<th>No Rujukan</th>
|
||||||
|
{{-- <th>Nama Pelanggan</th> --}}
|
||||||
|
<th>Tempoh</th>
|
||||||
|
<th>Berat (gm)</th>
|
||||||
|
<th>Nilai Marhun Asal (RM)</th>
|
||||||
|
<th>Pembiayaan (RM)</th>
|
||||||
|
<th>Keuntungan (RM)</th>
|
||||||
|
<th>Caj Lelong (RM)</th>
|
||||||
|
<th>Harga Asas (RM)</th>
|
||||||
|
<th>Baki Lelong (RM)</th>
|
||||||
|
<th>Tag Tuntut</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@php
|
||||||
|
$rugilelong = 0;
|
||||||
|
$bakilelong = 0;
|
||||||
|
@endphp
|
||||||
|
@foreach ($lelongbid_all as $index=> $marhun)
|
||||||
|
{{-- {{dd($marhun->lelongbid[0]->cajlelong)}} --}}
|
||||||
|
<tr>
|
||||||
|
<td>{{$loop->iteration}}</td>
|
||||||
|
<td align = 'left' style="white-space: nowrap;">{{ $marhun->norujukan}}</td>
|
||||||
|
{{-- <td align = 'left' style="white-space: nowrap;">{{ $marhun['nama']['nama']}}</td> --}}
|
||||||
|
<td>{{ number_format($marhun->jbg, 2, '.', ',') }}</td>
|
||||||
|
<td align = 'right'>{{ number_format($marhun->berat, 2, '.', ',') }}</td>
|
||||||
|
<td align = 'right'>{{ number_format($marhun->nilaimarhun, 2, '.', ',') }}</td>
|
||||||
|
<td align = 'right'>{{ number_format($marhun->pinjaman, 2, '.', ',') }}</td>
|
||||||
|
<td align = 'right'>{{ number_format($marhun->bakiupah, 2, '.', ',') }}</td>
|
||||||
|
<td align = 'right'>{{ number_format($marhun->lelongbid[0]['cajlelong'], 2, '.', ',') }}</td>
|
||||||
|
<td align = 'right'>{{ number_format($marhun->lelongbid[0]['hargajual'], 2, '.', ',') }}</td>
|
||||||
|
@php
|
||||||
|
$rugi = 0;
|
||||||
|
$baki = 0;
|
||||||
|
if(strpos($marhun->lelongbid[0]['baki'], '-') !== false)
|
||||||
|
{
|
||||||
|
$baki = -$marhun->lelongbid[0]['baki'];
|
||||||
|
$bakilelong += $marhun->lelongbid[0]['baki'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$baki = $marhun->lelongbid[0]['baki'];
|
||||||
|
$bakilelong += $marhun->lelongbid[0]['baki'];
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<td align = 'right'>@if($marhun->lelongbid[0]['baki'] > 0)
|
||||||
|
{{number_format($marhun->lelongbid[0]['baki'], 2, '.', ',')}}
|
||||||
|
@elseif($marhun->lelongbid[0]['baki'] < 0 )
|
||||||
|
({{number_format(-($marhun->lelongbid[0]['baki']), 2, '.', ',')}})
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
<td align = 'right'><span class="badge badge-pill badge-success">Belum Tuntut</span></td>
|
||||||
|
|
||||||
|
{{-- <td class="text-center">
|
||||||
|
<input type="checkbox" aria-label="Checkbox for following text input" id="checkboxdata[]" name="checkboxdata[]" value="{{ $marhun['norujukan'] }}">
|
||||||
|
</td> --}}
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td colspan="3"><b>JUMLAH KESELURUHAN</b></td>
|
||||||
|
<td align = 'right'><b><b>{{ number_format($total_berat, 2, '.', ',') }}</b></td>
|
||||||
|
<td align = 'right'><b>{{ number_format($total_nilaimarhun, 2, '.', ',') }}</b></td>
|
||||||
|
<td align = 'right'><b>{{ number_format($total_pinjaman, 2, '.', ',') }}</b></td>
|
||||||
|
<td align = 'right'><b>{{ number_format($total_bakiupah, 2, '.', ',') }}</b></td>
|
||||||
|
<td align = 'right'><b>{{ number_format($total_cazlelong, 2, '.', ',') }}</b></td>
|
||||||
|
<td align = 'right'><b>{{ number_format($total_hargajual, 2, '.', ',') }}</b></td>
|
||||||
|
<td align = 'right'><b>@if($bakilelong > 0)
|
||||||
|
{{ number_format($bakilelong, 2, '.', ',') }}
|
||||||
|
@else
|
||||||
|
({{number_format(-($bakilelong), 2, '.', ',')}})
|
||||||
|
@endif</b></td>
|
||||||
|
<td align = 'right'></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
<div class="text-right pt-4">
|
||||||
|
{{-- <a href="{{ route('lelong.show',$lelongid) }}" class="btn btn-primary">Kembali</a> --}}
|
||||||
|
{{-- <button type="button" class="btn btn-danger" onclick="confirm()">Hapus</button> --}}
|
||||||
|
</div>
|
||||||
|
{{-- <a href="{{url('lelong/senarailelong')}}" class="btn btn-primary">Kembali</a> --}}
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function confirm() {
|
||||||
|
$.confirm({
|
||||||
|
title: 'Confirmation',
|
||||||
|
content: 'Anda pasti?',
|
||||||
|
type: 'red',
|
||||||
|
typeAnimated: true,
|
||||||
|
buttons: {
|
||||||
|
Delete: {
|
||||||
|
btnClass: 'btn-danger',
|
||||||
|
action: function() {
|
||||||
|
$("#deletesag").submit();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Batal: {
|
||||||
|
btnClass: 'btn-default',
|
||||||
|
action: function() {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
var tablemarhun = $('#marhun').DataTable({
|
||||||
|
"info": false,
|
||||||
|
"lengthChange": false,
|
||||||
|
"pageLength": 999999,
|
||||||
|
dom: 'Bfrtip',
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endsection
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
<td style="vertical-align:top;">KEPADA</td>
|
<td style="vertical-align:top;">KEPADA</td>
|
||||||
<td style="vertical-align:top;">:</td>
|
<td style="vertical-align:top;">:</td>
|
||||||
<td style="vertical-align:top;">{{ $notis['nama']['nama']}}
|
<td style="vertical-align:top;">{{ $notis['nama']['nama']}}
|
||||||
<br> {{ strtoupper($notis['nama']['alamat1']) }}
|
<br> {{ strtoupper($notis['nama']['alamat1']) }} <br>
|
||||||
{{-- {!! ($notis['nama']['alamat1'] === null || $notis['nama']['alamat1'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat1']) !!} <br> --}}
|
{{-- {!! ($notis['nama']['alamat1'] === null || $notis['nama']['alamat1'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat1']) !!} <br> --}}
|
||||||
{{-- {!! ($notis['nama']['alamat2'] === null || $notis['nama']['alamat2'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat2']) !!} <br> --}}
|
{{-- {!! ($notis['nama']['alamat2'] === null || $notis['nama']['alamat2'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat2']) !!} <br> --}}
|
||||||
{{ ' ' . $notis['nama']['poskod'] . ' ' . strtoupper($notis['nama']['namadaerah']) . ' ' . strtoupper($notis['nama']['negeri'])}}</td>
|
{{ ' ' . $notis['nama']['poskod'] . ' ' . strtoupper($notis['nama']['namadaerah']) . ' ' . strtoupper($notis['nama']['negeri'])}}</td>
|
||||||
|
|||||||
@@ -0,0 +1,287 @@
|
|||||||
|
<style>
|
||||||
|
#header {
|
||||||
|
/* font-family: Arial, Helvetica, sans-serif; */
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header td, #customers th {
|
||||||
|
|
||||||
|
padding-left:4px;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#header tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#header th {
|
||||||
|
/* padding-top: 12px;
|
||||||
|
padding-bottom: 12px; */
|
||||||
|
text-align: left;
|
||||||
|
/* padding:4px; */
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
/* font-family: Arial, Helvetica, sans-serif; */
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td, #scan th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#scan tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#scan {
|
||||||
|
/* font-family: Arial, Helvetica, sans-serif; */
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan td, #scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#scan tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#scan th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#details {
|
||||||
|
/* font-family: Arial, Helvetica, sans-serif; */
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details td, #details th {
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#details tr:nth-child(even){background-color: #ffffff;}
|
||||||
|
|
||||||
|
#details tr:hover {background-color: #ddd;}
|
||||||
|
|
||||||
|
#details th {
|
||||||
|
padding-top: 12px;
|
||||||
|
font-style:bold;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
text-align: left;
|
||||||
|
padding:4px;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
.container{
|
||||||
|
page-break-after:always;
|
||||||
|
padding: 20px 20px 20px 20px;
|
||||||
|
}
|
||||||
|
.tablestyle{
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
.tablestyle td, .tablestyle th{
|
||||||
|
/* padding-top: 12px; */
|
||||||
|
/* border:1px solid black; */
|
||||||
|
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@foreach($marhuns as $index1=> $notis)
|
||||||
|
{{-- {{dd($notis['nama']['alamat1'])}} --}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<table id="header">
|
||||||
|
<tr>
|
||||||
|
{{-- <th rowspan="4"style="width:100px"><br><img src="{{ asset('img/icon_pkb.png') }}" style="width:70px"></img></th> --}}
|
||||||
|
<th colspan="1">{{ $caw['caw_name'] }}</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="vertical-align:top;">{{ $caw['alamat1'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="vertical-align:top;">{{ $caw['alamat2'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="vertical-align:top;">{{ ' No Tel : '. $caw['notel'] . ' No Faks : '. $caw['nofaks'] }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<table class="tablestyle">
|
||||||
|
<tr>
|
||||||
|
<td width="15%">TARIKH CETAK
|
||||||
|
</td>
|
||||||
|
<td width="1%">:</td>
|
||||||
|
<td width="50%">@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||||
|
$datez = $myDateTime->format('d-m-Y');
|
||||||
|
echo($datez);
|
||||||
|
@endphp
|
||||||
|
<td colspan="3"></td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><br></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>NO RUJUKAN</td>
|
||||||
|
<td>:</td>
|
||||||
|
<td>{{ $notis['norujukan']}}</td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td width="14%">NO TELEFON</td>
|
||||||
|
<td width="1%">:</td>
|
||||||
|
<td>{{ $notis['nama']['telefon'] }}</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="vertical-align:top;">KEPADA</td>
|
||||||
|
<td style="vertical-align:top;">:</td>
|
||||||
|
<td style="vertical-align:top;">{{ $notis['nama']['nama']}}
|
||||||
|
<br> {{ strtoupper($notis['nama']['alamat1']) }}
|
||||||
|
{{-- {!! ($notis['nama']['alamat1'] === null || $notis['nama']['alamat1'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat1']) !!} <br> --}} <br>
|
||||||
|
{{ ' ' . $notis['nama']['poskod'] . ' ' . strtoupper($notis['nama']['namadaerah']) . ' ' . strtoupper($notis['nama']['negeri'])}}</td>
|
||||||
|
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td style="vertical-align:top;">NO K/P</td>
|
||||||
|
<td style="vertical-align:top;">:</td>
|
||||||
|
<td style="vertical-align:top;"> {{ $notis['nokp'] }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<p>Tuan/Puan,</p>
|
||||||
|
<h4 style="text-decoration: underline;">LEBIHAN WANG LELONGAN BARANGAN</h4>
|
||||||
|
{{-- {{dd($notis)}} --}}
|
||||||
|
<p>Dimaklumkan bahawa barang gadaian tuan/puan <b>{{ $notis['norujukan'] }}</b> telah dilelong pada <strong>@php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $notis['tarikhlelong']);
|
||||||
|
$datez = $myDateTime->format('d-m-Y');
|
||||||
|
echo($datez);
|
||||||
|
|
||||||
|
@endphp</strong></p>
|
||||||
|
|
||||||
|
<p>Tuan/puan hendaklah datang untuk mengambil wang lebihan seperti di bawah:-</p>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td>Harga Lelongan</td>
|
||||||
|
<td>:</td>
|
||||||
|
<td>{{ number_format($notis['hargajual'],2) }}</td>
|
||||||
|
</tr>
|
||||||
|
@if($taxation == true)
|
||||||
|
{{-- <tr>
|
||||||
|
<td>GST 6% (harga jual)</td>
|
||||||
|
<td>:</td>
|
||||||
|
<td>{{ ($notis['gst_hj']) ? $notis['gst_hj'] : number_format(0.00,2) }}</td>
|
||||||
|
</tr> --}}
|
||||||
|
@endif
|
||||||
|
<tr>
|
||||||
|
<td><b>Tolak</b></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table>
|
||||||
|
@if($taxation == true)
|
||||||
|
{{-- <tr>
|
||||||
|
<td>GST 6% (harga jual)</td>
|
||||||
|
<td>:</td>
|
||||||
|
<td>{{ ($notis['gst_hj']) ? number_format($notis['gst_hj'],2) : number_format(0,2) }}</td>
|
||||||
|
</tr> --}}
|
||||||
|
@endif
|
||||||
|
<tr>
|
||||||
|
<td>Baki Pembiayaan</td>
|
||||||
|
<td>:</td>
|
||||||
|
<td>{{ number_format($notis['bakipjm'],2) }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Baki Upah Simpan</td>
|
||||||
|
<td>:</td>
|
||||||
|
<td>{{ number_format($notis['bakiupah'],2) }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Caj Lelongan</td>
|
||||||
|
<td>:</td>
|
||||||
|
<td>{{ number_format($notis['cajlelong'],2) }}</td>
|
||||||
|
</tr>
|
||||||
|
@if($taxation == true)
|
||||||
|
{{-- <tr>
|
||||||
|
<td>GST 6% (caj lelong)</td>
|
||||||
|
<td>:</td>
|
||||||
|
<td>{{ ($notis['gst_cl']) ? number_format($notis['gst_cl'],2) : number_format(0,2) }}</td>
|
||||||
|
</tr> --}}
|
||||||
|
<tr>
|
||||||
|
@endif
|
||||||
|
<td>Lain-lain Caj</td>
|
||||||
|
<td>:</td>
|
||||||
|
<td>{{ ($notis['cajlain']) ? number_format($notis['cajlain'],2) : number_format(0,2) }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><b>Wang Lebihan (RM)</b></td>
|
||||||
|
<td>:</td>
|
||||||
|
<td>{{ number_format($notis['baki'],2) }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
<p align="justify">Jika tuan/puan gagal menuntut wang lebihan (sekiranya ada) dalam masa empat bulan dari tarikh surat ini, wang lebihan tersebut akan diserahkan kepada Akauntan
|
||||||
|
Negara (Seksyen 25(1) Akta Pemegang Pajak Gadai 1992). Tuan/puan diminta membawa Kad Pengenalan dan Surat Akuan Gadaian semasa membuat tuntutan wang tersebut.
|
||||||
|
</p>
|
||||||
|
<br>
|
||||||
|
<p>Sekian, terima kasih.</p>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<i>*Surat ini adalah cetakan komputer dan tiada tandatangan diperlukan</i>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
+8
-1
@@ -344,6 +344,8 @@ Route::group(['middleware' => ['permission:pengesahanpembida'],'prefix'=>'pembid
|
|||||||
Route::get('/statusserahanbidaan',['as'=>'pembida.statusserahanbidaan','uses'=>'PembidaController@statusserahanbidaan']);
|
Route::get('/statusserahanbidaan',['as'=>'pembida.statusserahanbidaan','uses'=>'PembidaController@statusserahanbidaan']);
|
||||||
Route::get('/statusserahanbypembida',['as'=>'pembida.statusserahanbypembida','uses'=>'PembidaController@statusserahanbypembida']);
|
Route::get('/statusserahanbypembida',['as'=>'pembida.statusserahanbypembida','uses'=>'PembidaController@statusserahanbypembida']);
|
||||||
|
|
||||||
|
// Route::get('/grafpembida',['as'=>'pembida.grafpembida','uses'=>'PembidaController@grafpembida']);
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -508,6 +510,9 @@ Route::group(['middleware' => ['permission:jananotis'],'prefix'=>'jananotis'], f
|
|||||||
Route::post('/exportlelongpcdone',['as'=>'jananotis.exportlelongpcdone','uses'=>'LelongController@exportlelongpcdone']);
|
Route::post('/exportlelongpcdone',['as'=>'jananotis.exportlelongpcdone','uses'=>'LelongController@exportlelongpcdone']);
|
||||||
Route::get('/kemaskinidatapc/{lelong_id}',['as'=>'jananotis.kemaskinidatapc','uses'=>'LelongController@kemaskinidatapc']);
|
Route::get('/kemaskinidatapc/{lelong_id}',['as'=>'jananotis.kemaskinidatapc','uses'=>'LelongController@kemaskinidatapc']);
|
||||||
|
|
||||||
|
Route::get('/notistuntutbaki',['as'=>'jananotis.notistuntutbaki','uses'=>'NotisController@notistuntutbaki']);
|
||||||
|
Route::get('/senaraituntutbaki/{lelongid}/{cawid}', ['as'=>'jananotis.senaraituntutbaki','uses'=>'NotisController@senaraituntutbaki']);
|
||||||
|
Route::get('/surattuntutbakipdf/{lelong_id}',['as'=>'jananotis.surattuntutbakipdf','uses'=>'NotisController@surattuntutbakipdf']);
|
||||||
});
|
});
|
||||||
|
|
||||||
//Report
|
//Report
|
||||||
@@ -671,4 +676,6 @@ Route::group(['middleware' => ['permission:reportbycaw'],'prefix'=>'reportbycaw'
|
|||||||
Route::get('/laporanlelongbycaw',['as' =>'reportbycaw.laporanlelongbycaw','uses'=>'ReportAllController@laporanlelongbycaw']);
|
Route::get('/laporanlelongbycaw',['as' =>'reportbycaw.laporanlelongbycaw','uses'=>'ReportAllController@laporanlelongbycaw']);
|
||||||
Route::get('/laporanlelongbycawdetail/{cawid}',['as'=>'reportbycaw.laporanlelongbycawdetail','uses'=>'ReportAllController@laporanlelongbycawdetail']);
|
Route::get('/laporanlelongbycawdetail/{cawid}',['as'=>'reportbycaw.laporanlelongbycawdetail','uses'=>'ReportAllController@laporanlelongbycawdetail']);
|
||||||
Route::get('/laporanlelongbycawdetailpdf/{lelong_id}/{kodcaw}',['as'=>'reportbycaw.laporanlelongbycawdetailpdf','uses'=>'ReportAllController@laporanlelongbycawdetailpdf']);
|
Route::get('/laporanlelongbycawdetailpdf/{lelong_id}/{kodcaw}',['as'=>'reportbycaw.laporanlelongbycawdetailpdf','uses'=>'ReportAllController@laporanlelongbycawdetailpdf']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Route::get('/', 'ChartController@index');
|
||||||
Reference in New Issue
Block a user