Add status semak at galeri marhun

This commit is contained in:
Amir Hassan
2023-02-17 12:49:28 +08:00
parent 0978193ed8
commit 168f147ffd
4 changed files with 52 additions and 14 deletions
@@ -1466,10 +1466,16 @@ class LelongMobileController extends Controller
$lelong_bid_all = LelongBid::with('fileMarhunMain')
->where('caw_id', $request->caw_id)
->where('lelong_id', $request->lelong_id)
->select(['id','norujukan', 'marhun', 'nilaimarhun'])
->select(['id','norujukan', 'marhun', 'nilaimarhun', 'status_semak'])
->get();
return response()->json($lelong_bid_all);
$belum_semak = $lelong_bid_all->where('status_semak', 0)->count();
return response()->json([
"jumlah_surat" => $lelong_bid_all->count(),
"belum_semak" => $belum_semak,
"lelong_bid" => $lelong_bid_all,
]);
}
public function showPhotoMarhun(Request $request)