@php use Stevebauman\Location\Facades\Location; //dd($_COOKIE["country"]); if(!isset($_COOKIE["country"])) { $ip = request()->server("REMOTE_ADDR"); //$cuinfo = Location::get('77.111.246.19'); $cuinfo = Location::get($ip); if($ip == '127.0.0.1') { $cuinfo = Location::get('45.116.117.187'); } if(request()->country) { $cuinfo->countryCode = request()->country; } } else { $cuinfo = new stdClass(); $cuinfo->countryCode = $_COOKIE["country"]; if($_COOKIE["country"] == 'IN') $cuinfo->countryName = 'India'; elseif($_COOKIE["country"] == 'UK') $cuinfo->countryName = 'United Kingdom'; elseif($_COOKIE["country"] == 'AE') $cuinfo->countryName = 'United Arab Emirates'; elseif($_COOKIE["country"] == 'AU') $cuinfo->countryName = 'Australia'; elseif($_COOKIE["country"] == 'SG') $cuinfo->countryName = 'Singapore'; elseif($_COOKIE["country"] == 'CA') $cuinfo->countryName = 'Canada'; elseif($_COOKIE["country"] == 'DE') $cuinfo->countryName = 'Germany'; elseif($_COOKIE["country"] == 'FR') $cuinfo->countryName = 'France'; elseif($_COOKIE["country"] == "NO") $cuinfo->countryName = 'Norway'; elseif($_COOKIE["country"] == "SE") $cuinfo->countryName = 'Sweden'; else $cuinfo->countryName = 'United States'; } @endphp @extends('master') @section('main_content') @include('components.home_banner') @include('components.awards_recognition') @include('components.book_career_session') @include('components.learning_partners') @include('components.home_courses_one') @include('components.career_transition') @include('components.home_courses_three') @include('components.events') @include('components.testimonials') @include('components.app_banner') @include('components.universal_form_one') @include('components.press_release') @include('components.home_dt_gyan') @include('components.book_career_session_two') @endsection @section('npf_widget') @include('common.npf_form_modal') @endsection @section('scripts') @endsection