@php
$base64Image = base64_encode(file_get_contents(public_path($model->model_image)));
// $arabic = file_get_contents(public_path('assets/fonts/DIN-Next-LT-Arabic-Light.ttf'));
@endphp
{{-- @for ($i = 0; $i <3; $i++) --}}
@php
$sourceCode=$model->code;
$gender = 'السيد/ة';
$realize = 'أنجز/ت';
if($cert->gender=="دكر"){
$gender = 'السيد';
$realize = 'أنجز';
}else if($cert->gender!="انثى"){
$gender = 'السيدة';
$realize = 'أنجزت';
}
@endphp
@php
$start_date = $model->start_date ;
$issued_date = $model->issued_date ;
$end_date = $model->end_date;
$qr_code='
 .'>';
$sourceCode = str_replace([' ','أنجز',
'{name}','{name_an}','{company}','{city}',
'{country}','{national_id_type}','{national_id_number}',
'{course}','{course_an}','{start_date}','{issued_date}','{end_date}','{accreditation_number}','{hours}',
'{hall}','{qr_code}','{id_cert}','{gender}'
],
[' ',$realize,
$model->name,$model->name_an,$model->company,$model->city,
$model->country,$model->national_id_type,$model->national_id_number,
$model->course,$model->course_an,$start_date,$issued_date,$end_date,
$model->accreditation_number,$model->hours,
$model->hall,$qr_code,$model->id_cert,$gender
], $sourceCode);
@endphp
<div class=)
{!! $sourceCode !!}
{{-- @endfor --}}