Skip to content

Commit

Permalink
#2
Browse files Browse the repository at this point in the history
  • Loading branch information
itsbenny99 committed Feb 22, 2020
1 parent 3b880db commit 8f364af
Show file tree
Hide file tree
Showing 8 changed files with 247 additions and 354 deletions.
24 changes: 24 additions & 0 deletions app/Http/Controllers/StudentSchController.php
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);
}
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/Training/MentorSchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

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;
use App\Http\Controllers\Controller;
class MentorSchController extends Controller
{
public function showAvail()
Expand Down
33 changes: 20 additions & 13 deletions app/Http/Controllers/Training/StudentSchController.php
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);
}

}
2 changes: 1 addition & 1 deletion app/Http/Controllers/TrainingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function showMentAvail()
->whereNull('trainee_id')
->where('slot', '>', Carbon::now('America/New_York'))
->get();
return View('dashboard.training.sch.mtr_avail')->with('availability', $availability)->with('postion', $postion);
return View('site.mentoravi')->with('availability', $availability)->with('postion', $postion);
}
public function saveSession()
{
Expand Down
138 changes: 0 additions & 138 deletions resources/views/dashboard/training/mentors/mentoravail.blade.php

This file was deleted.

Loading

0 comments on commit 8f364af

Please sign in to comment.