<link href='http://fonts.googleapis.com/css?family=Lato:400,300' rel='stylesheet' type='text/css'> <link href="http://netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="../css/timeline.css"> @section('header') <?php if (Session::has('eid')) { $details = Employers::getEmployersDetails(Session::get('eid')); $countOfStudents = Internships::getCountOfStudentsAppliedToInternship($id); if ($countOfStudents) { $appliedStudents = Internships::getStudentsAppliedToInternship($id); } $buttonValue = ""; $tempText = '| <a href="/employers">' . $details['name'] . '</a> | <a href="/employers/logout">Logout</a>'; } elseif (Session::has('sid')) { $details = Students::getStudentsDetails(Session::get('sid')); $appliedPost = Internships::getSingleAppliedInternship($id); if ($appliedPost) { $buttonValue = '<input disabled value="Applied">'; } else { $buttonValue = '<input type="submit" value="Apply">'; } $tempText = '| <a href="/students">' . $details['name'] . '</a> | <a href="/students/logout">Logout</a>'; } else { $buttonValue = ""; $tempText = '| <a href="/students/login">Student Login</a> | <a href="/employers/login">Employer Login</a>'; } ?> @parent <?php echo $tempText; ?> @stop