@extends('layouts.portal')
@php
$isNew = ! $job->exists;
$sel = collect(old('skills', $selected))->map(fn ($v) => (int) $v)->all();
$money = fn ($v) => $v === null || $v === '' ? null : (int) $v;
@endphp
@section('title', $isNew ? 'New job posting' : 'Edit job posting')
@section('subtitle', $isNew ? 'Post a role on behalf of an approved employer. Set the status to Open to publish it straight away.' : ($job->employer?->company_name ?? 'Employer removed').' · created '.$job->created_at?->format('d M Y').($job->posted_at ? ' · posted '.$job->posted_at->format('d M Y') : ''))
@section('actions')