Van1310
226
6
Laravel

two value display in single dropdown in laravel

Posted 2 months ago by Van1310

here is my code

<select class="form-control m-input" name="branch_id">
    @foreach($branch as $branches)
        <option value="{{$branches->id}}">{{$branches->branch.$branches->branch_info}}</option>
    @endforeach
</select>

how to display two value in single dropdown i have branch name and branch_info i have display in single dropdown in two value

Please sign in or create an account to participate in this conversation.