[DEMO] FILAMENT PLUGIN + STARTER KIT
Safi RTL for Filament: Arabic RTL theme and Laravel starter kit (DEMO)
Safi RTL for Filament is a demo plugin I built to fix what Filament 5 leaves out of Arabic admin panels: a one-click language switch, 41 missing Arabic strings, Kuwait date and KWD formats, a Sunday week start and left-to-right email fields. It ships with a Laravel starter kit and isn't for sale yet.
- Demo
- Not for sale yet
- Solo build
- Filament 5
- Arabic and English
What Filament 5 leaves out of an Arabic admin panel
Filament flips the page to right to left on its own, and leaves the rest to you. There's no language switch, Filament 5.12 is missing 41 Arabic strings, Arabic-Indic digits mix with Western ones, money gets the wrong decimals for Kuwaiti dinars, the calendar starts on Monday, and email addresses run right to left as you type them on an Arabic form.
Every Arabic admin panel for a Gulf client hits these, and they get fixed again in every project. This packages the fixes once, as a Filament plugin plus a starter app that already uses it, so the next client panel starts with them done. It's for agencies and developers building admin panels for clients in Kuwait and the Gulf, where staff work in Arabic and managers often prefer English.
25 seconds in both languages
The Arabic dashboard switches to English, an entry is edited and saved, then the panel switches back to Arabic. There is no sound.
Deliverable 1
The Filament RTL theme: six fixes in one plugin
What Filament leaves out of an Arabic panel, installed in six steps.
-
One-click language switch
A button in the top bar and on the login page flips the whole panel between Arabic right to left and English left to right. The choice is saved on the user's account.
-
The 41 missing Arabic strings
Arabic for the 41 strings Filament 5.12 leaves untranslated, plus Arabic validation messages.
-
Kuwait formats
ar-KW and en-KW: Gregorian calendar, Kuwait time, KWD to 3 decimals, and Western or Arabic-Indic digits by setting. Filament's own money and date columns follow the language.
-
Week starts on Sunday
Date pickers start the week on Sunday, as the working week does in Kuwait.
-
Latin fields stay left to right
Email, phone, URL and password fields type left to right inside Arabic pages. Emails and phone numbers display left to right in tables, and digits line up in columns.
-
Brand in one place
Colours and corner radius change in one place without breaking the mirrored layout. One font, IBM Plex Sans Arabic, covers both scripts.
Deliverable 2
The Laravel RTL starter kit
A ready Laravel and Filament app with the theme already installed, Arabic by default.
-
Entries, a neutral example
Each field has an Arabic and an English version. The Arabic text runs right to left even in the English panel.
-
A dashboard
Three stat cards (published, drafts, edited this week against last week) and the five latest edits.
-
An admin role
New users get no role until one is set, and the role can't be filled in from a form.
-
A banner you have to remove
A yellow "Starter kit, replace this banner" notice, so nobody ships the starter by mistake.
-
Six steps to a client build
A guide for turning the starter into a client project.
-
A 12-point RTL checklist
The README ends with a checklist for testing any Arabic panel built on it, in light and dark mode.
- Arabic strings Filament 5.12 is missing
- 41
- Install steps, tested on a clean app
- 6
- Automated tests
- 37
- Points on the RTL test checklist
- 12
How it was built
Arabic Filament problems I hit and how I fixed them
All of these happened while building it. Most of the mirroring came free, so the work went into what Filament leaves out.
| PROBLEM | FIX |
|---|---|
| Filament 5 already sets the page direction from its Arabic translation and uses start/end CSS | The sidebar, tables, pop-ups and notifications needed no work, so the project skipped them |
| An email typed on the Arabic login page ran right to left | Latin-only fields stay left to right |
| The Arabic "no records" message read "لا يوجد الإدخالات", which is bad grammar | The theme ships "لا توجد :model", and the docs explain how to write Arabic labels so Filament's sentences come out right |
| The language switch broke on the first try: the plugin's middleware ran before the session started | The theme adds its middleware to Laravel's priority list, so nobody has to order their panel setup by hand |
| Laravel only merges translation overrides from the app's own folder | The 41 Arabic fixes ship as a one-command publish |
| An automated security review found new users would have become admins by default | The role is empty until set, and can't be filled from a form |
| The install guide was tested on a brand-new Laravel app, following only the README | It worked as written, and turned up two more fixes: the Sunday week start and Filament-wide locale defaults |
FAQ
Questions about Arabic and RTL in Filament
What people ask about Arabic and right-to-left layout in Filament admin panels.
Does Filament support RTL out of the box?
Partly. Filament 5 sets the page direction from its own Arabic translation and uses start and end CSS, so the sidebar, tables, pop-ups and notifications mirror on their own. It doesn't include a language switch, and Filament 5.12 is missing 41 Arabic strings.
How do I keep email fields left to right in an Arabic Filament form?
Give Latin-only inputs a left-to-right direction, so an email address doesn't run right to left as you type it on an Arabic page. Safi RTL for Filament does this for email, phone, URL and password fields, and shows emails and phone numbers left to right in tables too.
How do I show Kuwaiti dinars with 3 decimals in Filament?
Format money with a Kuwait locale (ar-KW or en-KW) through PHP's intl extension, which gives KWD its 3 decimals. The theme sets this up, and Filament's own money and date columns follow the language automatically.
Why did my Filament language switch not work?
In this build, the plugin's middleware ran before the session started, so the saved language wasn't available yet. The theme fixes it by adding its middleware to Laravel's middleware priority list, so it always runs after the session.
Can I download Safi RTL for Filament?
Not yet. It's a demo and not for sale. To see the same Arabic layout working, try the Noor Clinic demo.
Stack
Built with
Theme
- Filament 5 plugin
- Composer path package
- PHP intl (ICU)
- IBM Plex Sans Arabic
The theme and the starter live in one repo.
App
- Laravel 13
- PHP 8.4
- SQLite
Front end
- Tailwind CSS 4
- Vite
Tests and hosting
- Pest
- Caddy
- Hostinger VPS
- rsync
37 tests. Hosting is planned; there is no live demo of the starter yet.
Want something like this built for your team? See the Web development service, or start a project and I'll reply within one business day.
Work with me
Building a Filament panel for a Gulf client and need it to work properly in Arabic?
Book a call.
Book a call