add function forgot password-reset password

This commit is contained in:
Nur Izzati Zulkifli
2022-09-25 16:56:07 +08:00
parent 4a7f096d98
commit f8fd24b64f
22 changed files with 844 additions and 46 deletions
+6 -4
View File
@@ -24,6 +24,7 @@ use App\Models\GadaiMarhun;
use App\Models\ScanSemak;
use App\Models\TangguhLelong;
use Carbon\Carbon;
use App\Models\ScanMarhun;
class MarhunController extends Controller
{
@@ -129,10 +130,11 @@ class MarhunController extends Controller
->where('status_ubah', 6)
->first();
$statusSemakMarhun = ScanMarhun::where('lelongbid_id', $bid['id'])
$statusSemakMarhun = ScanSemak::where('lelongbid_id', $bid['id'])
->whereNotNull('masa_terima')
->whereNull('masa_serah')
->first();
dd($statusSemakMarhun);
if ($statusSemakMarhun) {
$lelongbid[$index1]['statusterimamarhun'] = 1;
}
@@ -839,14 +841,14 @@ class MarhunController extends Controller
$gadai = GadaiMarhun::on($datagadai[0]['kodcaw'])->whereIn('norujukan', $arraygadai)
->get()->toArray();
foreach($gadai as $index1=>$gadai2)
foreach($gadai as $index2=>$gadai2)
{
$listgadai = GadaiMarhun::on($datagadai[0]['kodcaw'])->whereIn('norujukan', $arraygadai)
->get();
$gadai[$index2]['listgadai'] = $listgadai;
}
$gadai[$index1]['listgadai'] = $listgadai;
// $gadai[$index2]['listgadai'] = $listgadai;
// dd($gadai);
$arraylelbidmarhun = [];
$bakilelong = 0;