add listing failed job dan ubah ayat fasa 2
This commit is contained in:
@@ -28,8 +28,7 @@ use App\Models\LelongTebus;
|
|||||||
use App\Models\LogUser;
|
use App\Models\LogUser;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use App\Jobs\SendWabot;
|
use App\Jobs\SendWabot;
|
||||||
|
use App\Models\FailedJob;
|
||||||
|
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use PDF;
|
use PDF;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
@@ -1691,6 +1690,12 @@ Sekian, terima kasih.';
|
|||||||
return redirect()->route('notisperingatan.shownotisperingatanall',[$notis->tarikh_notis,$notisid])
|
return redirect()->route('notisperingatan.shownotisperingatanall',[$notis->tarikh_notis,$notisid])
|
||||||
->with('success','Kemaskini Dalam Proses');
|
->with('success','Kemaskini Dalam Proses');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function failedjob()
|
||||||
|
{
|
||||||
|
$failed = FailedJob::all();
|
||||||
|
return view('notisperingatan.failedjob',compact('failed'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ Baki Pembiayaan: *RM'.$bakipjm.'*'.'
|
|||||||
Tarikh Tamat Kontrak: *'.$t_matangf2.'*
|
Tarikh Tamat Kontrak: *'.$t_matangf2.'*
|
||||||
Tempoh: *'.$suratnotis->tempoh.' bulan*.
|
Tempoh: *'.$suratnotis->tempoh.' bulan*.
|
||||||
|
|
||||||
Tuan/puan atau wakil adalah dikehendaki menebus/membayar *KOS KEUNTUNGAN* tersebut secepat mungkin. Jika pihak tuan/puan menghadapi sebarang masalah, sila hubungi kami sebagaimana alamat di dalam *Surat Akaun Gadaian* ATAU datang sendiri ke *'.$cawname.'* dengan membawa bersama salinan asal Surat Akaun Gadaian tuan/puan.
|
Tuan/puan atau wakil adalah dikehendaki menebus/tukar surat di premis kami dengan kadar yang segera. Jika pihak tuan/puan menghadapi sebarang masalah, sila hubungi kami sebagaimana alamat di dalam *Surat Akaun Gadaian* ATAU datang sendiri ke *'.$cawname.'* dengan membawa bersama salinan asal Surat Akaun Gadaian tuan/puan.
|
||||||
Sekian, terima kasih.';
|
Sekian, terima kasih.';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class FailedJob extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $table = 'failed_jobs';
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'uuid',
|
||||||
|
'connection',
|
||||||
|
'queue',
|
||||||
|
'payload',
|
||||||
|
'exception',
|
||||||
|
'failed_at',
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -184,6 +184,9 @@
|
|||||||
<li class="{{ (request()->is('notisperingatan/senarainotisall/*') || request()->is('notisperingatan/senarainotisall') ) ? 'active' : '' }}">
|
<li class="{{ (request()->is('notisperingatan/senarainotisall/*') || request()->is('notisperingatan/senarainotisall') ) ? 'active' : '' }}">
|
||||||
<a href="{{url('notisperingatan/senarainotisall')}}">Senarai Notis All</a>
|
<a href="{{url('notisperingatan/senarainotisall')}}">Senarai Notis All</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="{{ (request()->is('notisperingatan/failedjob/*') || request()->is('notisperingatan/failedjob') ) ? 'active' : '' }}">
|
||||||
|
<a href="{{url('notisperingatan/failedjob')}}">Failed Log</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@endhasrole
|
@endhasrole
|
||||||
|
|||||||
@@ -0,0 +1,141 @@
|
|||||||
|
@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 Failed Job
|
||||||
|
</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 ($failed as $info)
|
||||||
|
<tr>
|
||||||
|
<td>{{$loop->iteration}}</td>
|
||||||
|
<td> @php
|
||||||
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $info['info']['failed_at']);
|
||||||
|
$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
|
||||||
@@ -662,6 +662,7 @@ Route::group(['middleware' => ['permission:notisperingatan'], 'prefix' => 'notis
|
|||||||
Route::get('/jananotisperingatan2fasa2/{notisid}/{cawid}',['as'=>'notisperingatan.jananotisperingatan2fasa2','uses'=>'NotisController@jananotisperingatan2fasa2']);
|
Route::get('/jananotisperingatan2fasa2/{notisid}/{cawid}',['as'=>'notisperingatan.jananotisperingatan2fasa2','uses'=>'NotisController@jananotisperingatan2fasa2']);
|
||||||
Route::get('/blastnotisperingatan/{notisid}/{cawid}',['as'=>'notisperingatan.blastnotisperingatan','uses'=>'NotisController@blastnotisperingatan']);
|
Route::get('/blastnotisperingatan/{notisid}/{cawid}',['as'=>'notisperingatan.blastnotisperingatan','uses'=>'NotisController@blastnotisperingatan']);
|
||||||
|
|
||||||
|
Route::get('/failedjob',['as'=>'notisperingatan.failedjob','uses'=>'NotisController@failedjob']);
|
||||||
});
|
});
|
||||||
// Route::get('/sms', [SmsController::class, 'index']);
|
// Route::get('/sms', [SmsController::class, 'index']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user