Add status semak at galeri marhun
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user