Merged in izzati-ujrah (pull request #92)

tambah button dlm page khazanah untuk laporan notis peringatan
This commit is contained in:
izzati zulkifli
2024-01-15 01:00:56 +00:00
10 changed files with 1146 additions and 8 deletions
@@ -4427,6 +4427,72 @@ class KhazanahController extends Controller
}
}
public function notisperingatan(Request $request){
$auth_user = Auth::user();
$api_url = config('api.url');
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
return view('callcenter.khazanah.notisperingatan',compact('cawangan_info','api_url'));
}
public function rekodnotisperingatanpertama()
{
$auth_user = Auth::user();
$api_url = config('api.url');
$arrayinfo = [];
$notis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/cawangan/senarainotisperingatan/'. $auth_user['cawangan'])->json();
// dd($notis );
foreach($notis as $info)
{
$getcawnotis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/cawangan/getcawnotis/'. $auth_user['cawangan'].'/'.$info['notis_id'])->json();
// dd($getcawnotis);
array_push($arrayinfo, ['info'=> $info,'cawnotis' => $getcawnotis]);
}
return view('callcenter.khazanah.rekodnotisperingatanpertama',compact('notis','arrayinfo'));
}
public function detailnotisperingatan()
{
$auth_user = Auth::user();
$api_url = config('api.url');
$kodcaw = $auth_user['cawangan'];
$senarai = [];
$detailnotis = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/cawangan/getcawnotisall/'. $auth_user['cawangan'])->json();
// dd($detailnotis);
foreach($detailnotis as $info)
{
// $getcawnotisbycaw = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/arcc/getcawnotisbycaw', [
// 'kodcaw' => $info[0]['kodcaw'],
// 'notisid' => $notisid
// ])->json();
$data = [
// 'detailnotis' => $info ? $info : '',
'getcawnotisbycaw' => $info ? $info : '',
];
array_push($senarai,$data);
// dd($data);
}
return view('callcenter.khazanah.detailnotisperingatan',compact('detailnotis','senarai','kodcaw'));
}
public function bycawnotisperingatan($kodcaw,$notisid, Request $request)
{
$auth_user = Auth::user();
$api_url = config('api.url');
$kodcaw = $auth_user['cawangan'];
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'.$auth_user['cawangan'])->json();
$bycawnotisperingatan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/cawangan/bycawnotisperingatan/'.$auth_user['cawangan'].'/'.$notisid)->json();
return view('callcenter.khazanah.bycawdetailnotisperingatan',compact('cawangan_info','bycawnotisperingatan','kodcaw','notisid','api_url'));
}
}
@@ -0,0 +1,321 @@
@extends('layouts.app_operasi')
<style>
.radiostyle .radio-green {
background-color: #27ae60;
color:white;
box-shadow: 5px 10px #888888;
width:200px;
margin-right:5px;
transition: 0.5s ease;
}
.radiostyle .radio-red {
background-color: #e74c3c;
color:white;
width:200px;
margin-right:5px;
box-shadow: 5px 10px #888888;
transition: 0.5s ease;
}
.radiostyle .radio-yellow {
background-color: #3498db;
color:white;
width:200px;
margin-right:5px;
box-shadow: 5px 10px #888888;
transition: 0.5s ease;
}
.radiostyle .radio-green:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-red:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-yellow:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-green input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
.radiostyle .radio-yellow input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
.radiostyle .radio-red input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
</style>
<style>
#details {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#details td,
#details th {
padding: 8px;
font-size: 12px;
}
#details tr:nth-child(even) {
background-color: #ffffff;
}
#details tr:hover {
background-color: #ddd;
}
#details th {
padding-top: 12px;
font-style: bold;
padding-bottom: 12px;
text-align: left;
padding: 4px;
color: black;
}
</style>
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<nav aria-label="breadcrumb">
<ol class="breadcrumb pb-3">
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
<li class="breadcrumb-item"><a href="{{ route('laporan.notisperingatan') }}">Notis Peringatan</a></li>
<li class="breadcrumb-item"><a href="{{ route('laporan.detailnotisperingatan') }}">Senarai Notis Peringatan</a></li>
<li class="breadcrumb-item active" aria-current="page">{{$cawangan_info['details_caw']}}</li>
</ol>
</nav>
<div class="card-body text-center">
<div class="row form-group">
<div class="col-md-2">
</div>
<div class="col-md-10">
</div>
</div>
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@elseif ($message = Session::get('failed'))
<div class="alert alert-danger">
<p>{{ $message }}</p>
</div>
@endif
<div class="container-fluid">
<form id="exportpdf" action="{{route('arcc.blastkedua',['kodcaw' => $kodcaw, 'notisid' => $notisid])}}" target="_blank" method="POST">
{{-- <form id="exportpdf" action="" target="_blank" method="POST"> --}}
@csrf
<input type="hidden" name="type" id="typedonwload" value="">
<input type='hidden' name="radaktif" value="aktif">
<input type='hidden' name="notisid" value="{{$notisid}}" >
<input type='hidden' name="kodcaw" value="{{$kodcaw}}">
@php
$getfasa = Http::withOptions(['verify' => config('app.api_verify')])
->get($api_url . '/arcc/getfasa', ['kodcaw' => $kodcaw, 'notisid' => $notisid])
->json();
@endphp
<input type='hidden' name="fasa" value="{{$getfasa['fasa'] ?? ''}}">
<table class="table table-striped table-hover" id="details" align="center">
<thead>
<th>Bil</th>
<th>No.Rujukan</th>
<th>Nama</th>
<th>No.KP</th>
<th>No.Telefon</th>
<th>Tempoh</th>
<th>Baki Pembiayaan (RM)</th>
<th>Keuntungan 6Bulan (RM)</th>
<th>Amaun Telah Bayar (RM)</th>
<th>Keuntungan Semasa (RM)</th>
<th>Tarikh Matang</th>
<th>Tarikh Tamat Kontrak</th>
<th>T.Notis Pertama</th>
<th>T.Notis Kedua</th>
<th>Tag Surat</th>
<th>Jenis Notis</th>
</thead>
{{-- {{dd($bycawnotisperingatankedua)}} --}}
@foreach ($bycawnotisperingatan as $index => $item)
<tr>
<td>{{ $loop->iteration }}</td>
<td style="white-space: nowrap;">{{$item['norujukan']}}</td>
<td style="white-space: nowrap;">{{$item['namacust']['nama'] ?? ''}}</td>
<td style="white-space: nowrap;">{{$item['nokp']}}</td>
<td style="white-space: nowrap;">{{$item['namacust']['telefon'] ?? ''}}</td>
<td align = 'right' style="white-space: nowrap;">{{$item['jbg']}}</td>
<td align = 'right' style="white-space: nowrap;">{{number_format($item['datagadai']['bakipjm'], 2, '.', ',')}}</td>
<td align = 'right' style="white-space: nowrap;">{{number_format($item['datagadai']['bakiupah'], 2, '.', ',')}}</td>
<td align = 'right' style="white-space: nowrap;">{{number_format($item['datagadai']['hargajualan']-$item['datagadai']['bakihargajualan'], 2, '.', ',')}}</td>
<td align = 'right' style="white-space: nowrap;">{{number_format($item['keuntungan'], 2, '.', ',')}}</td>
<td align = 'right' style="white-space: nowrap;"><b>
@if($item['tmatang'] == null)
@else
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['tmatang']);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate);
@endphp</b></td>
@endif
<td align = 'right' style="white-space: nowrap;"><b>
@if($item['tmatang1'] == null)
@else
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['tmatang1']);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate);
@endphp</b></td>
@endif
<td align = 'right' style="white-space: nowrap;"><b>
@if($item['tarikhnotis1'] == null)
@else
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['tarikhnotis1']);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate);
@endphp</b></td>
@endif
<td align = 'right' style="white-space: nowrap;"><b>
@if($item['tarikhnotis2'] == null)
@else
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['tarikhnotis2']);
$formattedweddingdate = $myDateTime->format('d-m-Y');
echo($formattedweddingdate);
@endphp</b></td>
@endif
<td align = 'right' style="white-space: nowrap;"><b>
@if($item['tagsurat'] == 1)
<img src="{{ asset('img/surat.png') }}" style="width:20px"></img>Selesai
@elseif($item['tagsurat'] == 0)
Belum Hantar
</b></td>
@endif
<td align = 'right' style="white-space: nowrap;"><b>
@if($item['peringatan'] == 1)
Pertama
@elseif($item['peringatan'] == 2)
Kedua
</b></td>
@endif
</tr>
@endforeach
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
var tablelelongbid= $('#details').DataTable( {
"columnDefs": [
{
"targets": 0,
"target": '_blank',
"orderable": false
},
{
"targets": 5,
"orderable": false
}
],
// order: [[1, 'asc']],
// // "ordering": false,
"info": false,
"lengthChange": false,
"pageLength": 9999999,
dom: 'Bfrtip',
buttons: [
// {
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
// target: "_blank",
// titleAttr: 'Cetak Senarai',
// text: '<h8><b>CETAK SENARAI</b></h8>',
// action: function ( e, dt, node, config ) {
// $('#typedonwload').val('pdflist');
// $("#exportpdf").submit();
// // window.open("_blank");
// }
// },
// {
// className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
// titleAttr: 'Surat Berdaftar',
// text: '<h8><b>SURAT BERDAFTAR</b></h8>',
// action: function ( e, dt, node, config ) {
// $('#typedonwload').val('pdf');
// $("#exportpdf").submit();
// }
// },
// {
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
// target: "_blank",
// titleAttr: 'Blast Whatsapp',
// text: '<h8><b>WHATSAPP & SMS</b></h8>',
// action: function ( e, dt, node, config ) {
// // $('#typedonwload').val('whatsapp');
// // $("#exportpdf").submit();
// $("#exportpdf").click(function() {
// $('[data-toggle="tooltip"]').tooltip()
// alert("ADAKAH ANDA PASTI?");
// $('#typedonwload').val('whatsapp');
// $("#exportpdf").submit();
// });
// }
// }
]
});
$('.export').tooltip();
$( '.export').removeClass('dt-button');
</script>
@endsection
@@ -0,0 +1,251 @@
@extends('layouts.app_operasi')
<style>
.radiostyle .radio-green {
background-color: #27ae60;
color:white;
box-shadow: 5px 10px #888888;
width:200px;
margin-right:5px;
transition: 0.5s ease;
}
.radiostyle .radio-red {
background-color: #e74c3c;
color:white;
width:200px;
margin-right:5px;
box-shadow: 5px 10px #888888;
transition: 0.5s ease;
}
.radiostyle .radio-yellow {
background-color: #3498db;
color:white;
width:200px;
margin-right:5px;
box-shadow: 5px 10px #888888;
transition: 0.5s ease;
}
.radiostyle .radio-green:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-red:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-yellow:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-green input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
.radiostyle .radio-yellow input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
.radiostyle .radio-red input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
</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;
}
</style>
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="card">
<nav aria-label="breadcrumb">
<ol class="breadcrumb pb-3">
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
<li class="breadcrumb-item"><a href="{{ route('laporan.notisperingatan') }}">Notis Peringatan</a></li>
<li class="breadcrumb-item active" aria-current="page">Senarai Notis Peringatan</li>
</ol>
</nav>
<div class="card-body text-center">
<div class="row form-group">
<div class="col-md-2">
</div>
<div class="col-md-10">
</div>
</div>
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@elseif ($message = Session::get('failed'))
<div class="alert alert-danger">
<p>{{ $message }}</p>
</div>
@endif
<div class="container">
<form id="exportpdf" action="{{route('stokaudit.rekodblastexport')}}" target="_blank" method="POST">
@csrf
<input type="hidden" name="type" id="typedonwload" value="">
<input type='hidden' name="radaktif" value="aktif">
<input type='hidden' name="kodcaw" value="{{$kodcaw}}" >
<table class="table table-striped table-hover" id="myTable">
<thead>
<th>Bil</th>
<th>Notis ID</th>
<th>Cawangan</th>
<th>Bil.Surat Notis Pertama</th>
<th>Bil.Surat Notis Kedua</th>
{{-- <th>Baki Pembiayaan (RM)</th> --}}
<th>Maklumat Lanjut</th>
</thead>
@foreach ($senarai as $index => $item)
{{-- {{dd($item['getcawnotisbycaw'])}} --}}
<tr>
<td>{{ $loop->iteration }}</td>
<td style="white-space: nowrap;">{{$item['getcawnotisbycaw']['namacaw'][$index]['notis_id']}}</td>
<td style="white-space: nowrap;"> @if($item['getcawnotisbycaw']['namacaw'][0]['status'] == 2)
<img src="{{ asset('img/success.png') }}" style="width:20px"></img>
@endif{{$item['getcawnotisbycaw']['namacaw'][$index]['details_caw']}}</td>
<td align="center" style="white-space: nowrap;">{{$item['getcawnotisbycaw']['totalsagpertama']}}</td>
<td align="center" style="white-space: nowrap;">{{$item['getcawnotisbycaw']['totalsagkedua']}}</td>
{{-- <td style="white-space: nowrap;">{{number_format($item['getcawnotisbycaw']['totalbakipjm'],2)}}</td> --}}
<td style="white-space: nowrap;"><a href="{{ route('laporan.bycawnotisperingatan', [ 'kodcaw' => $kodcaw, 'notisid' => $item['getcawnotisbycaw']['namacaw'][$index]['notis_id'] ]) }}" class="btn btn-info text-white">Lihat</a>
</td>
</tr>
@endforeach
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var tablecustomers = $('#myTable').DataTable({
"ordering": false
});
$(document).ready( function () {
$('#datetimepicker1').datepicker({
format: 'dd-mm-yyyy'
});
});
</script>
<script>
var tablelelongbid= $('#details').DataTable( {
"columnDefs": [
{
"targets": 0,
"target": '_blank',
"orderable": false
},
{
"targets": 5,
"orderable": false
}
],
// order: [[1, 'asc']],
// // "ordering": false,
"info": false,
"lengthChange": false,
"pageLength": 9999999,
dom: 'Bfrtip',
buttons: [
// {
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
// target: "_blank",
// titleAttr: 'Export to Excel',
// text: '<h8><b>EXCEL</b></h8>',
// action: function ( e, dt, node, config ) {
// $('#typedonwload').val('excel');
// $("#exportpdf").submit();
// // window.open("_blank");
// }
// },
{
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
titleAttr: 'Export to PDF',
text: '<h8><b>PDF</b></h8>',
action: function ( e, dt, node, config ) {
$('#typedonwload').val('pdf');
$("#exportpdf").submit();
}
},
// {
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
// target: "_blank",
// titleAttr: 'Blast Whatsapp',
// text: '<h8><b>WHATSAPP</b></h8>',
// action: function ( e, dt, node, config ) {
// $('#typedonwload').val('whatsapp');
// $("#exportpdf").submit();
// // window.open("_blank");
// }
// }
]
});
$('.export').tooltip();
$( '.export').removeClass('dt-button');
</script>
@endsection
@@ -0,0 +1,233 @@
@extends('layouts.app_operasi')
<style>
.radiostyle .radio-green {
background-color: #27ae60;
color:white;
box-shadow: 5px 10px #888888;
width:200px;
margin-right:5px;
transition: 0.5s ease;
}
.radiostyle .radio-red {
background-color: #e74c3c;
color:white;
width:200px;
margin-right:5px;
box-shadow: 5px 10px #888888;
transition: 0.5s ease;
}
.radiostyle .radio-yellow {
background-color: #3498db;
color:white;
width:200px;
margin-right:5px;
box-shadow: 5px 10px #888888;
transition: 0.5s ease;
}
.radiostyle .radio-green:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-red:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-yellow:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-green input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
.radiostyle .radio-yellow input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
.radiostyle .radio-red input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
</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;
}
</style>
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="card">
<nav aria-label="breadcrumb">
<ol class="breadcrumb pb-3">
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
{{-- <li class="breadcrumb-item"><a href="{{ route('laporan.notisperingatan') }}">Notis Peringatan</a></li> --}}
<li class="breadcrumb-item active" aria-current="page">Notis Peringatan</li>
</ol>
</nav>
<div class="card-body text-center">
<div class="row form-group">
<div class="col-md-2">
</div>
<div class="col-md-10">
</div>
</div>
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@elseif ($message = Session::get('failed'))
<div class="alert alert-danger">
<p>{{ $message }}</p>
</div>
@endif
<div class="container">
<div class="row">
<div class="btn-group-toggle col-md-12 col-sm-12 mb-4">
{{-- <label class="btn btn-lg green">
<a href="{{ route('laporan.carianpelanggan') }}" class="btn btn-dark btn-lg btn-block mb-3">Notis Peringatan Pertama</a>
</label> --}}
<label class="btn btn-lg radio-green">
<a href="{{ route('laporan.detailnotisperingatan') }}" class="btn btn-dark btn-lg btn-block mb-3">Notis Peringatan Pertama Dan Kedua</a>
</label>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var tablecustomers = $('#myTable').DataTable({
"ordering": false
});
$(document).ready( function () {
$('#datetimepicker1').datepicker({
format: 'dd-mm-yyyy'
});
});
</script>
<script>
var tablelelongbid= $('#details').DataTable( {
"columnDefs": [
{
"targets": 0,
"target": '_blank',
"orderable": false
},
{
"targets": 5,
"orderable": false
}
],
// order: [[1, 'asc']],
// // "ordering": false,
"info": false,
"lengthChange": false,
"pageLength": 9999999,
dom: 'Bfrtip',
buttons: [
// {
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
// target: "_blank",
// titleAttr: 'Export to Excel',
// text: '<h8><b>EXCEL</b></h8>',
// action: function ( e, dt, node, config ) {
// $('#typedonwload').val('excel');
// $("#exportpdf").submit();
// // window.open("_blank");
// }
// },
// {
// className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
// titleAttr: 'Export to PDF',
// text: '<h8><b>PDF</b></h8>',
// action: function ( e, dt, node, config ) {
// $('#typedonwload').val('pdf');
// $("#exportpdf").submit();
// }
// },
// {
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
// target: "_blank",
// titleAttr: 'Blast Whatsapp',
// text: '<h8><b>WHATSAPP</b></h8>',
// action: function ( e, dt, node, config ) {
// $('#typedonwload').val('whatsapp');
// $("#exportpdf").submit();
// // window.open("_blank");
// }
// }
]
});
$('.export').tooltip();
$( '.export').removeClass('dt-button');
</script>
@endsection
@@ -0,0 +1,263 @@
@extends('layouts.app_operasi')
<style>
.radiostyle .radio-green {
background-color: #27ae60;
color:white;
box-shadow: 5px 10px #888888;
width:200px;
margin-right:5px;
transition: 0.5s ease;
}
.radiostyle .radio-red {
background-color: #e74c3c;
color:white;
width:200px;
margin-right:5px;
box-shadow: 5px 10px #888888;
transition: 0.5s ease;
}
.radiostyle .radio-yellow {
background-color: #3498db;
color:white;
width:200px;
margin-right:5px;
box-shadow: 5px 10px #888888;
transition: 0.5s ease;
}
.radiostyle .radio-green:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-red:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-yellow:hover {
box-shadow: 5px 5px #888888;
}
.radiostyle .radio-green input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
.radiostyle .radio-yellow input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
.radiostyle .radio-red input[type="radio"]:checked{
box-shadow: 5px 10px #888888;
}
</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;
}
</style>
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="card">
<nav aria-label="breadcrumb">
<ol class="breadcrumb pb-3">
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
<li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
<li class="breadcrumb-item"><a href="{{ route('laporan.notisperingatan') }}">Notis Peringatan</a></li>
<li class="breadcrumb-item active" aria-current="page">Senarai Notis Peringatan Pertama</li>
</ol>
</nav>
<div class="card-body text-center">
<div class="row form-group">
<div class="col-md-2">
</div>
<div class="col-md-10">
</div>
</div>
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@elseif ($message = Session::get('failed'))
<div class="alert alert-danger">
<p>{{ $message }}</p>
</div>
@endif
<div class="container">
<form id="exportpdf" action="{{route('stokaudit.rekodblastexport')}}" target="_blank" method="POST">
@csrf
<input type="hidden" name="type" id="typedonwload" value="">
<input type='hidden' name="radaktif" value="aktif">
<table class="table table-striped table-hover" id="myTable">
<thead>
<th>Notis ID</th>
<th>Tarikh Notis</th>
<th>Cawangan</th>
<th>Fasa</th>
<th>Maklumat Lanjut</th>
</thead>
@foreach ($arrayinfo as $index => $item)
{{-- {{dd($item['cawnotis'])}} --}}
<tr>
<td style="white-space: nowrap;">{{ $item['info']['notis_id'] ?? '-' }}</td>
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $item['info']['tarikh_notis']);
$datez = $myDateTime->format('d-m-Y');
@endphp
<td style="white-space: nowrap;"> {{$datez}}</td>
<td style="white-space: nowrap;">@foreach($item['cawnotis'] as $item1)
@foreach($item1 as $item2)
@if($item2['status'] == 2)
<img src="{{ asset('img/success.png') }}" style="width:20px"></img>
@endif
{{ $item2['details_caw']}}<br>
@endforeach
@endforeach</td>
<td style="white-space: nowrap;">@if($item['info']['daritempoh'] == '5' )
1
@elseif($item['info']['daritempoh'] == '11' )
2
@endif</td>
{{-- <td style="white-space: nowrap;">{{ $item['info']['hinggatempoh'] ?? '-' }}</td> --}}
<td style="white-space: nowrap;">
{{-- <a href="{{ route('arcc.detailnotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-info text-white">Lihat</a> --}}
<a href="{{ route('laporan.detailnotisperingatan', [ 'notisid' => $item['info']['id']] ) }}" class="btn btn-warning text-white">Lihat</a></td>
</tr>
@endforeach
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var tablecustomers = $('#myTable').DataTable({
"ordering": false
});
$(document).ready( function () {
$('#datetimepicker1').datepicker({
format: 'dd-mm-yyyy'
});
});
</script>
<script>
var tablelelongbid= $('#details').DataTable( {
"columnDefs": [
{
"targets": 0,
"target": '_blank',
"orderable": false
},
{
"targets": 5,
"orderable": false
}
],
// order: [[1, 'asc']],
// // "ordering": false,
"info": false,
"lengthChange": false,
"pageLength": 9999999,
dom: 'Bfrtip',
buttons: [
// {
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
// target: "_blank",
// titleAttr: 'Export to Excel',
// text: '<h8><b>EXCEL</b></h8>',
// action: function ( e, dt, node, config ) {
// $('#typedonwload').val('excel');
// $("#exportpdf").submit();
// // window.open("_blank");
// }
// },
{
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
titleAttr: 'Export to PDF',
text: '<h8><b>PDF</b></h8>',
action: function ( e, dt, node, config ) {
$('#typedonwload').val('pdf');
$("#exportpdf").submit();
}
},
// {
// className: 'btn btn-outline-info pl-4 pr-4 btn-sm export',
// target: "_blank",
// titleAttr: 'Blast Whatsapp',
// text: '<h8><b>WHATSAPP</b></h8>',
// action: function ( e, dt, node, config ) {
// $('#typedonwload').val('whatsapp');
// $("#exportpdf").submit();
// // window.open("_blank");
// }
// }
]
});
$('.export').tooltip();
$( '.export').removeClass('dt-button');
</script>
@endsection
@@ -96,6 +96,9 @@
<div class="row">
<a href="{{ route('laporan.serahmarhuntebus') }}" class="btn btn-dark btn-lg btn-block mb-3">Serah Marhun Tebus</a>
</div>
<div class="row">
<a href="{{ route('laporan.notisperingatan') }}" class="btn btn-dark btn-lg btn-block mb-3">Notis Peringatan</a>
</div>
</div>
<div class="col-3 mx-1">
@@ -70,7 +70,7 @@
#details th {
padding: 8px;
font-size: 11px;
font-size: 13px;
}
#details tr:nth-child(even) {
@@ -92,7 +92,7 @@
</style>
@section('content')
<div class="container">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
@@ -122,7 +122,7 @@
</div>
@endif
<div class="container">
<div class="container-fluid">
<form id="exportpdf" action="{{route('stokaudit.rekodblastexport')}}" target="_blank" method="POST">
@csrf
@@ -70,7 +70,7 @@
#details th {
padding: 8px;
font-size: 11px;
font-size: 13px;
}
#details tr:nth-child(even) {
@@ -92,7 +92,7 @@
</style>
@section('content')
<div class="container">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
@@ -122,7 +122,7 @@
</div>
@endif
<div class="container">
<div class="container-fluid">
<form id="exportpdf" action="{{route('stokaudit.rekodblastsmsexport')}}" target="_blank" method="POST">
@csrf
@@ -170,7 +170,7 @@
#details th {
padding: 8px;
font-size: 11px;
font-size: 13px;
}
#details tr:nth-child(even) {
@@ -227,7 +227,7 @@
@section('content')
<div class="container">
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
+1
View File
@@ -428,6 +428,7 @@ Route::get('/cawangan/notisperingatan',['as'=>'laporan.notisperingatan','uses'=>
Route::get('/cawangan/rekodnotisperingatanpertama',['as'=>'laporan.rekodnotisperingatanpertama','uses'=>'KhazanahController@rekodnotisperingatanpertama'])->middleware('auth','khazanah');
Route::get('/cawangan/rekodnotisperingatankedua',['as'=>'laporan.rekodnotisperingatankedua','uses'=>'KhazanahController@rekodnotisperingatankedua'])->middleware('auth','khazanah');
Route::get('/cawangan/detailnotisperingatan',['as'=>'laporan.detailnotisperingatan','uses'=>'KhazanahController@detailnotisperingatan'])->middleware('auth','khazanah');
Route::get('/cawangan/bycawnotisperingatan/{kodcaw}/{notisid}',['as'=>'laporan.bycawnotisperingatan','uses'=>'KhazanahController@bycawnotisperingatan'])->middleware('auth','khazanah');