Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends("layouts.app")
- {{-- Idomusis budas --}}
- @section("content")
- // Turinys
- {{ Form::open(['route' => ['dish.update']]) }}
- {{Form::select('menu_id', $selectMenus, $dish->menu_id) }}
- @endsection
- {{-- Senasis budas --}}
- @section("content")
- <form action="">
- <input type="text" name="title">
- <select name="menu_id">
- @foreach($menus as $menu)
- @if($dish->menu_id == $menu->id)
- <option selected value="{{ $menu->id }}}">{{ $menu->title }}}</option>
- @else
- <option value="{{ $menu->id }}}">{{ $menu->title }}}</option>
- @endif
- @endforeach
- </select>
- </form>
- @endsection
Add Comment
Please, Sign In to add comment