public static function applyForAnInternship($id) { $check = Internships::applyForAnInternship($id); if ($check) { return Redirect::to('/students')->withErrors(array("msg" => "successfully applied for an Internship")); } else { return Redirect::to('/students')->withErrors(array("msg" => "Sorry! something went wrong. Not applied for an Internship.")); } }
@section('header') <?php $details = Students::getStudentsDetails(Session::get('sid')); ?> @parent | <?php echo $details['name']; ?> | <a href="/students/logout">Logout</a> @stop @section('sidebar') @stop @section('content') <?php $countOfAppliedPosts = Internships::getCountOfAppliedInternships(); if ($countOfAppliedPosts) { $appliedPosts = Internships::getAppliedInternships(); } ?> <?php if ($errors->any()) { ?> <div class="center"> <?php echo implode('', $errors->all('<span style="color:red">:message</span>')); ?> </div> <?php } ?> <div>
<?php if ($errors->any()) { ?> <div class="center"> <?php echo implode('', $errors->all('<span style="color:red">:message</span>')); ?> </div> <?php } ?> <?php $countOfUploadedPosts = Internships::getCountOfUploadedInternships(); if ($countOfUploadedPosts) { $posts = Internships::getUploadedInternships(); } ?> <div> <?php if ($countOfUploadedPosts) { ?> <ul class="timeline"> <?php foreach ($posts as $post) { if ($post) { ?> <li> <div class="bubble-container"> <div class="bubble">
?> @parent <?php echo $tempText; ?> @stop @section('sidebar') @parent <p>This is appended to the master sidebar.</p> @stop @section('content') <?php $countOfPosts = Internships::getCountOfAllInternships(); if ($countOfPosts) { $posts = Internships::getAllInternships(); } ?> <div> <?php if ($countOfPosts) { ?> <ul class="timeline"> <?php foreach ($posts as $post) { if ($post) { ?> <li> <div class="bubble-container"> <div class="bubble">
$tempText = '| <a href="/students/login">Student Login</a> | <a href="/employers/login">Employer Login</a>'; } ?> @parent <?php echo $tempText; ?> @stop @section('sidebar') @parent <p>This is appended to the master sidebar.</p> @stop @section('content') <?php $post = Internships::getSingleInternship($id); ?> <div> <ul class="timeline"> <?php if ($post) { ?> <li> <div class="bubble-container"> <div class="bubble"> <h3><?php echo $post['title']; ?> </h3> at <h3>@<?php echo $post['company'];