Dashboard
Dashboard
@if (session('message'))
@endif
Student's Score
@foreach ($class as $key => $item)
@php
$test = [];
if ($item->priceid >= 22 && $item->priceid <= 37) {
$test = App\Models\Tests::where('id', '!=', 3)->get();
} elseif ($item->priceid >= 43 && $item->priceid <= 45) {
$test = App\Models\Tests::where('id', 1)->get();
} else {
$test = App\Models\Tests::get();
}
// $cek_data = DB::table('attendances')
// ->where('price_id', 17)
// ->where('day1', 5)
// ->where('day2', 5)
// ->where('teacher_id', 4)
// ->where('course_time', '17:00')
// ->first();
// dd($cek_data);
@endphp
{{ $item->day_one }} {{ $item->day_two != $item->day_one ? ' & ' . $item->day_two : '' }}
{{ $item->course_time }}
@endforeach
@if ($item->program == 'Private' || $item->program == 'Semi Private')
@php
$studentName = DB::table('student')
->where('priceid', $item->priceid)
->where('day1', $item->day1)
->where('day2', $item->day2)
->where('id_teacher', $item->id_teacher)
->where('course_time', $item->course_time)
->first();
@endphp
{{ ucwords($studentName->name) }}
@else
{{ $item->program }}
@endif
{{ $item->day_one }} {{ $item->day_two != $item->day_one ? ' & ' . $item->day_two : '' }}
{{ $item->course_time }}
{{ $item->teacher_name }}