update tamat kontrak operasi
This commit is contained in:
@@ -56,15 +56,12 @@ class TamatKontController extends Controller
|
||||
//Operasi
|
||||
public function sebelumtamatkont(Request $request)
|
||||
{
|
||||
$t_lelong = $request->tarikh_lelong;
|
||||
dd($t_lelong);
|
||||
|
||||
return view('jananotis.sebelumtamatkont', compact('t_lelong'));
|
||||
return view('jananotis.sebelumtamatkont');
|
||||
}
|
||||
|
||||
public function senaraitemp(Request $request, $t_lelong)
|
||||
public function senaraitemp(Request $request)
|
||||
{
|
||||
dd($request->all());
|
||||
$t_lelong = $request->tarikh_lelong;
|
||||
|
||||
$getsurat = Gadai::where('t_matang1', '<', $t_lelong)
|
||||
->where('sttebus', '=', '')
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-12 mx-auto card">
|
||||
<h3 class="pt-3">Notis Sebelum Tamat Kontrak</h3>
|
||||
<h3 class="pt-4" style="margin-left:2%;">Notis Sebelum Tamat Kontrak</h3>
|
||||
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<form action="{{route('notistamatkontrak.sebelumtamatkont')}}" method="POST">
|
||||
<form action="{{route('notistamatkontrak.senaraitemp')}}" id="formsenarai" method="POST">
|
||||
@csrf
|
||||
<div class="form-group row" style="margin-top:2%; margin-left:1%;">
|
||||
<label for="tarikh_lelong" class="col-sm-1 col-form-label">Tarikh Lelongan</label>
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<div class="form-group row" style="margin-top:2%;">
|
||||
<div class="col-sm-10">
|
||||
<submit class="btn btn-primary" style="width:8%; margin-left:1%;">Carian</submit>
|
||||
<button type="button" class="btn btn-primary" onclick="carian()" style="margin-left:2%; width:9%;">Carian</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -34,7 +34,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
function carian() {
|
||||
$("#formsenarai").submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-12 mx-auto card">
|
||||
<h3 class="pt-3" style="margin-left:1%;">Notis Sebelum Tamat Kontrak</h3>
|
||||
<h3 class="pt-3" style="margin-left:1%;">Butiran Gadaian Mengikut Cawangan</h3>
|
||||
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
@endif
|
||||
<div class="container">
|
||||
<div class="row mb-4">
|
||||
<div class="row mb-2">
|
||||
<div class="col-md-11 mx-auto card p-4" style="margin-top:2%; margin-bottom:2%;">
|
||||
<p> <b>Tarikh Lelong : </b> {{ $t_lelong }}</p>
|
||||
<p> <b>Tarikh Gadai Sehingga : </b></p>
|
||||
@@ -49,8 +49,9 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('notistamatkontrak.sebelumtamatkont') }}" class="btn btn-primary">Kembali</a>
|
||||
<div class="modal-footer; text-center" style="margin-top:2%; margin-bottom:2%;">
|
||||
<a href="{{ route('notistamatkontrak.sebelumtamatkont') }}" class="btn btn-primary" style="width:8%;">Kembali</a>
|
||||
<a href="{{ route('analisa.janadata') }}" class="btn btn-success" style="width:8%; margin-left:1%;">Jana Simulasi</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-12 mx-auto card">
|
||||
<h3 class="pt-3" style="margin-left:1%;">Notis Sebelum Tamat Kontrak</h3>
|
||||
<h3 class="pt-3" style="margin-left:1%;">Butiran Gadaian Cawangan {{ $details }}</h3>
|
||||
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<table class="table table-striped table-xl text-center" id="senarailelongonline" style="width:100%">
|
||||
<table class="table table-striped table-xl text-center" id="senarailelongonline" style="width:100%; margin-top:1%;">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
@@ -41,9 +41,6 @@
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('notistamatkontrak.senaraitemp', $t_lelong) }}" class="btn btn-primary">Kembali</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -167,7 +167,7 @@ Route::group(['middleware' => ['permission:pengesahan'],'prefix'=>'pengesahan'],
|
||||
|
||||
Route::group(['middleware' => ['permission:notistamatkontrak'],'prefix'=>'notistamatkontrak'], function () {
|
||||
Route::get('/sebelumtamatkont',['as'=>'notistamatkontrak.sebelumtamatkont','uses'=>'TamatKontController@sebelumtamatkont']);
|
||||
Route::get('/senaraitemp/{t_lelong}',['as'=>'notistamatkontrak.senaraitemp','uses'=>'TamatKontController@senaraitemp']);
|
||||
Route::post('/senaraitemp',['as'=>'notistamatkontrak.senaraitemp','uses'=>'TamatKontController@senaraitemp']);
|
||||
Route::get('/tempbycaw/{details}/{t_lelong}',['as'=>'notistamatkontrak.tempbycaw','uses'=>'TamatKontController@tempbycaw']);
|
||||
});
|
||||
//Operasi
|
||||
|
||||
Reference in New Issue
Block a user