@php use App\HomeModel; $HomeModelModelInstance = new HomeModel(); $social_logo = $HomeModelModelInstance->get_social_logo(); $url_qr = collect(request()->segments())->last(); @endphp @php $url = Request::url(); $parse = parse_url($url); if(count($parse)>2){ $url_path2= $parse['path']; $url_path = ltrim($url_path2, $url_path2[0]); } if($parse['host']=="localhost"){ $url_array =explode("/",$url); //print_r($url_array); $host=$url_array[3]; $host_array=explode(".",$host); $host_name = @$host_array[0]; } else{ $host=$parse['host']; $host_array=explode(".",@$host); $host_name = @$host_array[1]; } @endphp @if(strpos($url,'/home')) @php $filename='home'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty($social_logo)) @else @endif @elseif(strpos($url,'/about-structural-integration')) @php $filename='about-structural-integration'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty($social_logo)) @else @endif @elseif(strpos($url,'/About-SI-Directory')) @php $filename='About-SI-Directory'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty($social_logo)) @else @endif @elseif(strpos($url,'/schools-of-si')) @php $filename='schools-of-si'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty($social_logo)) @else @endif @elseif(strpos($url,'/login')) @php $filename='login'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty($social_logo)) @else @endif @elseif(strpos($url,'/our-aim')) @php $filename='our-aim'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty($social_logo)) @else @endif @elseif(strpos($url,'/resource')) @php $filename='resources'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty($social_logo)) @else @endif @elseif(strpos($url,'/about/contact')) @php $filename='about/contact'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty($social_logo)) @else @endif @elseif(strpos($url,'/about/privacy')) @php $filename='about/privacy'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty($social_logo)) @else @endif @elseif(strpos($url,'register')) @php $filename='join'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty($social_logo)) @else @endif @elseif(strpos($url,'/events/calender')) @php $filename='events-calendar'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty($social_logo)) @else @endif @elseif(strpos($url,'/events/')) @php $file_name= collect(request()->segments())->last(); $file = urlencode( @$file_name); $filename=str_replace("%2F","/",@$file); $seo_data = $HomeModelModelInstance->get_seo_data_eventDetails(@$filename); $user = $HomeModelModelInstance->get_user_details(@$seo_data->user_id); @endphp {{@$seo_data->post_title}} - Alternative Healthcare Event By {{@$user->company}} @if(@$seo_data->post_image != NULL) @else @endif @elseif(strpos($url,'/articles/')) @php $file_name= collect(request()->segments())->last(); $file = urlencode( @$file_name); $filename=str_replace("%2F","/",@$file); $seo_data = $HomeModelModelInstance->get_seo_data_articlesDetails(@$filename); $user = $HomeModelModelInstance->get_user_details(@$seo_data->user_id); @endphp {{@$seo_data->post_title}} - Alternative Healthcare Article By {{@$user->company}} @if(@$seo_data->post_image != NULL) @else @endif @elseif(strpos($url,'/blogs/')) @php $file_name= collect(request()->segments())->last(); $file = urlencode( @$file_name); $filename=str_replace("%2F","/",@$file); $seo_data = $HomeModelModelInstance->get_seo_data_blogDetails(@$filename); $user = $HomeModelModelInstance->get_user_details(@$seo_data->user_id); @endphp {{@$seo_data->post_title}} {{@$user->first_name}} {{@$user->last_name}}, Blog Article @if(@$seo_data->post_image != NULL) @else @endif @elseif(strpos($url,'/videos/')) @php $file_name= collect(request()->segments())->last(); $file = urlencode( @$file_name); $filename=str_replace("%2F","/",@$file); $seo_data = $HomeModelModelInstance->get_seo_data_blogDetails(@$filename); $user = $HomeModelModelInstance->get_user_details(@$seo_data->user_id); @endphp {{@$seo_data->post_title}} - Alternative Healthcare Videos By {{@$user->company}} @if(@$seo_data->post_image != NULL) @else @endif @elseif(strpos($url,'/audios/')) @php $file_name= collect(request()->segments())->last(); $file = urlencode( @$file_name); $filename=str_replace("%2F","/",@$file); $seo_data = $HomeModelModelInstance->get_seo_data_audioDetails(@$filename); $user = $HomeModelModelInstance->get_user_details(@$seo_data->user_id); @endphp {{@$seo_data->post_title}} - Alternative Healthcare Audios By {{@$user->company}} @if(@$seo_data->post_image != NULL) @else @endif @elseif(strpos($url,'/classifieds/')) @php $file_name= collect(request()->segments())->last(); $file = urlencode( @$file_name); $filename=str_replace("%2F","/",@$file); $seo_data = $HomeModelModelInstance->get_seo_data_classifiedDetails(@$filename); $user = $HomeModelModelInstance->get_user_details(@$seo_data->user_id); $image = $HomeModelModelInstance->get_seo_data_image(@$seo_data->group_id); @endphp {{@$seo_data->group_name}} - Alternative Healthcare Classified By {{@$user->company}} @if($image !=NULL) @else @endif @elseif(strpos($url,'/books-dvds-elearning/')) @php $file_name= collect(request()->segments())->last(); $file = urlencode( @$file_name); $filename=str_replace("%2F","/",@$file); $seo_data = $HomeModelModelInstance->get_seo_data_bookdvdsDetails(@$filename); $user = $HomeModelModelInstance->get_user_details(@$seo_data->user_id); $image = $HomeModelModelInstance->get_seo_data_image(@$seo_data->group_id); @endphp {{@$seo_data->group_name}} - Alternative Healthcare Book DVDS & Elearning By {{@$user->company}} @if($image !=NULL) @else @endif @elseif(strpos($url,'/si-equipment/')) @php $file_name= collect(request()->segments())->last(); $file = urlencode( @$file_name); $filename=str_replace("%2F","/",@$file); $seo_data = $HomeModelModelInstance->get_seo_data_siequipmentDetails(@$filename); $user = $HomeModelModelInstance->get_user_details(@$seo_data->user_id); $image = $HomeModelModelInstance->get_seo_data_image(@$seo_data->group_id); @endphp {{@$seo_data->group_name}} - Alternative Healthcare SI Equipment By {{@$user->company}} @if($image !=NULL) @else @endif @elseif(strpos($url,'/member-reviews-details/')) @php $file_name= collect(request()->segments())->last(); $reviews_data = $HomeModelModelInstance->get_seo_data_member_reviews(@$file_name); $member_data = $HomeModelModelInstance->get_seo_member_data(@$reviews_data->user_id); @endphp @php $profession_name = $HomeModelModelInstance->get_profession_name(@$member_data->profession_id); @endphp {{@$reviews_data->review_title}} - Reviews of {{@$member_data->first_name}} {{@$member_data->last_name}} @if(@$member_data->profile_photo != NULL) @else @endif @elseif(strpos($url,'/review/')) @php $file_name= collect(request()->segments())->last(); $member_data = $HomeModelModelInstance->get_seo_member_data(@$file_name); $profession_name = $HomeModelModelInstance->get_profession_name(@$member_data->profession_id); @endphp Reviews from clients of {{@$member_data->first_name}} {{@$member_data->last_name}} - {{@$member_data->company}} - {{@$profession_name->name}} on SI Directory @if(@$member_data->profile_photo != NULL) @else @endif @else @php $data_categories = $HomeModelModelInstance->get_data_categories_data(@$url_qr); $top_cat = $HomeModelModelInstance->get_top_categories_data(@$url_qr); $users_data = $HomeModelModelInstance->get_users_seo_data(@$url_path); @endphp @if(@$data_categories!=NULL) Alternative Healthcare - Find Structural Integration {{@$data_categories->profile_tab}} @if (!empty(@$social_logo)) @else @endif @endif @if(@$top_cat!=NULL) {{@$top_cat->name}}s - Find Alternative Healthcare News, Reviews, and Information @if (!empty(@$social_logo)) @else @endif @endif @if(@$users_data!=NULL) @php $profession_name = $HomeModelModelInstance->get_profession_name(@$users_data->profession_id); @endphp {{@$users_data->first_name}} {{@$users_data->last_name}} - {{@$users_data->city}}, {{@$users_data->state_ln}} - {{@$profession_name->name}} @if(@$users_data->profile_photo != NULL) @else @endif @endif @if($url_qr == NULL) @php $filename='home'; $seo_data = $HomeModelModelInstance->get_seo_data($filename); @endphp {{@$seo_data->title}} @if (!empty(@$social_logo)) @else @endif @endif @endif {{-- @elseif(strpos($url,'/member/listing')== true) @elseif(strpos($url,'/member/reviews')== true) @elseif(strpos($url,'/member/categories') == true) @elseif(strpos($url,'/events') == true) @elseif(strpos($url,'/events/locations') ==true) @elseif(strpos($url,'/events/calender')== true) @endif --}}