@extends('layout.layout') @section('content')
| # | Tester | Student | Date | Time | Action | ||
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ optional($session->staffScheduled->staff)->first_name ?? '-' }} {{ optional($session->staffScheduled->staff)->last_name ?? '' }} | {{ optional(optional($session->staffScheduled->courseStudent[0])->student)->first_name ?? '-' }} {{ optional(optional($session->staffScheduled->courseStudent[0])->student)->last_name ?? '' }} | {{ \Carbon\Carbon::parse($session->session_date)->format('Y-m-d') }} | {{ \Carbon\Carbon::parse($session->start_time)->format('H:i') }} | @php $sessionDate = \Carbon\Carbon::parse($session->session_date); $today = \Carbon\Carbon::today(); $shouldAddFeedback = DB::table('teacher_feedback')->where('staff_schedule_id', $session->staff_scheduled_id)->where('type','demo')->exists(); @endphp@if($sessionDate && $sessionDate->lte($today) && !$shouldAddFeedback && $addPerformanceReport) Performance Report @else Not Available Yet @endif | ||
| No sessions match your current criteria. | |||||||