public function getIndex()
 {
     if (Request::ajax()) {
         $colleges = College::all();
         $courses = Course::all();
         $scholarships = Scholarship::all();
         $students = Student::where('archived', 0)->get();
         return compact('colleges', 'courses', 'scholarships', 'students');
     }
 }
Пример #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function admin()
 {
     $data = Request::all();
     $college = College::all();
     foreach ($college as $colleges) {
         $scollege[] = $colleges->scollege;
     }
     $course = Course::all();
     // return view('pages.administrator')->with('school',$school);
     return view('pages.administrator', compact('college'), compact('course'))->with('scollege', $scollege);
 }
Пример #3
0
         </div>
      <?php 
                }
            }
        }
    }
} else {
    ?>

        <div class="wrap">
          <div class="container-fluid">
            <div class="row">
              <div class="col-md-6 col-md-offset-3">

              <?php 
    $colleges = College::all();
    if (isset($_GET['type']) && $_GET['type'] == "faculty") {
        ?>
                <form id="facultyform" action="register.php<?php 
        echo $opt;
        ?>
" method="POST">
                  <h2>Faculty Registration</h2>
                  <div class="form-group">
                    <select name="college" class="form-control" required>
                      <option value="" disabled  selected>Select College</option>
                       <?php 
        foreach ($colleges as $key => $op) {
            ?>
                           <option value="<?php 
            echo $op->id;
 public function getColleges()
 {
     $colleges = College::all();
     return view('admin.collegesList', compact('colleges'));
 }