@php $certificate = Modules\Certificate\Models\CertificateDesign::first(); $courses = $course->title; $fullname = $progress->user->fname. " " .$progress->user->lname; if(isset($certificate)) { $body = $certificate->body; $body = str_replace("[user]",$fullname, $body); $body = str_replace("[course]",$courses, $body); } @endphp @if( isset($certificate))
{{ optional($certificate)->title }}
@php $mytime = Carbon\Carbon::now(); @endphp

@if(!empty($body)) {{ $body }} @endif
@if($certificate->date_enable == 1) {{ date('jS F Y', strtotime($progress['updated_at'])) }} @endif

@if(!empty($certificate->signature_image)) logo @endif
@if(!empty($certificate->name)) {{$certificate->name }}, {{ __('frontstaticword.Instructor') }} @endif
Certificate no. :{{ $serial_no }}
Certificate url. :{{ url()->full() }}
@endif