Add fasa text when select batch lelong in galeri marhun
This commit is contained in:
@@ -1431,7 +1431,7 @@ class LelongMobileController extends Controller
|
||||
|
||||
public function listLelong()
|
||||
{
|
||||
$lelong_all = Lelong::select('id', 'tarikh_lelong')->get();
|
||||
$lelong_all = Lelong::select('id', 'tarikh_lelong', 'fasa')->get();
|
||||
foreach($lelong_all as $index => $lelong)
|
||||
{
|
||||
$date_convert = strtotime($lelong->tarikh_lelong);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<label>Pilih Batch Lelong</label>
|
||||
<select class="custom-select" @change="pilihBatchLelong($event)">
|
||||
<option selected>Batch Lelong</option>
|
||||
<option v-for="val in listLelong" :key="val" v-bind:value="val.id">{{ val.id }}, ({{ val.tarikh_lelong }})</option>
|
||||
<option v-for="val in listLelong" :key="val" v-bind:value="val.id">{{ val.id }}, {{ val.tarikh_lelong }} (fasa {{ val.fasa }})</option>
|
||||
</select>
|
||||
<div class="mt-3">
|
||||
<SelectCawangan v-if="pilihLelong != 'Batch Lelong'" v-bind:key="componentKey" v-bind:selectedLelong="pilihLelong" />
|
||||
|
||||
Reference in New Issue
Block a user