{{-- Loop --}} @foreach ($users as $user)
{{-- Background image --}} @if ($certificateTemplate->background_image) @else
@endif {{-- School address --}} @if (in_array('school_address', $certificateTemplate->fields))
{{ $settings['school_address'] }}
@endif {{-- School mobile --}} @if (in_array('school_mobile', $certificateTemplate->fields))
{{ $settings['school_phone'] }}
@endif {{-- School email --}} @if (in_array('school_email', $certificateTemplate->fields))
{{ $settings['school_email'] }}
@endif {{-- User image --}} @if (in_array('user_image', $certificateTemplate->fields)) @endif {{-- School logo --}} @if (in_array('school_logo', $certificateTemplate->fields)) @endif {{-- School name --}} @if (in_array('school_name', $certificateTemplate->fields))
{{ $settings['school_name'] }}
@endif {{-- Signature --}} @if (in_array('signature', $certificateTemplate->fields)) @endif {{-- Isuue date --}} @if (in_array('issue_date', $certificateTemplate->fields))
{{ date($settings['date_format'],strtotime(date('Y-m-d'))) }}
@endif {{-- Title --}} @if (in_array('title', $certificateTemplate->fields))
{{ $certificateTemplate->name }}
@endif {{-- Description --}}
{!! $user['description'] !!}
@endforeach
@if ($certificateTemplate->user_image_shape == 'Round') @else @endif