<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Marwan Ayman</title>
    <description>The latest articles on DEV Community by Marwan Ayman (@marwan_ayman128).</description>
    <link>https://dev.to/marwan_ayman128</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4246679%2F9ec50ed8-3086-48ca-b402-267aaa2d070b.jpg</url>
      <title>DEV Community: Marwan Ayman</title>
      <link>https://dev.to/marwan_ayman128</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/marwan_ayman128"/>
    <language>en</language>
    <item>
      <title>How I built a UK ETA application portal as a freelance developer in Cairo</title>
      <dc:creator>Marwan Ayman</dc:creator>
      <pubDate>Mon, 16 Nov 2026 00:16:16 +0000</pubDate>
      <link>https://dev.to/marwan_ayman128/how-i-built-a-uk-eta-application-portal-as-a-freelance-developer-in-cairo-3866</link>
      <guid>https://dev.to/marwan_ayman128/how-i-built-a-uk-eta-application-portal-as-a-freelance-developer-in-cairo-3866</guid>
      <description>&lt;p&gt;I'm Marwan Ayman, a freelance full-stack developer based in New Cairo, Egypt. I work directly with clients, no agency in between. This post walks through one project I built on my own: a portal where travellers apply for the UK Electronic Travel Authorisation (ETA). It's live at &lt;a href="https://apply-uketa.com" rel="noopener noreferrer"&gt;apply-uketa.com&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The brief
&lt;/h2&gt;

&lt;p&gt;The client needed a site where an applicant could:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;fill in a long, multi-step application without losing progress,&lt;/li&gt;
&lt;li&gt;upload documents,&lt;/li&gt;
&lt;li&gt;pay online,&lt;/li&gt;
&lt;li&gt;and then follow the application as staff processed it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On the other side, the client's team needed an admin panel to review applications, move them through each stage and email applicants automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Laravel + MySQL&lt;/strong&gt; for the backend and data model&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Alpine.js + Tailwind CSS&lt;/strong&gt; for the front end&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PayTabs&lt;/strong&gt; for card payments&lt;/li&gt;
&lt;li&gt;Laravel queues and mail for notifications&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I picked Laravel because the project was mostly forms, workflows, roles and email. Laravel handles all of those well out of the box, which let me spend the time on the workflow itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hard part: the workflow
&lt;/h2&gt;

&lt;p&gt;An application isn't just "submitted" or "approved". It goes through &lt;strong&gt;13 status states&lt;/strong&gt;, from draft through payment, review and requests for more information to a final decision. Four user roles touch it, and each role can only perform certain transitions.&lt;/p&gt;

&lt;p&gt;What worked:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;One table of allowed transitions&lt;/strong&gt; (from state, to state, role). Every status change goes through a single service that checks this table, writes an audit row and fires the right email. No controller changes a status directly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Saving each form step as its own record&lt;/strong&gt;, so applicants can leave and come back. Validation runs per step, and the final submit re-validates everything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Payment state kept apart from application state.&lt;/strong&gt; The PayTabs callback only updates the payment record. A listener then moves the application forward, which keeps retried or duplicate callbacks from double-processing anything.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Eligibility by country
&lt;/h2&gt;

&lt;p&gt;The form supports 80+ eligible nationalities. Rather than hard-coding them, I put the list in the database with a flag the admin can toggle. That way the client can change it without a deploy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell another freelancer
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Draw the state machine before writing code. It became the shared language with the client.&lt;/li&gt;
&lt;li&gt;Keep payment webhooks idempotent from day one.&lt;/li&gt;
&lt;li&gt;Give the admin panel as much attention as the public form. Staff use it all day.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;I build websites, web apps, SaaS products and n8n/AI automations for clients in Egypt, the Gulf, the UK and Europe. More case studies are on my portfolio: &lt;a href="https://marwan-portfolio.com" rel="noopener noreferrer"&gt;marwan-portfolio.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>webdev</category>
      <category>freelance</category>
      <category>php</category>
    </item>
  </channel>
</rss>
