@if (!is_null($lead->student_id)) @can('crm_lead_test-view')
Test
@can('crm_lead_test-create') @endcan
@if (!$lead->students?->bookingRequests()->where('type', 'test')->count())

No tests found for this lead.

@else @foreach ($lead->students?->bookingRequests()->where('type', 'test')->get() as $booking) @endforeach
Date Notes
{{ \Carbon\Carbon::parse($booking->date)->format('d M Y H:i') }} {{ $booking->notes ?: ' ' }}
@endif
@if (!$getTestStudentCourseData->count())

No tests found for this lead.

@else @foreach ($getTestStudentCourseData as $testCourse) @endforeach
Course Name Start Date End Date status
{{ $testCourse->course_name_en }} {{ $testCourse->start_date }} {{ $testCourse->end_date }} {{ $testCourse->status }}
@endif
@endcan @endif