Example #1
0
	    				<td> {{ $room }} </td>
	    				<td> {{ $day }} </td>
	    				<td> {{ $time }} </td>
	    				<td>
	    					<select class="form-control" name="instructor" required>
								<?php 
$party = App\Party::find($class->instructor);
?>

								@if( !$party instanceof ModelNotFoundException)
									<option value="{{ $class->instructor }}" selected> {{ $party->firstname.', '.$party->lastname }}</option>
								@endif

	    						@foreach ($instruc as $i)
		    						<?php 
$conflict = App\Library\Api::checkInstructor($i->id, $time, $day);
?>

		    						@if ($conflict == false)
		    							<option value="{{ $i->id }}">
		    								<?php 
$party = App\Party::find($i->id);
?>

											@if( !$party instanceof ModelNotFoundException)
												{{  $party->lastname.', '.$party->firstname }}
											@endif

		    							</option>
		    						@endif
Example #2
0
            @endforeach

            @if($t->term == 3)
                <?php 
$acam = $system->currentacademicterm - 2;
$e = App\Classallocation::getStudEnrol($cu->id, $acam);
?>
            @else
                <?php 
$e = App\Classallocation::getStudEnrol($cu->id, $system->currentacademicterm);
?>
            @endif

            @foreach($e as $stud)
                <?php 
$yearlevel = App\Library\Api::yearLevel($stud->student);
if (is_numeric($yearlevel)) {
    if ($yearlevel == 1) {
        $yearL[0] += 1;
    }
}
?>
            @endforeach

            @for($i = 1; $i <= 4 ; $i++)
                <tr>
                    <input type="hidden" name="coursemajor[]" value="{{ $cu->id }}">
                    <input type="hidden" name="year_level[]" value="{{ $i }}">
                    <td>{{ $cu->description }}</td>
                    <td>{{ $i }}</td>
                    <td>{{ $yearL[$i - 1]}}</td>