mardi 15 décembre 2020

remove the duplicate entry for the value in laravel view file

I have the response from the data as $am_details and I want to get the unique geo value in sect box dropdown in view files I have tries as

<select name="geo" class="ui fluid dropdown" id="geo" multiple="" >
    @foreach($am_details as $summary)
        <option value=""></option>
    @endforeach
</select>

But displaying with duplicate geo value I want to remove the duplicate entry in laravel view selectbx option.

$am_details response in as below

Array ( [0] => stdClass Object ( [AccountManager] => jigar.lohia  [CustomerCode] => UAE_0068 [Geography] => ME  )
 [1] => stdClass Object ( [AccountManager] => jigar.lohia  [CustomerCode] => UAE_0068 [Geography] => ME ) 
 [2] => stdClass Object ( [AccountManager] => jigar.lohia [CustomerCode] => UAE_0068 [Geography] => ME ) 
 )


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire