Current File : //home/tradevaly/prioyshi.com/project/resources/views/load/subcategory.blade.php
@if(Auth::guard('admin')->check())

<option data-href="" value="">Select Sub Category</option>
@foreach($cat->subs as $sub)
<option data-href="{{ route('admin-childcat-load',$sub->id) }}" value="{{ $sub->id }}">{{ $sub->name }}</option>
@endforeach

@else 

<option data-href="" value="">Select Sub Category</option>
@foreach($cat->subs as $sub)
<option data-href="{{ route('vendor-childcat-load',$sub->id) }}" value="{{ $sub->id }}">{{ $sub->name }}</option>
@endforeach
@endif