update error message
This commit is contained in:
@@ -17,15 +17,25 @@ class TamatKontController extends Controller
|
||||
//PC
|
||||
public function notistamatkontrak(Request $request)
|
||||
{
|
||||
|
||||
return view('jananotis.notistamatkontrak');
|
||||
|
||||
}
|
||||
|
||||
public function gadaibycaw(Request $request)
|
||||
{
|
||||
$user = Auth::user();
|
||||
$t_lelong = $request->tarikh_lelong;
|
||||
|
||||
if($t_lelong != null)
|
||||
{
|
||||
return view('jananotis.notistamatkontrak');
|
||||
}
|
||||
else
|
||||
{
|
||||
return redirect()->route('jananotis.notistamatkontrak')
|
||||
->with('failed','Sila Masukkan Tarikh Lelongan');
|
||||
}
|
||||
|
||||
$user = Auth::user();
|
||||
$getsurat = Gadai::where('t_matang1', '<', $t_lelong)
|
||||
->where('kodcaw', $user->kodcaw)
|
||||
->where('sttebus', '=', '')
|
||||
@@ -66,6 +76,16 @@ class TamatKontController extends Controller
|
||||
{
|
||||
$t_lelong = $request->tarikh_lelong;
|
||||
|
||||
if($t_lelong != null)
|
||||
{
|
||||
return view('jananotis.notistamatkontrak');
|
||||
}
|
||||
else
|
||||
{
|
||||
return redirect()->route('jananotis.notistamatkontrak')
|
||||
->with('failed','Sila Masukkan Tarikh Lelongan');
|
||||
}
|
||||
|
||||
$getsurat = Gadai::where('t_matang1', '<', $t_lelong)
|
||||
->where('sttebus', '=', '')
|
||||
->where('taglel', '=', 0)
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<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 Sebelum Tamat Kontrak</h3>
|
||||
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<form action="{{route('jananotis.gadaibycaw')}}" method="POST" id="formsenarai">
|
||||
@csrf
|
||||
<div class="form-group row" style="margin-top:2%; margin-left:1%;">
|
||||
|
||||
Reference in New Issue
Block a user