SHARE
TWEET

Untitled

a guest Apr 25th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  @foreach($parentOption as $num => $item)
  2.                     @if(isset($data->parent_id))
  3.                         @if($data->parent_id == $item->id)
  4.                             <option value="{{$item->id}}" selected="selected">{{$item->commodity_name}}</option>
  5.                         @else
  6.                             <option value="{{$item->id}}">{{$item->commodity_name}}</option>
  7.                         @endif
  8.                     @else
  9.                         <option value="{{$item->id}}">{{$item->commodity_name}}</option>
  10.                     @endif
  11.  
  12.                 @endforeach
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top