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