@version(2) @php $nr_hero_media = $nr->hero_media ?? 'graphic'; $nr_hero_img = trim((string)($nr->hero_image ?? '')); $nr_hero_video = trim((string)($nr->hero_video ?? '')); if ($nr_hero_media === 'image' && $nr_hero_img === '') { $nr_hero_media = 'graphic'; } if ($nr_hero_media === 'video' && $nr_hero_video === '') { $nr_hero_media = $nr_hero_img !== '' ? 'image' : 'graphic'; } $nr_hero_title = trim((string)($nr->hero_title ?? '')) ?: trim((string)($nr_company->tagline ?? '')) ?: $lang->nr_hero_default; $nr_hero_lines = preg_split('/\r\n|\r|\n/', $nr_hero_title); $nr_hero_text = trim((string)($nr->hero_text ?? '')); $nr_b1 = trim((string)($nr->hero_btn1_text ?? '')); $nr_b1_url = trim((string)($nr->hero_btn1_url ?? '')) ?: $nr_jobs_url; $nr_b2 = trim((string)($nr->hero_btn2_text ?? '')); $nr_b2_url = trim((string)($nr->hero_btn2_url ?? '')) ?: ($nr_rc->url->benefits ?? ''); $nr_open = (int)($nr_rc->open_count ?? 0); $nr_ticker = array_keys((array)($nr_rc->job_groups ?? [])); $nr_show_ticker = ($nr->hero_marquee ?? 'Y') !== 'N' && count($nr_ticker) > 0; $nr_ticker_links = []; foreach ($nr_ticker as $nr_g) { $nr_ticker_links[] = [$nr_g, (int)$nr_rc->job_groups[$nr_g], getUrl('', 'mid', $nr_rc->mid, 'act', 'dispRecruitJobList', 'job_group', $nr_g)]; } @endphp
@if ($nr_open > 0) {{ sprintf($lang->nr_hiring_now, $nr_open) }} @elseif (!empty($nr->hero_kicker))

{{ $nr->hero_kicker }}

@endif @if ($nr_open > 0 && !empty($nr->hero_kicker))

{{ $nr->hero_kicker }}

@endif

@foreach ($nr_hero_lines as $nr_i => $nr_line) {{ $nr_line }} @endforeach

@if ($nr_hero_text !== '')

{!! nl2br(escape($nr_hero_text)) !!}

@endif
@if ($nr_b1 !== ''){{ $nr_b1 }} @endif @if ($nr_b2 !== '' && $nr_b2_url !== ''){{ $nr_b2 }}@endif
@if ($nr_show_ticker)
@for ($nr_rep = 0; $nr_rep < 2; $nr_rep++) @endfor
@endif