@extends('layouts.app') @section('title', 'Payment | healthcareers.app') @section('robots', 'noindex, nofollow') @push('head') @unless ($order->paid_at)@endunless @endpush @section('content')
@if ($order->paid_at)

Payment received

@if ($order->credit_cents >= $order->amount_cents)

Thank you. Paid with {{ $order->dollars((int) $order->credit_cents) }} of your account credit. Credit left: {{ $order->dollars(\App\Services\Credits::balance($order->email)) }}.

@else

Thank you. {{ $order->dollars($order->chargedCents()) }} paid{{ $order->credit_cents ? ', plus '.$order->dollars((int) $order->credit_cents).' of account credit' : '' }}.

@endif @if ($order->receipt_no)
Receipt
{{ $order->receipt_no }}
Paid with
{{ \App\Services\Receipts::method($order) }}
Emailed to
{{ $order->email }}

@authView receipt@endauth Download receipt (PDF)

@endif @if ($order->kind === 'pack' && ($pack = \App\Models\JobPack::query()->where('order_id', $order->id)->with('organization')->first()))

{{ $pack->size }} Standard posts are ready for {{ $pack->organization?->display_name }}. Anyone on your team can use them until {{ $pack->expires_at->format('F j, Y') }}.

Post a job See your packs

@endif @if ($order->kind === 'bulk' && ($bulkBatch = \App\Models\BulkBatch::query()->where('order_id', $order->id)->first()))

Your jobs are being posted now. It takes a minute or two; we email you when they're all done.

See progress My posts

@endif @if ($posting) @if ($posting->status === 'active')

{{ $posting->title }} is live.@if ($posting->photos()->where('status', 'scanning')->exists()) Photos appear in a minute or two, once they are checked.@endif

View your job My posts

@elseif ($posting->status === 'review')

{{ $posting->title }} is being checked by our team and goes live once approved.

@endif @guest

We emailed you a link to manage your posts.

@endguest @endif
@else

Confirming your payment…

This page refreshes by itself. It usually takes a few seconds.

@endif
@endsection @if ($order->paid_at) @push('analytics') {!! \App\Support\Analytics::script(array_values(array_filter([ ['purchase', $order->analytics()], $order->kind === 'new_post' && $posting ? ['job_posted', ['tier' => $posting->tier, 'status' => $posting->status === 'active' ? 'live' : 'review', 'paid' => true, 'job_category' => $posting->category, 'job_country' => $posting->country]] : null, ]))) !!} @endpush @endif