Doctor detail

@foreach ($department_all as $dpma) @if(isset($id)) @php $check = array_search("$id",json_decode($dpma->department_user)); @endphp @endif
department_id || @$check!=null) checked @endif>
@endforeach
@if(isset($id)) @else @endif