Exemplo n.º 1
0
function get_applicant_name($applicant_id)
{
    $applicant = \App\Models\System\Application\Applicant::select('given_name', 'surname')->find($applicant_id);
    $name = !empty($applicant) ? $applicant->given_name . ' ' . $applicant->surname : 'Undefined';
    return $name;
}