@extends('admin.layout', ['menuKey' => 'postings']) @section('title', 'Edit post #'.$posting->id) @php $v = function (string $k, $d = null) use ($posting) { $val = old($k, $posting->{$k} ?? $d); return is_bool($val) ? ($val ? '1' : '0') : (is_float($val) && floor($val) == $val ? (string) (int) $val : $val); }; $country = strtoupper((string) old('country', $posting->country)); $o = $posting->organization; @endphp @section('content')
@if ($posting->isLive())Live until {{ $posting->expires_at?->timezone('America/New_York')->format('M j, g:i A') }} @else{{ ucfirst($posting->status) }}@endif · posted by {{ $posting->poster_email }} @if ($o) · organization {{ $o->display_name }} ({{ $o->statusLabel() }})@endif · job page @if ($posting->orders->isNotEmpty()) · orders: @foreach ($posting->orders as $ord)#{{ $ord->id }} @endforeach @endif