@if($course->studentCertificate)
@php $ext = pathinfo(public_path($course->studentCertificate->path), PATHINFO_EXTENSION); @endphp @if($ext == 'pdf') @else {{ $course->studentCertificate->path }} @endif
@else
img
{{ __('After completing the course, you will receive a certificate.') }}
@endif