@php //$background = $team->backgroundImage ? ($team->backgroundImage->s3_bucket . $team->backgroundImage->url): (config('app.url') . '/img/certificate_' . $direction . '.png'); $background = public_path() . ($team->backgroundImage ? $team->backgroundImage->url: ('/img/certificate_' . $direction . '.png')); $background = "data:image/" . ($team->backgroundImage ? $team->backgroundImage->file_type : 'png') . ";base64," . base64_encode(file_get_contents($background)); @endphp {!! __("team-certificate.certificate.title") !!}
{!! __("team-certificate.certificate.title") !!}
{!! __("team-certificate.certificate.prefix") !!} {{ $user->name }} {!! __("team-certificate.certificate.postfix") !!} @if ($user->team->registration_number_name) ({{ $user->team->registration_number_name }}: {{ $user->registration_number ?? '未登録' }}) @endif
{!! str_replace('{$team}', $team->name, str_replace('{$quiz}', $quizResult->survey->name, $team->certificate_text)) !!}

{{ $quizResult->start_at ? $quizResult->start_at->format('Y.m.d'): date("Y.m.d") }} {{ $team->leader_title }} {{ $team->leader }}