@php // Counter-sign actions: a super-admin applies them directly; a role-1 admin's // submission is held for super-admin approval. The tag flags this up front. $coSign = auth()->user()?->isSuperAdmin() ? 'Counter-sign' : 'Needs approval'; // Deep-links into the central process.yspi.ie admin console (D85): GDPR record + // close/restore live there, opened in a new tab (no token — process.yspi.ie // enforces its own sign-on + permissions). The contacts record is an internal page. $processUrl = rtrim((string) (config('skydive.process_url') ?: 'https://process.yspi.ie'), '/'); $uid = urlencode((string) $user->u_ident); // The Collector's donation record for this fundraiser (D88c). Null when COLLECTOR_URL // isn't configured, so we never render a link that resolves against this host. $collectorDonationsUrl = app(\App\Services\Donations\CollectorRouting::class)->fundraiserUrl($user); @endphp
Actions
@unless ($isPlatinum) @endunless {{-- D89: both go through process.yspi.ie, which applies the contact rules and records the send on the fundraiser's contact history. --}} {{-- D91: the pack goes automatically on verification; this is the recovery path. --}} @if ($voucherNotice) {{-- D95: only offered once the sweep has an outcome to override. --}} @endif @unless ($isActive) @endunless @if ($voucherState['can_issue']) @endif @if ($forceContext && ! $forceContext['existing_voucher']) {{-- D96: super-admin only, and only where there is no voucher to reissue instead. Giving away a skydive, so it is styled as the deliberate override it is. --}} @endif @if ($collectorDonationsUrl) {{-- This fundraiser's donations in the central Collector (D88c). --}} View Donations @endif @if ($user->u_ident) {{-- CRM contact history for this fundraiser (D86) — internal, paginated page. --}} View Contacts Record {{-- GDPR consent / preferences / audit — lives on process.yspi.ie (D85). --}} View GDPR Record {{-- Close / restore — the deliberate action lives on process.yspi.ie (D85). --}} Close Account @endif
{{-- ===== reload-free (Livewire) actions ===== --}}
@error('email')

{{ $message }}

@else @if ($email && $email !== $user->email)

Address is available

@endif @enderror
@error('username')

{{ $message }}

@else @if ($username && $username !== $user->username)

/{{ $username }} is available

@endif @enderror
@error('goal')

{{ $message }}

@enderror
@error('address_1')

{{ $message }}

@enderror
@error('address_2')

{{ $message }}

@enderror
@error('address_3')

{{ $message }}

@enderror
@error('town')

{{ $message }}

@enderror
@error('county')

{{ $message }}

@enderror
@error('eircode')

{{ $message }}

@enderror
@error('story')

{{ $message }}

@enderror
@error('eFlag')

{{ $message }}

@enderror
@error('note')

{{ $message }}

@enderror
{{-- ===== form-POST actions (no input / file / confirm) ===== --}} @unless ($isPlatinum)
@csrf
@endunless {{-- ===== Sponsorship sheets (D89) ===== --}} @php $sheetRef = rescue(fn () => app(\App\Services\Email\SponsorshipSheetSender::class)->authorisation($user), null, report: false); $sheetsTest = (bool) config('skydive.sponsorship_sheets.test_mode'); @endphp
@if ($sheetsTest) @endif
@if ($sheetsTest) @endif
{{-- ===== Registration pack (D91) ===== --}} @php $packSent = (int) $user->reg_pack_sent === 1; $packSentAt = $user->reg_pack_sent_at; $packTest = (bool) config('skydive.registration_pack.test_mode', config('skydive.sponsorship_sheets.test_mode')); @endphp
@if ($packTest) @endif
{{-- ===== Voucher email (D95) ===== --}} @if ($voucherNotice)
@endif
@csrf
@unless ($isActive)
@csrf
@endunless
@error('imageFile')

{{ $message }}

@enderror

Uploading…

{{-- ===== Force voucher delivery (D96) — super admin only ===== --}} @if ($forceContext && ! $forceContext['existing_voucher'])
@if (! $forceContext['found']) @else
@if ($forceContext['closed_at']) @endif @if ($forceContext['blacklisted']) @endif
@endif
@error('forceReason')

{{ $message }}

@enderror
@endif {{-- ===== Issue / reissue voucher (D11, reworked in D97) ===== --}} @if ($voucherState['can_issue'])
@if ($reissueContext['existing']) @else @endif
@error('reissueReason')

{{ $message }}

@enderror
@endif