@if (!is_null($certificate))
img
{{ __('This certificate is valid') }}
@else
img
{{ __('The Certificate is invalid with the following information') }}
@endif
@if (!is_null($certificate))
@php $ext = pathinfo(public_path($certificate->path), PATHINFO_EXTENSION); @endphp @if($ext == 'pdf') @else {{ $certificate->path }} @endif
{{ __('Course') }}: {{ $certificate->course->title }}
{{ __('Student') }}: {{ $certificate->student->name }}
{{ __('Certificate Number') }}: {{ $certificate->certificate_number }}
{{ __('Asign Date') }}: {{ date('Y-m-d', strtotime($certificate->created_at)) }}
@endif