@push('styles_top') @endpush @foreach ($certificates as $certificate) @php $expires_in = $certificate->expires_in; if ($expires_in > 90) { $color = 'text-success'; } elseif ($expires_in > 60) { $color = 'text-warning'; } else { $color = 'text-danger'; } @endphp @endforeach
Certificate ID Student Name Course Name Issue Date Days Remaining
{{ $certificate->unique_id }} @php $student = App\User::find($certificate->student_id); @endphp {{ $student ? $student->full_name : 'Deleted User' }} @php $course = App\Models\Webinar::find($certificate->webinar_id); @endphp {{ $course ? $course->title : 'Deleted Course' }} {{ date('Y-m-d H:i', $certificate->created_at) }} {{ $certificate->expires_in }} Days
@push('scripts_bottom') @endpush