<option value="">--Select--</option>
@if(!empty($categories) && isset($categories))
@foreach ($categories as $category)
 	<option value="{{ $category->id }}">{{ $category->categoryname }}</option>
@endforeach
@endif