@php
use App\MasterModel;
use App\emailTemplateModel;
use App\HomeModel;
$homemodelInstance = new HomeModel();
$emailtemplatemodelInstance = new emailTemplateModel();
$master_instance = new MasterModel();
$email_var = $master_instance->get_email_variable();
$social_logo = $homemodelInstance->get_social_logo();
$website_url = $homemodelInstance->get_website_url();
@endphp
@foreach($email_var as $res_emailvar)
@php
$str_email = str_replace('{{','',$res_emailvar->variable_name);
$str_mail = str_replace('}}','',$str_email);
${$str_mail} = $emailtemplatemodelInstance->get_query_code($res_emailvar->id, $data);
$eval_var_name = '{{$'.$str_mail.'}}';
@endphp
@endforeach
@if ($social_logo->result != '' && @file_get_contents(url('/'). '/public/uploads/logo_images/' . $social_logo->result))
@else
@endif