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