---
id: 17-2
title: 17-2 Standalone registration page, form, and submit wiring
status: Done
date: 2026-09-27
parent: 17
---
## Description
Build the standalone, unlinked Nablus workshop registration page at `/forms/nablus-workshop`.
Depends on task 17-1 (`App\Mail\WorkshopRegistrationMail` must already exist).
### 1. Route
**File to modify:** `routes/web.php`
Add, near the other public `Volt::route` calls (after line 14, the `/booking/success` route),
outside any `auth`/`admin`/`client` middleware group:
```php
Volt::route('/forms/nablus-workshop', 'pages.forms.nablus-workshop')->name('forms.nablus-workshop');
```
Do **not** add any link to this route anywhere else in the codebase — specifically, do not touch
`resources/views/components/navigation.blade.php`, `resources/views/components/footer.blade.php`,
or any other menu/nav component. The page is reachable only by visiting the URL directly.
### 2. Standalone layout (no site nav/footer)
**File to create:** `resources/views/components/layouts/standalone.blade.php`
A minimal, self-contained HTML layout — it must NOT include `` or ``
(unlike `resources/views/components/layouts/public.blade.php`, which this page intentionally does
not use, since the form must not carry the site's admin/login/booking navigation). Follow the
`
` include pattern from `resources/views/components/layouts/public.blade.php` (its
`@include('partials.head')`) but with a bare body:
```blade
@include('partials.head')
{{ $slot }}
@fluxScripts
```
### 3. Page component
**File to create:** `resources/views/livewire/pages/forms/nablus-workshop.blade.php`
Class-based Volt component (this project's convention — see `resources/views/livewire/pages/booking.blade.php`
for the pattern), using the new standalone layout, with these exact public properties, validation
rules, and submit behavior:
```php
validate([
'fullName' => ['required', 'string', 'max:255'],
'contactNumber' => ['required', 'string', 'max:50'],
'email' => ['nullable', 'email', 'max:255'],
], [
'fullName.required' => 'يرجى إدخال الاسم الكامل',
'contactNumber.required' => 'يرجى إدخال رقم التواصل',
'email.email' => 'يرجى إدخال بريد إلكتروني صحيح',
]);
Mail::to('info@libra.adv.ps')->send(new WorkshopRegistrationMail(
fullName: $validated['fullName'],
contactNumber: $validated['contactNumber'],
email: $validated['email'] !== '' ? $validated['email'] : null,
));
$this->redirect(route('about'), navigate: false);
}
}; ?>
تسجيل في ورشة عمل ريادايات نابلس
تخططين لإطلاق مشروعك الخاص أو تطوير تجارتك الإلكترونية؟ 🚀
ندعوكم للانضمام إلينا في ورشة عمل متخصصة وشاملة تجمع بين القانون، التسويق الرقمي، وإدارة
المتاجر الإلكترونية لبناء مشروعك على أسس متينة وناجحة! 🎯📊💡
برنامج الورشة:
■ ١١:٠٠ – ١١:١٠ | الترحيب والافتتاحية والتعريف بالسوق الفلسطيني — أ. لينا عبد الهادي
■ ١١:١٠ – ١١:٤٠ | كيف تبدأ مشروعاً ريادياً — أ. هبة المصري
■ ١١:٤٥ – ١٢:٢٠ | أساسيات التسويق الرقمي للمشاريع الريادية عبر وسائل التواصل — أ. تالا حلوب
■ ١٢:٢٠ – ١٢:٣٠ استراحة
■ ١٢:٣٠ – ١:٠٠ | الحيثيات والإجراءات القانونية الخاصة بالتجارة الإلكترونية — أ. هدى عرموش
■ ١:٠٥ – ١:٢٥ | البيع عبر المواقع الإلكترونية مقابل منصات التواصل الاجتماعي والفرق بينهما — أ. أيسر غزال
📍 المكان: قاعة "ورشة" – برج رفيديا – نابلس
الوقت: من الساعة ١١:٠٠ صباحاً حتى ١:٢٥ ظهراً
✨ الدعوة عامة لجميع الرياديين/ات وأصحاب المشاريع الناشئة والمهتمين!
```
`flux:input` renders the gold-focus-border / SemiBold-label / required-asterisk styling described
in `docs/ux-design.md` "Forms" automatically (same components already used on `pages.booking`),
so no additional CSS is required beyond the inline colors/classes above (Warm Cream `#F4F1EA` page
background from the standalone layout, Forest Green `#2D322A` text, White card, Warm Gold accents
via Flux's own primary-button styling — matching the existing site palette).
## Acceptance Criteria
- [ ] Visiting `/forms/nablus-workshop` returns HTTP 200 and does not require authentication
- [ ] The rendered page contains neither `send(...)` is
called with a `WorkshopRegistrationMail` carrying the submitted `fullName`/`contactNumber`
and a null `email`, and the response redirects to `route('about')`
- [ ] Submitting with `fullName` blank, or `contactNumber` blank, re-renders the form with a
validation error and does not send any mail
- [ ] Submitting with a non-empty but invalid `email` (e.g. `not-an-email`) re-renders the form
with a validation error and does not send any mail
- [ ] Submitting with a valid `email` filled in sends a `WorkshopRegistrationMail` whose `email`
property equals the submitted value
## Sub-tasks
None.
## QA Notes (2026-09-27)
All 6 acceptance criteria verified: `tests/Feature/Public/NablusWorkshopRegistrationTest.php`
(7 tests, all passing) covers route reachability without auth, absence of
`x-navigation`/`x-footer` markup, absence of `nablus-workshop` references in
`navigation.blade.php`/`footer.blade.php`, valid-submission mail dispatch with null email,
validation failures for blank `fullName`/`contactNumber` and invalid `email` (no mail sent), and
valid-email pass-through. No manual tests required — all criteria are HTTP/route/grep/mail
testable. Regression check: last 5 Done tasks (16-4, 16-5, 16-6, 17-1) touch no files this task
changed; 17-1's own mailable tests re-run clean (4/4). Full-suite gate run as parent 17 rollup:
1723 passed, 69 failed, 7 skipped — all 69 failures pre-existing/unrelated (About page
scholarship section removed 2026-01-11 per 16-6, Card/Accessibility/Admin-export/Availability
tests), none reference this task's files (routes/web.php, standalone layout, nablus-workshop
page). Not fixed here per QA scope.