add role penilai, add description marhun, fix registration,

This commit is contained in:
Amir
2022-08-25 10:19:43 +08:00
parent 4eb0aa9116
commit 4eac4b45fa
4 changed files with 17 additions and 17 deletions
@@ -51,7 +51,7 @@ class AuthController extends Controller
$user->notelbimbit = $fields['notelbimbit'];
$user->register_agree = $fields['register_agree'];
$user->t_daftar = $currentdate;
$user->status = 'inprogress';
$user->status = 'active';
$user->user_type = 2; //type 2 = pembida
@@ -17,6 +17,7 @@ use App\Models\Cawangan;
use App\Models\Resit;
use App\Models\FileResit;
use App\Models\Invoice;
use App\Models\JenisEmas;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;
@@ -351,7 +352,11 @@ class LelongMobileController extends Controller
$lelongbid = LelongBid::where('id', $data)->first()->toArray();
$lelongbidmarhun = LelongBidMarhun::where('lelongbid_id', $lelongbid['id'])->get()->toArray();
foreach ($lelongbidmarhun as $index1 => $marhun) {
$marhunDesc = JenisEmas::where('marhun', $marhun['marhun'])->first()->toArray();
$lelongbidmarhun[$index1]['marhun_desc'] = $marhunDesc['descpt'];
}
$lelongbid['lelongbidmarhun'] = $lelongbidmarhun;
array_push($listLelong, $lelongbid);