Merge branch 'atie' into 'main'
update notis peringatan untuk callcenter jana See merge request online-sistem1/lelong!440
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -247,6 +247,11 @@ class ReportController extends Controller
|
||||
|
||||
public function senarailapbidaan ($lelong_id, $kodcaw){
|
||||
|
||||
$lel = Lelong::with('cawangan')->find($lelong_id);
|
||||
|
||||
$cawname = Cawangan::where('caw_code','=',$kodcaw)->first();
|
||||
// dd($cawname->id);
|
||||
$cawanganDetail = $lel->cawangan->find($cawname->id);
|
||||
|
||||
$arraydetails = [];
|
||||
$arrayinfocaw = [];
|
||||
@@ -304,7 +309,7 @@ class ReportController extends Controller
|
||||
|
||||
// return $pdf->download('Senarai Nama Bidaan Pembida.pdf');
|
||||
|
||||
return view('lelong.senarailapbidaanpembida',compact('kodcaw','lelongid','arraydetails','lelong_id','lelongid','cawangan','arrayinfocaw','total_hargaasas','total_hargabida'));
|
||||
return view('lelong.senarailapbidaanpembida',compact('cawanganDetail','kodcaw','lelongid','arraydetails','lelong_id','lelongid','cawangan','arrayinfocaw','total_hargaasas','total_hargabida'));
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -70,4 +70,9 @@ class Cawangan extends Model
|
||||
{
|
||||
return $this->belongsTo(User::class, 'kodcaw', 'caw_code');
|
||||
}
|
||||
|
||||
public function notisBid()
|
||||
{
|
||||
return $this->hasMany(NotisBid::class, 'caw_id', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CawanganNotis extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'cawangan_notis';
|
||||
|
||||
protected $fillable = [
|
||||
'batchnotis',
|
||||
'notis_id',
|
||||
'caw_id',
|
||||
'fasa',
|
||||
'status'
|
||||
];
|
||||
|
||||
// public function lelongBid()
|
||||
// {
|
||||
// return $this->hasMany(LelongBid::class, 'caw_id', 'caw_id');
|
||||
// }
|
||||
|
||||
public function cawangan()
|
||||
{
|
||||
return $this->belongsTo(Cawangan::class, 'caw_id', 'id');
|
||||
}
|
||||
|
||||
public function notis()
|
||||
{
|
||||
return $this->belongsTo(Notis::class, 'notis_id', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Notis extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'notis';
|
||||
|
||||
protected $fillable = [
|
||||
'tarikh_notis',
|
||||
'daritempoh',
|
||||
'hinggatempoh',
|
||||
'sts_notis',
|
||||
'fasa'
|
||||
];
|
||||
|
||||
public function cawangan()
|
||||
{
|
||||
return $this->belongsToMany(Cawangan::class, 'cawangan_notis', 'notis_id', 'caw_id')->withPivot('status');
|
||||
}
|
||||
|
||||
public function cawanganNotis()
|
||||
{
|
||||
return $this->hasMany(cawanganNotis::class, 'notis_id');
|
||||
}
|
||||
|
||||
public function notisBid()
|
||||
{
|
||||
return $this->hasMany(NotisBid::class, 'notis_id', 'id');
|
||||
}
|
||||
|
||||
// public function lelongBidJual()
|
||||
// {
|
||||
// return $this->hasMany(LelongBid::class, 'lelong_id', 'id')->where('status_jual', 1);
|
||||
// }
|
||||
|
||||
// public function lelongBidBelumSemak()
|
||||
// {
|
||||
// return $this->hasMany(LelongBid::class, 'lelong_id', 'id')->where('status_semak', 0);
|
||||
// }
|
||||
|
||||
// public function lelKarat()
|
||||
// {
|
||||
// return $this->hasMany(LelKarat::class, 'lelong_id', 'id');
|
||||
// }
|
||||
|
||||
// public function pengesahan()
|
||||
// {
|
||||
// return $this->hasMany(Pengesahan::class, 'lelong_id', 'id');
|
||||
// }
|
||||
|
||||
// public function pengesahanTelahSah()
|
||||
// {
|
||||
// return $this->hasMany(Pengesahan::class, 'lelong_id', 'id')->whereNotNull('disahkan_oleh');
|
||||
// }
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class NotisBid extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'notisbid';
|
||||
|
||||
protected $fillable = [
|
||||
'notis_id',
|
||||
'caw_id',
|
||||
'kodcaw',
|
||||
'norujukan',
|
||||
'nokp',
|
||||
'jbg',
|
||||
'kadarupah',
|
||||
'nilaimarhun',
|
||||
'pinjaman',
|
||||
'bakiupah',
|
||||
'berat',
|
||||
'marhun',
|
||||
'percent',
|
||||
'fasa',
|
||||
];
|
||||
|
||||
public function cawangan()
|
||||
{
|
||||
return $this->belongsTo(Cawangan::class, 'caw_id', 'id');
|
||||
}
|
||||
|
||||
public function notis()
|
||||
{
|
||||
return $this->belongsTo(Notis::class, 'notis_id', 'id');
|
||||
}
|
||||
|
||||
public function cawanganNotis(){
|
||||
return $this->hasOne(CawanganNotis::class, 'caw_id','caw_id');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -34,6 +34,6 @@ class SeedSystemUser extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
Schema::dropIfExists('users');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateNotisTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
|
||||
Schema::create('notis', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('tarikh_notis')->nullable();
|
||||
$table->string('daritempoh')->nullable();
|
||||
$table->string('hinggatempoh')->nullable();
|
||||
$table->integer('sts_notis')->nullable();
|
||||
$table->integer('fasa')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('notisbid', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger('notis_id')->unsigned();
|
||||
$table->string('tarikh_notis');
|
||||
$table->unsignedBigInteger('caw_id')->unsigned();
|
||||
$table->string('kodcaw');
|
||||
$table->string('norujukan');
|
||||
$table->string('nokp');
|
||||
$table->decimal('jbg', $precision = 7, $scale = 2);
|
||||
$table->decimal('kadarupah', $precision = 5, $scale = 2)->nullable();
|
||||
$table->decimal('nilaimarhun', $precision = 9, $scale = 2);
|
||||
$table->decimal('pinjaman', $precision = 9, $scale = 2)->nullable();
|
||||
$table->decimal('bakiupah', $precision = 7, $scale = 2);
|
||||
$table->decimal('berat', $precision = 7, $scale = 2);
|
||||
$table->string('marhun');
|
||||
$table->decimal('percent', $precision = 7, $scale = 2);
|
||||
$table->integer('fasa')->default(0);
|
||||
$table->date('tarikhnotis1')->nullable();
|
||||
$table->date('tarikhnotis2')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('caw_id')
|
||||
->references('id')->on('cawangan')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('notis_id')
|
||||
->references('id')->on('notis')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
|
||||
Schema::create('cawangan_notis', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger('notis_id')->unsigned();
|
||||
$table->unsignedBigInteger('caw_id')->unsigned();
|
||||
$table->integer('fasa')->default(0);
|
||||
$table->string('daritempoh')->nullable();
|
||||
$table->string('hinggatempoh')->nullable();
|
||||
$table->integer('status')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('caw_id')
|
||||
->references('id')->on('cawangan')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('notis_id')
|
||||
->references('id')->on('notis')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('notis');
|
||||
Schema::dropIfExists('notisbid');
|
||||
Schema::dropIfExists('cawangan_notis');
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<script src="{{ asset('js/table2excel.js') }}"></script>
|
||||
<style>
|
||||
|
||||
.letter{
|
||||
font-family:'Times New Roman', Times, serif;
|
||||
|
||||
}
|
||||
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
|
||||
}
|
||||
|
||||
.first-prgph{
|
||||
|
||||
float: left;
|
||||
width: 10%;
|
||||
padding: 2px;
|
||||
}
|
||||
.first-prgph1{
|
||||
|
||||
float: left;
|
||||
width: 30%;
|
||||
padding-left: 50px;
|
||||
}
|
||||
.page-break {
|
||||
page-break-before: always;
|
||||
}
|
||||
.name{
|
||||
padding-top: 40px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<table width="100%" height="168" id="customers">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Nama</th>
|
||||
<th>No.KP</th>
|
||||
<th>No.Telefon</th>
|
||||
<th>Marhun</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Keuntungan 6 Bulan (RM)</th>
|
||||
<th>Keuntungan Telah Bayar (RM)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach($getsurat as $index1=> $notis)
|
||||
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td style='word-wrap'>{{ $notis['list_norujukan'][0]['norujukan'] }}</td>
|
||||
<td>{{ $notis['nama'][0]['nama'] ?? NULL}}</td>
|
||||
<td>{{ $notis['list_norujukan'][0]['nokp'] }}</td>
|
||||
<td>6{{ $notis['nama'][0]['telefon'] ?? NULL}}</td>
|
||||
<td>{{ $notis['list_norujukan'][0]['marhun'] }}</td>
|
||||
<td align="right">{{ $notis['list_norujukan'][0]['berat'] }}</td>
|
||||
<td>{{ $notis['list_norujukan'][0]['tempoh'] }}</td>
|
||||
<td align="right">{{ $notis['list_norujukan'][0]['pinjaman'] }}</td>
|
||||
<td align="right">{{ $notis['list_norujukan'][0]['bakipjm'] }}</td>
|
||||
<td align="right">{{ $notis['list_norujukan'][0]['bakiupah'] }}</td>
|
||||
<td>{{ number_format($notis['ktlhbyr'] , 2, '.', ',')}}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
{{-- @foreach($getsurat as $surat)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['norujukan'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['nokp'] }}</td>
|
||||
<td>60{{ $surat['list_norujukan'][0]['telefon'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['tempoh'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['berat'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['pinjaman'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['bakipjm'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['bakiupah'] }}</td>
|
||||
|
||||
<td>{{ number_format($surat['ktlhbyr'] , 2, '.', ',')}}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
@endforeach --}}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script>
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
var table2excel = new Table2Excel();
|
||||
table2excel.export(document.querySelectorAll("#customers"),'senarai_notis');
|
||||
setTimeout(function(){ window.close() }, 10);
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@@ -711,7 +711,35 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="{{ (request()->is('reportkali/')) ? 'active' : '' }}">
|
||||
<li class="{{ (request()->is('reportbycaw/')) ? 'active' : '' }}">
|
||||
<a href="#reportallcawSubmenu" data-toggle="collapse" aria-expanded="false">
|
||||
<div class="sidebar-menu">
|
||||
<div class="sidebar-menu-main-title">
|
||||
<span class="material-symbols-rounded sidebar-menu-item-main">
|
||||
flag
|
||||
</span>
|
||||
By Cawangan
|
||||
</div>
|
||||
<span class="material-symbols-rounded sidebar-menu-item-expand">expand_more</span>
|
||||
</div>
|
||||
</a>
|
||||
{{-- <ul class="list-unstyled collapse {{ (request()->is('reportbycaw/*')) ? 'show' : '' }}" id="reportallcawSubmenu">
|
||||
<li class="{{ (request()->is('reportbycaw/lapbrglelongindexall/*') || request()->is('reportbycaw/lapbrglelongindexall') ) ? 'active' : '' }}">
|
||||
<a href="{{url('reportbycaw/lapbrglelongindexall')}}">Barang Lelong by Batch</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="list-unstyled collapse {{ (request()->is('reportbycaw/*')) ? 'show' : '' }}" id="reportallcawSubmenu">
|
||||
<li class="{{ (request()->is('reportbycaw/lapbidaanpembidaindexall/*') || request()->is('reportbycaw/lapbidaanpembidaindexall') ) ? 'active' : '' }}">
|
||||
<a href="{{url('reportbycaw/lapbidaanpembidaindexall')}}">Senarai Lelong Pembida by Batch</a>
|
||||
</li>
|
||||
</ul> --}}
|
||||
<ul class="list-unstyled collapse {{ (request()->is('reportbycaw/*')) ? 'show' : '' }}" id="reportallcawSubmenu">
|
||||
<li class="{{ (request()->is('reportbycaw/laporanlelongbycaw/*') || request()->is('reportbycaw/laporanlelongbycaw') ) ? 'active' : '' }}">
|
||||
<a href="{{url('reportbycaw/laporanlelongbycaw')}}">Lelong Keseluruhan</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
{{-- <li class="{{ (request()->is('reportkali/')) ? 'active' : '' }}">
|
||||
<a href="#reportallSubmenu" data-toggle="collapse" aria-expanded="false">
|
||||
<div class="sidebar-menu">
|
||||
<div class="sidebar-menu-main-title">
|
||||
@@ -738,7 +766,7 @@
|
||||
<a href="{{url('reportkali/laplelongindexall')}}">Lelong Keseluruhan by Batch</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</li> --}}
|
||||
<li class="{{ (request()->is('backdate/')) ? 'active' : '' }}">
|
||||
<a href="#reportBackdateSubmenu" data-toggle="collapse" aria-expanded="false">
|
||||
<div class="sidebar-menu">
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<a href="{{ route('jananotis.notisfasa1') }}" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
|
||||
SENARAI NOTIS PERINGATAN FASA 1 CAWANGAN {{ $user->kodcaw }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{{-- <h3 class="pt-3" style="margin-left:1%;">Butiran Gadaian Cawangan {{ $user->kodcaw }}</h3> --}}
|
||||
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{-- <div class="col-md-6 col-lg"> --}}
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-3 col-form-label"> <b>Bilangan Surat : </b></label>
|
||||
<div class="col-3">
|
||||
<div class="input-group">
|
||||
<input type="text" readonly class="form-control bg-light" value="{{ $bil_lelongcaw[0]['bil_lelong'] }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- <p> <b>Tarikh Lelong : </b> {{ $t_lelong }}</p> --}}
|
||||
{{-- <p> <b>Tarikh Gadai Sehingga : </b>{{ $t_gadais->t_gadai }}</p> --}}
|
||||
{{-- <p> <b>Anggaran Tarikh Daftar Lelong : </b>{{ $t_anggaran }}</p>
|
||||
<p> <b>Bilangan Surat : </b>{{ $bil_lelongcaw[0]['bil_lelong'] }}</p> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-left pt-4">
|
||||
<a href=" {{ route('jananotis.gadaibycawnotisfasa1pdf',[$tempoh,$tempoh2]) }}" class="btn btn-success">Senarai PDF</a>
|
||||
<a href=" {{ route('jananotis.gadaibycawnotisfasa1excel',[$tempoh,$tempoh2]) }}" class="btn btn-success">Senarai EXCEL</a>
|
||||
<a href=" {{ route('jananotis.jananotisperingatanfasa1',[$tempoh,$tempoh2]) }}" class="btn btn-success">Surat Notis</a>
|
||||
|
||||
</div>
|
||||
<table class="table text-right table-bordered" id="butirangadai">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Nama</th>
|
||||
<th>No.KP</th>
|
||||
<th>No.Telefon</th>
|
||||
<th>Marhun</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Keuntungan 6 Bulan (RM)</th>
|
||||
<th>Keuntungan Telah Bayar (RM)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($getsurat as $surat)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td style='word-wrap'>{{ $surat['list_norujukan'][0]['norujukan'] }}</td>
|
||||
<td>{{ $surat['nama'][0]['nama'] ?? NULL}}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['nokp'] }}</td>
|
||||
<td>6{{ $surat['nama'][0]['telefon'] ?? NULL}}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['marhun'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['berat'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['tempoh'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['pinjaman'] }}</td>
|
||||
|
||||
<td>{{ $surat['list_norujukan'][0]['bakipjm'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['bakiupah'] }}</td>
|
||||
|
||||
<td>{{ number_format($surat['ktlhbyr'] , 2, '.', ',')}}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer">
|
||||
<a href="{{ route('jananotis.notistamatkontrak') }}" class="btn btn-primary" style="width:8%;">Kembali</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
var tablebutirangadai = $('#butirangadai').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 8,
|
||||
"orderable": true
|
||||
}
|
||||
],
|
||||
order: [[1, 'asc']],
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 9999,
|
||||
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: 'Senarai Gadaian Excel',
|
||||
// text: '<i class="fas fa-download"></i>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $("#exportform").submit();
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Senarai Gadaian PDF',
|
||||
// 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,47 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-12 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%;">Notis Peringatan Fasa 1</h3>
|
||||
|
||||
<form action="{{route('jananotis.gadaibycawnotisfasa1')}}" method="POST" id="formsenarai">
|
||||
@csrf
|
||||
<div class="form-group row" style="margin-top:1%; margin-left:1%;">
|
||||
{{-- <label for="tarikh_lelong" class="col-sm-1 col-form-label">Tarikh Tamat Kontrak</label> --}}
|
||||
{{-- <div>
|
||||
<input type="date" class="form-control" id="tarikh_lelong" name="tarikh_lelong" placeholder="Tarikh">
|
||||
</div> --}}
|
||||
<label for="tempoh" class="col-sm-1 col-form-label" style="margin-left:3%;">Dari Tempoh</label>
|
||||
<div>
|
||||
<input type="text" class="form-control" id="tempoh" name="tempoh" placeholder="" >
|
||||
</div>
|
||||
<label for="tempoh" class="col-sm-1 col-form-label" style="margin-left:3%;">Hingga Tempoh</label>
|
||||
<div>
|
||||
<input type="text" class="form-control" id="tempoh2" name="tempoh2" placeholder="" >
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row" style="margin-top:2%;">
|
||||
<div class="col-sm-10">
|
||||
<button type="button" class="btn btn-primary" onclick="carian()" style="margin-left:2%; width:9%;">Carian</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function carian() {
|
||||
$("#formsenarai").submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -18,7 +18,7 @@
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
SENARAI BIDAAN PEMBIDA
|
||||
SENARAI BIDAAN PEMBIDA : {{$cawanganDetail->caw_name}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
<th style="background-color: crimson">Caj Lelong Asal (RM)</th>
|
||||
<th style="background-color: crimson">Baki/(Rugi) Asal (RM)</th>
|
||||
<th style="background-color: rgb(17, 31, 94)">Caj Lelong Ubah (RM)</th>
|
||||
<th style="background-color: rgb(17, 31, 94p)">Baki/(Rugi) Ubah (RM)</th>
|
||||
<th style="background-color: rgb(17, 31, 94)">Baki/(Rugi) Ubah (RM)</th>
|
||||
<th style="background-color: rgb(20, 220, 20)">Caj Lelong Baru (RM)</th>
|
||||
<th style="background-color: rgb(20, 220, 20)">Baki/(Rugi) Baru (RM)</th>
|
||||
{{-- <th>Tindakan</th> --}}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.10/css/select2.min.css" rel="stylesheet"/>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.10/js/select2.min.js"></script>
|
||||
<div class="container">
|
||||
<div class="row ">
|
||||
<div class="col-10 mx-auto">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<div class="header-style-title">
|
||||
Jana Notis Peringatan
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@endif
|
||||
<form action="{{route('notisperingatan.senaraitempnotisperingatan')}}" method="POST" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<div id='loader'><img id="loader-image" src="../img/loadingmsg.gif" alt="Sila Tunggu Sebentar..." /></div>
|
||||
{{-- <div class="form-group row">
|
||||
<label for="tarikh_lelong" class="col-sm-2 col-form-label">Tarikh Lelong</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="date" class="form-control" id="tarikh_lelong" name="tarikh_lelong" value = "{{$tetapan->tetap_tarikh_lelong}}">
|
||||
</div>
|
||||
</div> --}}
|
||||
<div class="form-group row">
|
||||
<label for="fasa" class="col-sm-2 col-form-label">Fasa Lelong</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="radio" value='1' id="fasa1" name="fasa" checked>
|
||||
<label for="1">Fasa 1</label>
|
||||
<input type="radio" value='2' id="fasa2" name="fasa">
|
||||
<label for="2">Fasa 2</label>
|
||||
</div>
|
||||
<!-- <label for="cajlelong" class="col-sm-1 col-form-label">Caj Lelong</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="cajlelong" name="cajlelong" placeholder="%">
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="jbg" class="col-sm-2 col-form-label">Dari Tempoh</label>
|
||||
<div class="col-sm-2" id="fasa_1">
|
||||
<input type="text" class="form-control" id="jbg" name="jbg" required>
|
||||
</div>
|
||||
<label for="jbg2" id="hinggatempoh" class="col-sm-2 col-form-label">Hingga Tempoh</label>
|
||||
<div class="col-sm-2" id="fasa_1">
|
||||
<input type="text" class="form-control" id="jbg2" name="jbg2">
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <label for="caw" class="col-sm-1 col-form-label">Cawangan</label>
|
||||
<div class="col-sm-4">
|
||||
<select class="selectpicker" multiple name="caw[]" id="caw">
|
||||
@foreach ($caw as $item)
|
||||
<option value="{{$item->id}}">{{$item->caw_name}}</option>
|
||||
@endforeach
|
||||
|
||||
</select>
|
||||
</div> -->
|
||||
</div>
|
||||
{{-- <div class="form-group row">
|
||||
|
||||
<label for="cajlelong" class="col-sm-2 col-form-label">Caj Lelong</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="cajlelong" name="cajlelong" value = "{{$tetapan->cajlelong}}" readonly>
|
||||
</div>
|
||||
</div> --}}
|
||||
|
||||
{{-- <div class="form-group row">
|
||||
|
||||
<label for="cajlelong" class="col-sm-2 col-form-label">Kali</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="kali" name="kali" value = "{{$tetapan->kali}}" readonly>
|
||||
</div>
|
||||
</div> --}}
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-10">
|
||||
<button type="submit" class="btn btn-primary">Carian</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var date = '<?php echo $currentDate; ?>';
|
||||
|
||||
$('#caw').select2({
|
||||
width: '100%',
|
||||
placeholder: "Pilih Cawangan",
|
||||
allowClear: true
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
// document.getElementById('tarikh_lelong').setAttribute("min", date);
|
||||
$("input[name=fasa]").change(function(){
|
||||
|
||||
if($("#fasa1").is(':checked')){
|
||||
$("#jbg").val('').prop("readonly", false);
|
||||
document.getElementById("hinggatempoh").style.visibility = "visible";
|
||||
document.getElementById("jbg2").style.visibility = "visible";
|
||||
}
|
||||
if($("#fasa2").is(':checked')){
|
||||
$("#jbg").val('12').prop("readonly", true);
|
||||
// $("#jbg2").val('12').prop("readonly", true);
|
||||
document.getElementById("hinggatempoh").style.visibility = "hidden";
|
||||
document.getElementById("jbg2").style.visibility = "hidden";
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$( "form" ).submit(function() {
|
||||
$('#loader').show();
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,211 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<div class="card-header header-style">
|
||||
<a href="javascript:window.history.go(-1);" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
senarai Sag : {{ $cawanganDetail->caw_name }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@endif
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $notislel->tarikh_notis );
|
||||
$t_notis = $myDateTime->format('d-m-Y');
|
||||
@endphp
|
||||
<div class="tab-content" id="nav-tabContent">
|
||||
<div class="tab-pane fade show active" id="nav-notis" role="tabpanel" aria-labelledby="nav-notis-tab">
|
||||
<br>
|
||||
<div class="col-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label text-left">Tarikh Notis</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<input type="text" readonly class="form-control bg-light" value="{{$t_notis}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label text-left">Dari Tempoh</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<input type="text" readonly class="form-control bg-light" value="{{$notislel->daritempoh}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label text-left">Hingga Tempoh</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<input type="text" readonly class="form-control bg-light" value="{{$notislel->hinggatempoh}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<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($notis_all)}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<a href=" {{ route('report.simulasireport',[$notis_id,$cawid]) }}" class="btn btn-outline-success">Surat Notis</a>
|
||||
<!-- <a href="{{ route('analisa.senaraimarhunlel',[$notis_id,$cawid]) }}" class="btn btn-success">Simulasi Lelong</a> -->
|
||||
{{-- <a href="{{ route('analisa.listsagbycust',[$notis_id,'cawid'=>$cawid]) }}" class="btn btn-primary">Senarai Mengikut Nama Pelanggan</a> --}}
|
||||
</div>
|
||||
|
||||
<form id="deletesag" action="" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="notis_id" value="{{$notis_id}}">
|
||||
<input type="hidden" name="cawid" value="{{$cawid}}">
|
||||
<div style="overflow-x:auto">
|
||||
<table class="table table-bordered" id="marhun" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr class="text-center">
|
||||
<th>No</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Nama</th>
|
||||
<th>No.KP</th>
|
||||
<th>Telefon</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Nilai Marhun Asal (RM)</th>
|
||||
<th>Pembiayaan Asal(RM)</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Keuntungan Telah Bayar (RM)</th>
|
||||
<th>Keuntungan Semasa (RM)</th>
|
||||
<th>Sttebus</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $rugilelong = 0;
|
||||
$bakilelong = 0;
|
||||
|
||||
@endphp
|
||||
@foreach ($notis_all as $index=> $marhun)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td style="white-space: nowrap;">{{ $marhun->norujukan}}</td>
|
||||
<td>{{ $marhun->cust_info->nama}}</td>
|
||||
<td>{{ $marhun->nokp}}</td>
|
||||
<td>{{ $marhun->cust_info->telefon ? '6'.$marhun->cust_info->telefon : ''}}</td>
|
||||
<td>{{ $marhun->jbg}}</td>
|
||||
<td align="center">{{ $marhun->berat}}</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->bakipjm , 2, '.', ',') }}</td>
|
||||
<td align="right">{{ number_format($marhun->ktlhbyr, 2, '.', ',') }}</td>
|
||||
<td align="right">{{ number_format($marhun->keuntungan, 2, '.', ',') }}</td>
|
||||
<td align="right">{{ $marhun->sttebus }}</td>
|
||||
{{-- <td class="text-center">
|
||||
<input type="checkbox" aria-label="Checkbox for following text input" onclick="btnDelete(this)" name="checkboxdata[]" value="{{ $marhun['norujukan'] }}">
|
||||
</td> --}}
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot class="bg-light">
|
||||
<tr>
|
||||
<td colspan="6" class="text-center"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td align="center"><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_bakipjm, 2, '.', ',') }}</b></td>
|
||||
<td align="right"><b>{{ number_format($total_ktlhbyr, 2, '.', ',') }}</b></td>
|
||||
<td align="right"><b>{{ number_format($total_bakiupah, 2, '.', ',') }}</b></td>
|
||||
<td align="right"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
{{-- <div class="text-right pt-4">
|
||||
<!-- <a href="{{ route('analisa.show',$notis_id) }}" class="btn btn-primary">Kembali</a> -->
|
||||
<button type="button" class="btn btn-danger" id="btndelete" onclick="confirm()">Hapus</button>
|
||||
</div> --}}
|
||||
{{-- <a href="{{url('simulasi/showsimulasi')}}" class="btn btn-primary">Kembali</a> --}}
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$("#btndelete").prop("enabled", true);
|
||||
|
||||
function btnDelete(e) {
|
||||
var count = 0;
|
||||
tablemarhun.rows().nodes().to$().find('input[type="checkbox"]').each(function() {
|
||||
if ($(this).prop('checked') === true) {
|
||||
count = count + 1;
|
||||
}
|
||||
// $(this).prop('checked', e.checked);
|
||||
})
|
||||
if (count != 0) {
|
||||
$("#btndelete").prop("disabled", false);
|
||||
} else {
|
||||
$("#btndelete").prop("disabled", true);
|
||||
}
|
||||
// let checkbox = $('#checkboxdata').val();
|
||||
// console.log(checkbox)
|
||||
// $("#btndelete").prop("disabled", checkboxdata.length === 0);
|
||||
}
|
||||
|
||||
function confirm() {
|
||||
$.confirm({
|
||||
title: 'Padam SAG',
|
||||
content: 'Adakah anda pasti? Tindakan ini tidak dapat dikembalikan.',
|
||||
icon: 'fa fa-exclamation-triangle',
|
||||
type: 'red',
|
||||
boxWidth: '500px',
|
||||
useBootstrap: false,
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function() {}
|
||||
},
|
||||
Padam: {
|
||||
btnClass: 'btn-danger',
|
||||
action: function() {
|
||||
$("#deletesag").submit();
|
||||
$.dialog({
|
||||
icon: 'fa fa-spinner fa-spin',
|
||||
title: 'Dalam Proses !',
|
||||
content: 'Halaman akan dikemaskini selepas proses selesai.',
|
||||
closeIcon: false,
|
||||
boxWidth: '500px',
|
||||
useBootstrap: false,
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var tableMarhun = $('#marhun').DataTable({
|
||||
"scrollX": true,
|
||||
"pageLength": 500,
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,143 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
|
||||
<div class="header-style-title">
|
||||
|
||||
butiran Notis Peringatan
|
||||
</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">
|
||||
<div style="overflow-x:auto">
|
||||
<table class="table text-center table-bordered" id="simulasi" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tarikh Notis</th>
|
||||
{{-- <th>Tarikh Lelong</th> --}}
|
||||
{{-- <th>Fasa</th>
|
||||
<th align='left'>Cawangan</th> --}}
|
||||
{{-- <th>Harga Asas (RM)</th> --}}
|
||||
<th class="text-center">Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@forelse ($arrayinfo as $info)
|
||||
<tr>
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td> @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $info['info']['tarikh_notis']);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
@endphp
|
||||
{{$datez}}</td>
|
||||
<td class="text-center">
|
||||
<a class="btn m-1 btn-primary" href="{{ route('notisperingatan.shownotisperingatanall',[ 'tarikhnotis' => $info['info']['tarikh_notis'], 'notisid'=>$info['info']['id']]) }}" data-toggle="tooltip" data-placement="top" title="Butiran Lelong Simulasi" style="margin-right:30px"><i class="far fa-edit"></i></a>
|
||||
{{-- <a class="confirmdel" href="{{ route('analisa.delete',$info['info']['simulasi_id']) }}" data-toggle="tooltip" data-placement="top" title="Hapus"><i class="far fa-trash-alt"></i></a> --}}
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@empty
|
||||
<td colspan = '3'>Tiada Data</td>
|
||||
@endforelse
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
$('a.confirmdel').confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
type: 'orange',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
Delete: {
|
||||
btnClass: 'btn-warning',
|
||||
action: function () {
|
||||
location.href = this.$target.attr('href');
|
||||
}
|
||||
},
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var tablesimulasi = $('#simulasi').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 4,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
order: [[1, 'asc']],
|
||||
// "ordering": false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
// buttons: [
|
||||
// // 'copy', 'excel', 'pdf'
|
||||
// // { text: 'copy', className: 'btn btn-primary' },
|
||||
// {
|
||||
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm addsim',
|
||||
// text: '<i class="fas fa-plus" id="test"></i>',
|
||||
// titleAttr: 'Tambah Simulasi',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// alert( 'Button activated' );
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Export to CSV',
|
||||
// text: '<i class="fas fa-download"></i>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $("#exportform").submit();
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
});
|
||||
|
||||
$('.addsim').tooltip();
|
||||
$('.export').tooltip();
|
||||
// $( '.dt-buttons').addClass('btn-group');
|
||||
$( '.addsim').removeClass('dt-button');
|
||||
$( '.export').removeClass('dt-button');
|
||||
|
||||
|
||||
function selectall(cb) {
|
||||
tablesimulasi.rows().nodes().to$().find('input[type="checkbox"]').each(function(){
|
||||
$(this).prop('checked', cb.checked);
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,188 @@
|
||||
@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">
|
||||
<div class="header-style-title">
|
||||
Butiran Gadaian Mengikut Cawangan Notis Peringatan Fasa {{$fasa}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger" style="margin-top:1%;">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- @if (Session::has('message'))
|
||||
<div class="alert alert-info">{{ Session::get('message') }}</div>
|
||||
@endif --}}
|
||||
|
||||
{{-- <h3 class="pt-3" style="margin-left:1%;">Butiran Gadaian Mengikut Cawangan Lelongan Fasa {{$fasa}}</h3> --}}
|
||||
<!-- <form action="{{route('analisa.janadata')}}" method="POST" enctype="multipart/form-data"> -->
|
||||
<form action="{{route('notisperingatan.janadatanotisperingatan')}}" method="POST" enctype="multipart/form-data">
|
||||
<!-- <form action="{{route('analisa.importgadaifrommaster')}}" method="POST" enctype="multipart/form-data"> -->
|
||||
|
||||
@csrf
|
||||
|
||||
<input type="hidden" class="form-control" id="fasa" name="fasa" value="{{$fasa}}">
|
||||
<div id='loader'><img id="loader-image" src="../img/loadingmsg.gif" alt="Sila Tunggu Sebentar..." /></div>
|
||||
|
||||
<div class="container">
|
||||
<div>
|
||||
<div style="margin-top:2%; margin-bottom:2%;">
|
||||
|
||||
<input type="hidden" class="form-control" id="jbg" name="jbg" value="{{$jbg}}">
|
||||
<input type="hidden" class="form-control" id="jbg2" name="jbg2" value="{{$jbg2}}">
|
||||
{{-- <input type="hidden" class="form-control" id="cajlelong" name="cajlelong" value="{{$cajlelong}}">
|
||||
<input type="hidden" class="form-control" id="kali" name="kali" value="{{$tetapan->kali}}">
|
||||
--}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table text-right table-bordered" id="senaraitemp" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th><input type="checkbox" aria-label="Checkbox for following text input" id="checkall"></th>
|
||||
<th>Bil</th>
|
||||
<th>Kod Cawangan</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Bil Lelong</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Nilai Marhun</th>
|
||||
{{-- <th>Pembiayaan (RM)</th> --}}
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th class="text-center">Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $count = 1; @endphp
|
||||
@foreach($senarai as $send)
|
||||
@if($send['bil_lelong'] > 0)
|
||||
|
||||
<tr>
|
||||
<td><input type="checkbox" aria-label="Checkbox for following text input" name="caw[]" id="caw" value = "{{ $send['kodcaw'] }}" class="checkbox"></td>
|
||||
<td>{{ $count++ }}</td>
|
||||
<td>{{ $send['kodcaw'] }}</td>
|
||||
<td>{{ $send['caw_name'] }}</td>
|
||||
<td>{{ $send['bil_lelong'] }} </td>
|
||||
<td>{{ number_format($send['total_berat'], 2) }} </td>
|
||||
<td>{{ number_format($send['total_nilaimarhun'], 2) }} </td>
|
||||
<td>{{ number_format($send['total_pembiayaan'] , 2) }} </td>
|
||||
{{-- <td>{{ number_format($send['total_bakipjm'] , 2) }} </td> --}}
|
||||
<td>
|
||||
@if($fasa == '1')
|
||||
<a href=" {{ route('notisperingatan.tempbycawnotisperingatan', ['kodcaw' => $send['kodcaw'],$jbg,$jbg2,$fasa]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Gadaian"><i class="far fa-edit"></i></a>
|
||||
@else
|
||||
<a href=" {{ route('notisperingatan.tempbycawnotisperingatan2', ['kodcaw' => $send['kodcaw'],$jbg,$fasa]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Gadaian"><i class="far fa-edit"></i></a>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="modal-footer; text-center" style="margin-top:2%; margin-bottom:2%;">
|
||||
<a href="{{ route('notisperingatan.jananotisperingatan') }}" class="btn btn-primary" style="width:8%;">Kembali</a>
|
||||
<button type="submit" class="btn btn-success">Jana Notis</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
var tablesenaraitemp = $('#senaraitempsimulasi').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 8,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
order: [[1, 'asc']],
|
||||
"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>
|
||||
<script type='text/javascript'>
|
||||
$(document).ready(function(){
|
||||
// Check or Uncheck All checkboxes
|
||||
$("#checkall").change(function(){
|
||||
var checked = $(this).is(':checked');
|
||||
if(checked){
|
||||
$(".checkbox").each(function(){
|
||||
$(this).prop("checked",true);
|
||||
});
|
||||
}else{
|
||||
$(".checkbox").each(function(){
|
||||
$(this).prop("checked",false);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Changing state of CheckAll checkbox
|
||||
$(".checkbox").click(function(){
|
||||
|
||||
if($(".checkbox").length == $(".checkbox:checked").length) {
|
||||
$("#checkall").prop("checked", true);
|
||||
} else {
|
||||
$("#checkall").prop("checked", false);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$(function() {
|
||||
$( "form" ).submit(function() {
|
||||
$('#loader').show();
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,331 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<a href="{{ route('notisperingatan.jananotisperingatan') }}" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@endif
|
||||
<nav>
|
||||
<div class="nav mb-3 nav-tabs" id="nav-tab" role="tablist">
|
||||
<a class="nav-link active" id="nav-simulasi-tab" data-toggle="tab" href="#nav-simulasi" role="tab" aria-controls="nav-simulasi" aria-selected="true">Notis Peringatan</a>
|
||||
{{-- <a class="nav-link" id="nav-hargaasas-tab" data-toggle="tab" href="#nav-hargaasas" role="tab" aria-controls="nav-hargaasas" aria-selected="false">Harga Emas Asas</a> --}}
|
||||
</div>
|
||||
</nav>
|
||||
<div class="tab-content" id="nav-tabContent">
|
||||
<div class="tab-pane fade show active" id="nav-simulasi" role="tabpanel" aria-labelledby="nav-simulasi-tab">
|
||||
<form id="exportform" action="{{route('analisa.export')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="User">
|
||||
<input type="hidden" name="notisid" value="{{ $notis_id }}">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg">
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label">Tarikh Notis</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $notis->tarikh_notis);
|
||||
$datez = $myDateTime->format('d-m-Y');
|
||||
@endphp
|
||||
<input type="text" readonly class="form-control bg-light" value="{{$datez}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label">Bilangan SAG</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<input type="text" readonly class="form-control bg-light" value="{{$total_marhun}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label">Nilai Marhun Keseluruhan</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">RM</div>
|
||||
</div>
|
||||
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_nilaimarhun, 2, '.', ',') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-1"></div>
|
||||
<div class="col-md-12 col-lg">
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label">Keuntungan Keseluruhan</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">RM</div>
|
||||
</div>
|
||||
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_bakiupah, 2, '.', ',') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label">Pembiayaan Keseluruhan</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">RM</div>
|
||||
</div>
|
||||
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_pinjaman, 2, '.', ',') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- <button class="btn mb-5 btn-outline-success" type="submit">Muat Turun PDF</button> --}}
|
||||
|
||||
<div style="overflow-x: auto;">
|
||||
<table class="table text-right table-bordered" id="simulasi">
|
||||
<thead class="bg-primary text-center text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Cawangan</th>
|
||||
<th>Bil SAG</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Nilai Marhun Asal (RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Keuntungan (RM)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($arraycaw as $index=>$caw)
|
||||
<tr>
|
||||
<td>{{$index+1}}</td>
|
||||
<td style="white-space: nowrap;"><a href="" style="color:#3490dc">{{ $caw['cawangan'] }}</a></td>
|
||||
<td>{{ $caw['bil_marhun'] }}</td>
|
||||
<td>{{ number_format($caw['berat'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['n_marhun'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['pinjaman'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['upahsimpan'], 2, '.', ',') }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot class="bg-light">
|
||||
<tr>
|
||||
<td colspan="2"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td><b>{{ $total_marhun }}</b></td>
|
||||
<td><b>{{ number_format($total_berat, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_nilaimarhun, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_pinjaman, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_bakiupah, 2, '.', ',') }}</b></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" tabindex="-1" id="modalfilter">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-body">
|
||||
<form action="{{ route('analisa.filter') }}" method="POST" id="formfilter">
|
||||
@csrf
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="form-group row">
|
||||
<input type="hidden" name="idmarhun" id="idmarhun">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Tutup</button>
|
||||
<button type="button" class="btn btn-primary" onclick="">Jana Semula Simulasi</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$("#hideform").hide();
|
||||
$('#btnsimpan').prop('disabled', true)
|
||||
|
||||
function kemaskini() {
|
||||
var inputdata = $("td.input").find("input");
|
||||
if (inputdata.length == 0) {
|
||||
$("td.input").each(function(index) {
|
||||
// console.log(index)
|
||||
var la = $(this).html();
|
||||
// if(index%2 ==0 ) //even-0-2-4
|
||||
// {
|
||||
$(this).html("<input type='text' name='harga2[]' id=harga2" + index + " value=" + la + " />");
|
||||
// }
|
||||
// else //odd-1-3-5-7
|
||||
// {
|
||||
// $(this).html("<input type='text' name='harga[]' id=harga"+index+" value="+la+" />");
|
||||
// }
|
||||
})
|
||||
$("#hideform").show();
|
||||
$("#btnkemaskini").hide();
|
||||
} else {
|
||||
$("td.input").each(function() {
|
||||
var la = $(this).html();
|
||||
$(this).html($(la).val());
|
||||
})
|
||||
$("#hideform").hide();
|
||||
$("#btnkemaskini").show();
|
||||
}
|
||||
}
|
||||
|
||||
function calculate(e) {
|
||||
let hargaasasbaru = $('#txthargaasas').val();
|
||||
|
||||
let jeniskarat = $(e).data('jeniskarat');
|
||||
|
||||
// let maxcolumn = 2;
|
||||
let count = 0;
|
||||
let indexarray = 0;
|
||||
$("td.input").each(function(index) {
|
||||
if (hargaasasbaru) {
|
||||
$('#btnsimpan').prop('disabled', false)
|
||||
// if(index%2 == 0)
|
||||
// {
|
||||
let harga1 = parseFloat(hargaasasbaru);
|
||||
let harga2 = parseFloat(jeniskarat[indexarray]['dariharga916']);
|
||||
let newhargaasas = harga1 + (harga2);
|
||||
count++;
|
||||
$('#harga2' + index).val(newhargaasas.toFixed(2));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// let harga1 = parseInt(hargaasasbaru);
|
||||
// let harga2 = parseInt(jeniskarat[indexarray]['dariharga916']);
|
||||
// let newhargaasas = (harga1 + (harga2))/2.72;;
|
||||
// count++;
|
||||
// $('#harga'+index).val(newhargaasas.toFixed(2));
|
||||
// }
|
||||
|
||||
// if(count == maxcolumn)
|
||||
// {
|
||||
// count = 0;
|
||||
indexarray++;
|
||||
// }
|
||||
} else {
|
||||
$('#btnsimpan').prop('disabled', true)
|
||||
let dummy = 0;
|
||||
// if(index%2 == 0)
|
||||
// {
|
||||
$('#harga2' + index).val(dummy.toFixed(2));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
|
||||
// $('#harga'+index).val(dummy.toFixed(2));
|
||||
// }
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
$('a.confirmDaftar').confirm({
|
||||
title: 'Daftar Lelong',
|
||||
content: 'Adakah anda pasti? Tindakan ini akan mengambil sedikit masa.',
|
||||
icon: 'fa fa-exclamation-triangle',
|
||||
type: 'blue',
|
||||
boxWidth: '500px',
|
||||
useBootstrap: false,
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function() {}
|
||||
},
|
||||
Daftar: {
|
||||
btnClass: 'btn-blue',
|
||||
action: function() {
|
||||
location.href = this.$target.attr('href');
|
||||
$.dialog({
|
||||
icon: 'fa fa-spinner fa-spin',
|
||||
title: 'Dalam Proses !',
|
||||
content: 'Halaman akan dikemaskini selepas proses selesai.',
|
||||
closeIcon: false,
|
||||
boxWidth: '500px',
|
||||
useBootstrap: false,
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function save() {
|
||||
$('#formhargaasas').submit();
|
||||
$.dialog({
|
||||
icon: 'fa fa-spinner fa-spin',
|
||||
title: 'Dalam Proses !',
|
||||
content: 'Halaman akan dikemaskini selepas proses selesai.',
|
||||
closeIcon: false,
|
||||
boxWidth: '500px',
|
||||
useBootstrap: false,
|
||||
});
|
||||
}
|
||||
$('a.confirmdel').confirm({
|
||||
title: 'Pengesahan',
|
||||
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 tablesimulasi = $('#simulasi').DataTable({
|
||||
"pageLength": 50,
|
||||
});
|
||||
|
||||
var tableJumlahBerat = $('#jumlahberat').DataTable({
|
||||
"info": false,
|
||||
"paging": false,
|
||||
"searching": false,
|
||||
"ordering": false
|
||||
});
|
||||
|
||||
$('.addsim').tooltip();
|
||||
$('.export').tooltip();
|
||||
// $( '.dt-buttons').addClass('btn-group');
|
||||
$('.addsim').removeClass('dt-button');
|
||||
$('.export').removeClass('dt-button');
|
||||
|
||||
|
||||
function selectall(cb) {
|
||||
tablesimulasi.rows().nodes().to$().find('input[type="checkbox"]').each(function() {
|
||||
$(this).prop('checked', cb.checked);
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,372 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<a href="{{ route('notisperingatan.senarainotisall') }}" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
|
||||
butiran Notis Peringatan
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="tab-content" id="nav-tabContent">
|
||||
<div class="tab-pane fade show active" id="nav-notis" role="tabpanel" aria-labelledby="nav-notis-tab">
|
||||
<br>
|
||||
<form id="exportform" action="{{route('lelong.exportkali')}}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="User">
|
||||
{{-- {{dd($tarikhnotis)}} --}}
|
||||
<input type="hidden" name="tarikhnotis" value="{{ $tarikhnotis }}">
|
||||
<input type="hidden" name="notisid" value="{{ $notisid }}">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg">
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label">Tarikh Notis</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<input type="text" readonly class="form-control bg-light" value=" @php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikhnotis );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label">Bilangan Lelong</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<input type="text" readonly class="form-control bg-light" value=" {{$total_marhun}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label">Nilai Marhun Keseluruhan</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">RM</div>
|
||||
</div>
|
||||
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_nilaimarhun, 2, '.', ',') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label">Pembiayaan Keseluruhan</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">RM</div>
|
||||
</div>
|
||||
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_pinjaman, 2, '.', ',') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-6 col-form-label">Keuntungan Keseluruhan</label>
|
||||
<div class="col-6">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">RM</div>
|
||||
</div>
|
||||
<input type="text" readonly class="form-control bg-light" value="{{ number_format($total_bakiupah, 2, '.', ',') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<a href=" {{ route('notisperingatan.kemaskinidatanotis',$tarikhnotis) }}" class="btn btn-outline-success">Kemaskini Data</a>
|
||||
</div>
|
||||
{{-- <button class="btn mb-5 btn-outline-success" type="submit">Muat Turun PDF</button> --}}
|
||||
<div style="overflow-x:auto">
|
||||
<table class="table text-right table-bordered" id="notis" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr class="text-center">
|
||||
<th>No</th>
|
||||
{{-- <th>T.Notis</th> --}}
|
||||
<th>Cawangan</th>
|
||||
<th>Bil SAG</th>
|
||||
<th>Fasa</th>
|
||||
<th>Dari JBG</th>
|
||||
<th>Hingga JBG</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Nilai Marhun Asal(RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
{{-- <th>Keuntungan (RM)</th> --}}
|
||||
<th>Status</th>
|
||||
<th>Surat Notis</th>
|
||||
<th>Blast Whatsapp</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($arraycaw as $index=>$caw)
|
||||
<tr>
|
||||
<td>{{$index+1}}</td>
|
||||
{{-- <td style='white-space:nowrap;'>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $caw['t_notis'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td> --}}
|
||||
<td style='white-space:nowrap;'><a href=" {{ route('notisperingatan.senaraimarhunnotis',['notisid'=>$caw['notis_id'],'cawid'=>$caw['id_cawangan']]) }} " style="color:#3490dc">{{ $caw['cawangan'] }}</a></td>
|
||||
<td>{{ $caw['bil_marhun'] }}</td>
|
||||
<td>{{ $caw['fasa'] }}</td>
|
||||
<td>{{ $caw['daritempoh'] }}</td>
|
||||
<td>{{ $caw['hinggatempoh'] }}</td>
|
||||
<td>{{ number_format($caw['berat'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['n_marhun'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['pinjaman'], 2, '.', ',') }}</td>
|
||||
{{-- <td>{{ number_format($caw['bakiupah'], 2, '.', ',') }}</td> --}}
|
||||
{{-- {{dd($caw)}} --}}
|
||||
<td>@if($caw['status'] == 1)
|
||||
<span class="badge badge-pill badge-warning">
|
||||
{{ 'Baru Daftar' }}
|
||||
</span>
|
||||
@elseif($caw['status'] == 2)
|
||||
<span class="badge badge-pill badge-primary">
|
||||
{{ 'Surat Notis' }}
|
||||
</span>
|
||||
@elseif($caw['status'] == 3)
|
||||
<span class="badge badge-pill badge-success">
|
||||
{{ 'Blast Whatsapp' }}
|
||||
</span>
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@if($caw['fasa'] == 1)
|
||||
<a class="confirmrefresh btn m-1 btn-info" href="{{ route('notisperingatan.jananotisperingatan2',['notisid'=>$caw['notis_id'],'cawid'=>$caw['id_cawangan']]) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Notis Peringatan Fasa 1" style="margin-right:40px" ><i class="fas fa-download"></i></a>
|
||||
@elseif($caw['fasa'] == 2)
|
||||
<a class="confirmrefresh btn m-1 btn-info" href="{{ route('notisperingatan.jananotisperingatan2fasa2',['notisid'=>$caw['notis_id'],'cawid'=>$caw['id_cawangan']]) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Notis Peringatan Fasa 2" style="margin-right:40px" ><i class="fas fa-download"></i></a>
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@if($caw['status'] == 2)
|
||||
<a class="confirmrefresh btn m-1 btn-success" href="{{ route('notisperingatan.blastnotisperingatan',['notisid'=>$caw['notis_id'],'cawid'=>$caw['id_cawangan']]) }}" data-toggle="tooltip" data-placement="top" title="Blast Whatsapp" style="margin-right:40px" ><i class="fas fa-phone"></i></a>
|
||||
@elseif($caw['status'] == 3)
|
||||
SELESAI
|
||||
@elseif($caw['status'] == 1)
|
||||
BELUM POS DAFTAR
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td><b>{{ $total_marhun }}</b></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><b>{{ number_format($total_berat, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_nilaimarhun, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_pinjaman, 2, '.', ',') }}</b></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal fade" tabindex="-1" id="modalfilter">
|
||||
<div class="modal-dialog modal-lg">
|
||||
{{-- <div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Filter By</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div> --}}
|
||||
<div class="modal-body">
|
||||
<form action="{{ route('analisa.filter') }}" method="POST" id="formfilter">
|
||||
@csrf
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="form-group row">
|
||||
<input type="hidden" name="idmarhun" id="idmarhun" >
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Tutup</button>
|
||||
<button type="button" class="btn btn-primary" onclick="">Jana Semula notis</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$("#hideform").hide();
|
||||
$('#btnsimpan').prop('disabled', true)
|
||||
function kemaskini() {
|
||||
var inputdata = $("td.input").find("input");
|
||||
if(inputdata.length ==0)
|
||||
{
|
||||
$("td.input").each(function(index) {
|
||||
// console.log(index)
|
||||
var la = $(this).html();
|
||||
// if(index%2 ==0 ) //even-0-2-4
|
||||
// {
|
||||
$(this).html("<input type='text' name='harga2[]' id=harga2"+index+" value="+la+" />");
|
||||
// }
|
||||
// else //odd-1-3-5-7
|
||||
// {
|
||||
// $(this).html("<input type='text' name='harga[]' id=harga"+index+" value="+la+" />");
|
||||
// }
|
||||
})
|
||||
$("#hideform").show();
|
||||
$("#btnkemaskini").hide();
|
||||
}
|
||||
else
|
||||
{
|
||||
$("td.input").each(function() {
|
||||
var la = $(this).html();
|
||||
$(this).html($(la).val());
|
||||
})
|
||||
$("#hideform").hide();
|
||||
$("#btnkemaskini").show();
|
||||
}
|
||||
}
|
||||
function calculate(e)
|
||||
{
|
||||
let hargaasasbaru = $('#txthargaasas').val();
|
||||
|
||||
let jeniskarat = $(e).data('jeniskarat');
|
||||
|
||||
// let maxcolumn = 2;
|
||||
let count = 0;
|
||||
let indexarray = 0;
|
||||
$("td.input").each(function(index) {
|
||||
if(hargaasasbaru)
|
||||
{
|
||||
$('#btnsimpan').prop('disabled', false)
|
||||
// if(index%2 == 0)
|
||||
// {
|
||||
let harga1 = parseFloat(hargaasasbaru);
|
||||
let harga2 = parseFloat(jeniskarat[indexarray]['dariharga916']);
|
||||
let newhargaasas = harga1 + (harga2);
|
||||
count++;
|
||||
$('#harga2'+index).val(newhargaasas.toFixed(2));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// let harga1 = parseInt(hargaasasbaru);
|
||||
// let harga2 = parseInt(jeniskarat[indexarray]['dariharga916']);
|
||||
// let newhargaasas = (harga1 + (harga2))/2.72;;
|
||||
// count++;
|
||||
// $('#harga'+index).val(newhargaasas.toFixed(2));
|
||||
// }
|
||||
|
||||
// if(count == maxcolumn)
|
||||
// {
|
||||
// count = 0;
|
||||
indexarray++;
|
||||
// }
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#btnsimpan').prop('disabled', true)
|
||||
let dummy =0;
|
||||
// if(index%2 == 0)
|
||||
// {
|
||||
$('#harga2'+index).val(dummy.toFixed(2));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
|
||||
// $('#harga'+index).val(dummy.toFixed(2));
|
||||
// }
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
function save(){
|
||||
$('#formhargaasas').submit();
|
||||
}
|
||||
$('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 tablenotis = $('#notis').DataTable( {
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
order: [[0, 'asc']],
|
||||
// "ordering": false,
|
||||
"searching":false,
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
|
||||
// {
|
||||
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Download to PDF',
|
||||
// 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) {
|
||||
tablenotis.rows().nodes().to$().find('input[type="checkbox"]').each(function(){
|
||||
$(this).prop('checked', cb.checked);
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,137 @@
|
||||
@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="javascript:window.history.go(-1);" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
Butiran Gadaian Cawangan {{ $details }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{{-- <button type="button" class="btn btn-light" ><a href="javascript:window.history.go(-1);"><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
|
||||
|
||||
<h3 class="pt-3" style="margin-bottom:2%; margin-top:1%;">Butiran Gadaian Cawangan {{ $details }}</h3> --}}
|
||||
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<form action="{{route('notisperingatan.senaraitempnotisperingatan')}}" id="formtlelong" method="POST">
|
||||
|
||||
@csrf
|
||||
<table class="table text-right table-bordered" id="detailsgadai" style="width:100%; margin-top:1%;">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>No Kad Pengenalan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Nilai Marhun Asal (RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Jumlah Bayaran (RM)</th>
|
||||
<th>Keuntungan 6 Bulan (RM)</th>
|
||||
<th>Keuntungan Semasa (RM)</th>
|
||||
<th>Tamat Kontrak</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($getsurat as $surat)
|
||||
{{-- {{dd($surat)}} --}}
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td style='white-space:nowrap;'>{{ $surat->norujukan }}</td>
|
||||
<td>{{ $surat->nokp }}</td>
|
||||
<td>{{ $surat->tempoh }}</td>
|
||||
<td>{{ number_format($surat->berat , 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($surat->nilaimarhun, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($surat->pinjaman , 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($surat->bakipjm , 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($surat->ktlhbyr , 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($surat->bakiupah, 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($surat->keuntungan , 2, '.', ',') }}</td>
|
||||
<td style='white-space:nowrap;'>{{ $surat->t_matang1 }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
function kembali() {
|
||||
$("#formtlelong").submit();
|
||||
}
|
||||
var tabledetailsgadai = $('#detailsgadai').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 8,
|
||||
"orderable": true
|
||||
}
|
||||
],
|
||||
order: [[0, 'asc']],
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 1000,
|
||||
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: 'PDF Senarai Gadaian',
|
||||
// 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: 'Senarai Gadaian Excel',
|
||||
// text: '<i class="fas fa-download"></i>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $("#exportform").submit();
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Senarai Gadaian PDF',
|
||||
// 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,197 @@
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<style>
|
||||
#sim {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
/* border-collapse: collapse; */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
||||
/* border: 1px solid; */
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#sim tr:nth-child(even){}
|
||||
|
||||
#sim tr:hover {}
|
||||
|
||||
#sim2 {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:10px;
|
||||
/* border-collapse: collapse; */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sim2 td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim2 th {
|
||||
/* border: 1px solid; */
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
#sim2 tr:nth-child(even){}
|
||||
|
||||
#sim2 tr:hover {}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-right:-5px;
|
||||
margin-right:-5px;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: right;
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Clearfix (clear floats) */
|
||||
.row::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 200%;
|
||||
border: 0px solid #ddd;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: right;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
th{
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
}
|
||||
|
||||
.font{
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<style>
|
||||
/** Define now the real margins of every page in the PDF **/
|
||||
body {
|
||||
margin-top: 1cm;
|
||||
/* margin-left: 2cm; */
|
||||
/* margin-right: 2cm; */
|
||||
margin-bottom: 2cm;
|
||||
}
|
||||
|
||||
/** Define the header rules **/
|
||||
header {
|
||||
position: fixed;
|
||||
top: -1cm;
|
||||
left: 0cm;
|
||||
right: 0cm;
|
||||
height: 0cm;
|
||||
/** Extra personal styles **/
|
||||
/* background-color: #eaeaea; */
|
||||
color: black;
|
||||
text-align: center;
|
||||
line-height: 1.5cm;
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
font-size:15px;
|
||||
}
|
||||
|
||||
/** Define the footer rules **/
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 0cm;
|
||||
left: 0cm;
|
||||
right: 0cm;
|
||||
height: 2cm;
|
||||
|
||||
/** Extra personal styles **/
|
||||
/* background-color: #eaeaea; */
|
||||
color: black;
|
||||
text-align: center;
|
||||
line-height: 1.5cm;
|
||||
}
|
||||
footer .pagenum:before {
|
||||
content: counter(page);
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="row">
|
||||
{{-- <div class="first-prgph"><img src="http://lelong.test/img/icon_pkb.png" alt="PKB LOGO" width="100" height="100"><br></div> --}}
|
||||
<body>
|
||||
<header>
|
||||
<div class="font"><u><b><h5>SENARAI NOTIS PERINGATAN FASA 1</h5></b></u></div>
|
||||
</header>
|
||||
<table align="left" id="sim2">
|
||||
<thead>
|
||||
<th>Cawangan : </b>{{ $cawanganDetail['caw_name'] }}</th>
|
||||
<th>Bilangan Surat : </b>{{ $bil_lelongcaw[0]['bil_lelong'] }}</th>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<br>
|
||||
<table cellspacing="0" cellpadding="5" style="float:right;" border="1" width="100%" height="80" align="left" id="sim">
|
||||
<thead>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
{{-- <th>Nama</th> --}}
|
||||
<th>No.KP</th>
|
||||
<th>No.Telefon</th>
|
||||
<th>Marhun</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Keuntungan 6 Bulan (RM)</th>
|
||||
<th>Keuntungan Telah Bayar (RM)</th>
|
||||
</thead>
|
||||
@foreach($getsurat as $surat)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td style='word-wrap'>{{ $surat['list_norujukan'][0]['norujukan'] }}</td>
|
||||
{{-- <td>{{ $surat['nama'][0]['nama'] ?? NULL}}</td> --}}
|
||||
<td>{{ $surat['list_norujukan'][0]['nokp'] }}</td>
|
||||
<td>6{{ $surat['nama'][0]['telefon'] ?? NULL}}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['marhun'] }}</td>
|
||||
<td align="right">{{ $surat['list_norujukan'][0]['berat'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['tempoh'] }}</td>
|
||||
<td align="right">{{ $surat['list_norujukan'][0]['pinjaman'] }}</td>
|
||||
<td align="right">{{ $surat['list_norujukan'][0]['bakipjm'] }}</td>
|
||||
<td align="right">{{ $surat['list_norujukan'][0]['bakiupah'] }}</td>
|
||||
<td>{{ number_format($surat['ktlhbyr'] , 2, '.', ',')}}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,228 @@
|
||||
<style>
|
||||
#header {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding-left:4px;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
#header tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#header tr:hover {background-color: #ddd;}
|
||||
|
||||
#header th {
|
||||
/* padding-top: 12px;
|
||||
padding-bottom: 12px; */
|
||||
text-align: left;
|
||||
/* padding:4px; */
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
border-collapse: collapse;
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#details {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td, #details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#details tr:hover {background-color: #ddd;}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style:bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
.container{
|
||||
page-break-after:always;
|
||||
padding: 20px 20px 20px 20px;
|
||||
}
|
||||
.tablestyle{
|
||||
font-size:12px;
|
||||
}
|
||||
.tablestyle td, .tablestyle th{
|
||||
/* padding-top: 12px; */
|
||||
/* border:1px solid black; */
|
||||
|
||||
}
|
||||
.page-break {
|
||||
page-break-before: always;
|
||||
}
|
||||
</style>
|
||||
@foreach($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
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $notis->t_matang);
|
||||
$datez1 = $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><u>NOTIS PEMBERITAHUAN</u></h4>
|
||||
<p>Dengan hormatnya dimaklumkan gadaian tuan/puan bernombor <b>{{$notis->norujukan}}</b> dengan jumlah pembiayaan
|
||||
sebanyak <b>RM{{number_format($notis->bakipjm, 2, '.', ',')}}</b> akan/telah tamat tarikh matang gadaiannya pada <b>{{$datez1}}</b> yang telah mencecah <b>{{$notis->tempoh}}</b> bulan.
|
||||
Tuan/puan atau wakil adalah dikehendaki menebus/membayar <b>KOS KEUNTUNGAN</b> tersebut secepat mungkin.
|
||||
Jika pihak tuan/puan menghadapi sebarang masalah, sila hubungi kami sebagaimana alamat di atas ATAU
|
||||
datang sendiri ke AR-RAHN dengan membawa bersama salinan asal Surat Akaun Gadaian tuan/puan.</p>
|
||||
|
||||
|
||||
|
||||
<p>Sekian, terima kasih.</p>
|
||||
|
||||
|
||||
|
||||
|
||||
<p>Nota:</p>
|
||||
<i>Sila abaikan notis ini sekiranya pihak tuan/puan telah membuat urusan di atas.</i>
|
||||
<br>
|
||||
|
||||
<i>Notis ini adalah cetakan berkomputer dan tiada tandatangan diperlukan</i>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@@ -0,0 +1,228 @@
|
||||
<style>
|
||||
#header {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding-left:4px;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
#header tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#header tr:hover {background-color: #ddd;}
|
||||
|
||||
#header th {
|
||||
/* padding-top: 12px;
|
||||
padding-bottom: 12px; */
|
||||
text-align: left;
|
||||
/* padding:4px; */
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
border-collapse: collapse;
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#details {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td, #details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#details tr:hover {background-color: #ddd;}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style:bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
.container{
|
||||
page-break-after:always;
|
||||
padding: 20px 20px 20px 20px;
|
||||
}
|
||||
.tablestyle{
|
||||
font-size:12px;
|
||||
}
|
||||
.tablestyle td, .tablestyle th{
|
||||
/* padding-top: 12px; */
|
||||
/* border:1px solid black; */
|
||||
|
||||
}
|
||||
.page-break {
|
||||
page-break-before: always;
|
||||
}
|
||||
</style>
|
||||
@foreach($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
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $notis->t_matang1);
|
||||
$datez1 = $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><u>NOTIS PEMBERITAHUAN</u></h4>
|
||||
<p>Dengan hormatnya dimaklumkan gadaian tuan/puan bernombor <b>{{$notis->norujukan}}</b> dengan jumlah pembiayaan
|
||||
sebanyak <b>RM{{number_format($notis->bakipjm, 2, '.', ',')}}</b> akan/telah tamat kontrak gadaiannya pada <b>{{$datez1}}</b> yang telah mencecah <b>{{$notis->tempoh}}</b> bulan.
|
||||
Tuan/puan atau wakil adalah dikehendaki menebus/membayar <b>KOS KEUNTUNGAN</b> tersebut secepat mungkin.
|
||||
Jika pihak tuan/puan menghadapi sebarang masalah, sila hubungi kami sebagaimana alamat di atas ATAU
|
||||
datang sendiri ke AR-RAHN dengan membawa bersama salinan asal Surat Akaun Gadaian tuan/puan.</p>
|
||||
|
||||
|
||||
|
||||
<p>Sekian, terima kasih.</p>
|
||||
|
||||
|
||||
|
||||
|
||||
<p>Nota:</p>
|
||||
<i>Sila abaikan notis ini sekiranya pihak tuan/puan telah membuat urusan di atas.</i>
|
||||
<br>
|
||||
|
||||
<i>Notis ini adalah cetakan berkomputer dan tiada tandatangan diperlukan</i>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@@ -0,0 +1,223 @@
|
||||
<style>
|
||||
#header {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding-left:4px;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
#header tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#header tr:hover {background-color: #ddd;}
|
||||
|
||||
#header th {
|
||||
/* padding-top: 12px;
|
||||
padding-bottom: 12px; */
|
||||
text-align: left;
|
||||
/* padding:4px; */
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
border-collapse: collapse;
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#details {
|
||||
/* font-family: Arial, Helvetica, sans-serif; */
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td, #details th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#details tr:hover {background-color: #ddd;}
|
||||
|
||||
#details th {
|
||||
padding-top: 12px;
|
||||
font-style:bold;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
.container{
|
||||
page-break-after:always;
|
||||
padding: 20px 20px 20px 20px;
|
||||
}
|
||||
.tablestyle{
|
||||
font-size:12px;
|
||||
}
|
||||
.tablestyle td, .tablestyle th{
|
||||
/* padding-top: 12px; */
|
||||
/* border:1px solid black; */
|
||||
|
||||
}
|
||||
.page-break {
|
||||
page-break-before: always;
|
||||
}
|
||||
</style>
|
||||
@foreach($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'] ?? NULLL }}</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top;">KEPADA</td>
|
||||
|
||||
<td style="vertical-align:top;">:</td>
|
||||
<td style="vertical-align:top;">{{ $notis['nama']['nama'] ?? NULL}}
|
||||
<br> {{ strtoupper($notis['nama']['alamat1'] ?? NULL ) }}
|
||||
{{-- {!! ($notis['nama']['alamat1'] === null || $notis['nama']['alamat1'] === '') ? '' : '<br>' . strtoupper($notis['nama']['alamat1']) !!} <br> --}} <br>
|
||||
{{ ' ' . $notis['nama']['poskod'] ?? NULL. ' ' . 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><u>NOTIS PEMBERITAHUAN</u></h4>
|
||||
<p>Dengan hormatnya dimaklumkan gadaian tuan/puan bernombor <b>{{ $notis['norujukan']}}</b> dengan jumlah baki pembiayaan sebanyak <b>RM {{ number_format($notis['bakipjm'] , 2, '.', ',')}}</b> telah tamat tempoh gadaiannya pada <b>@php
|
||||
$myDateTime1 = DateTime::createFromFormat('Y-m-d', $notis['t_matang']);
|
||||
$datez1 = $myDateTime1->format('d-m-Y');
|
||||
echo($datez1);
|
||||
@endphp</b> dan telah mencecah <b>{{ $notis['tempoh']}}</b> bulan.
|
||||
Tuan/puan atau wakil adalah dikehendaki menebus/membayar ANSURAN PEMBIAYAAN tersebut secepat mungkin. Jika pihak tuan/puan menghadapi sebarang masalah, sila hubungi kami sebagaimana alamat di atas ATAU datang sendiri ke premis AR-RAHN kami.</p>
|
||||
|
||||
|
||||
|
||||
|
||||
<p>Notis:</p>
|
||||
<i>Sila bawa bersama Surat Akaun Gadai (SAG) untuk sebarang urusan.</i>
|
||||
<br>
|
||||
|
||||
<i>Sila abaikan notis ini sekiranya penebusan telah dibuat.</i>
|
||||
|
||||
<p>Surat ini adalah cetakan komputer dan tiada tandatangan diperlukan</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@@ -653,6 +653,12 @@ Route::group(['middleware' => ['permission:notisperingatan'], 'prefix' => 'notis
|
||||
Route::post('/gadaibycawnotisfasa1',['as'=>'notisperingatan.gadaibycawnotisfasa1','uses'=>'NotisController@gadaibycawnotisfasa1']);
|
||||
Route::get('/gadaibycawnotisfasa1pdf/{tempoh}/{tempoh2}',['as'=>'notisperingatan.gadaibycawnotisfasa1pdf','uses'=>'NotisController@gadaibycawnotisfasa1pdf']);
|
||||
Route::get('/gadaibycawnotisfasa1excel/{tempoh}/{tempoh2}',['as'=>'notisperingatan.gadaibycawnotisfasa1excel','uses'=>'NotisController@gadaibycawnotisfasa1excel']);
|
||||
|
||||
Route::get('/kemaskinidatanotis/{tarikhnotis}',['as'=>'notisperingatan.kemaskinidatanotis','uses'=>'NotisController@kemaskinidatanotis']);
|
||||
Route::get('/jananotisperingatan2/{notisid}/{cawid}',['as'=>'notisperingatan.jananotisperingatan2','uses'=>'NotisController@jananotisperingatan2']);
|
||||
Route::get('/jananotisperingatan2fasa2/{notisid}/{cawid}',['as'=>'notisperingatan.jananotisperingatan2fasa2','uses'=>'NotisController@jananotisperingatan2fasa2']);
|
||||
Route::get('/blastnotisperingatan/{notisid}/{cawid}',['as'=>'notisperingatan.blastnotisperingatan','uses'=>'NotisController@blastnotisperingatan']);
|
||||
|
||||
});
|
||||
// Route::get('/sms', [SmsController::class, 'index']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user