-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
itsbenny99
committed
Feb 22, 2020
1 parent
3b880db
commit 8f364af
Showing
8 changed files
with
247 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Training; | ||
|
||
use App\Http\Controllers\Controller; | ||
use App\MentorAvail; | ||
use App\User; | ||
use Auth; | ||
use Carbon\Carbon; | ||
use Illuminate\Support\Facades\Input; | ||
use Illuminate\Support\Facades\Redirect; | ||
class SchController extends Controller | ||
{ | ||
public function showMentAvail() | ||
{ | ||
$id = Auth::id(); | ||
$postion = ['Minor Delivery/Ground']; | ||
$availability = MentorAvail::with('mentor') | ||
->whereNull('trainee_id') | ||
->where('slot', '>', Carbon::now('America/New_York')) | ||
->get(); | ||
return View('site.mentoravi')->with('availability', $availability)->with('postion', $postion); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Training; | ||
|
||
use Illuminate\Http\Request; | ||
use App\Http\Controllers\Controller; | ||
use App\MentorAvail; | ||
use App\User; | ||
use Auth; | ||
use Carbon\Carbon; | ||
use Illuminate\Support\Facades\Input; | ||
use Illuminate\Support\Facades\Redirect; | ||
class SchController extends Controller | ||
use Illuminate\Http\Request; | ||
|
||
|
||
class StudentSchController extends Controller | ||
{ | ||
public function showMentAvail() | ||
{ | ||
$id = Auth::id(); | ||
$postion = ['Minor Delivery/Ground']; | ||
$availability = MentorAvail::with('mentor') | ||
->whereNull('trainee_id') | ||
->where('slot', '>', Carbon::now('America/New_York')) | ||
->get(); | ||
return View('site.mentoravi')->with('availability', $availability)->with('postion', $postion); | ||
} | ||
|
||
public function showMentAvail() | ||
{ | ||
$id = Auth::id(); | ||
$postion = ['Minor Delivery/Ground']; | ||
$availability = MentorAvail::with('mentor') | ||
->whereNull('trainee_id') | ||
->where('slot', '>', Carbon::now('America/New_York')) | ||
->get(); | ||
return View('site.mentoravi')->with('availability', $availability)->with('postion', $postion); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
138 changes: 0 additions & 138 deletions
138
resources/views/dashboard/training/mentors/mentoravail.blade.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.