This commit is contained in:
Azfar Arsyad
2022-03-15 12:41:25 +08:00
parent 9f84a01fcf
commit 41c408567e
4 changed files with 20 additions and 2 deletions
+6 -1
View File
@@ -68,7 +68,12 @@ class SimulasiController extends Controller
->where('tagpalsu2','=',0)
->where('taglel','=',0)
->where('lelong_tawarruq','=',1)
->get();
->get();
if(sizeof($surat) == 0)
{
return redirect()->route('analisa.index')
->with('failed','Tiada surat untuk di lelong');
}
$cawangan = Cawangan::all();
//create simulasi
$simulasi = new Simulasi;