KARIM
Mobile | Backend

OTM Motors Platform

Full-stack automotive e-commerce platform for Saudi Arabia & UAE — Next.js 15 storefront with Laravel 12 admin panel, AI car recommendation engine, financing calculator, and bilingual Arabic/English support.

Role
Full-Stack Developer
Timeline
~4 months
Status
Production
Next.jsLaravelFilamentSanctumTailwind CSSFramer MotionTypeScript

The Problem

What needed to be solved

The dealership needed a modern digital platform to replace their manual sales process — customers had no way to browse inventory online, compare cars, calculate financing, or book test drives. The platform needed to serve both Saudi and UAE markets with full Arabic support, handle complex car specifications (80+ fields per vehicle), and give the admin team a powerful management dashboard without writing code for every CRUD operation.

What I Built

My technical contributions

1

Next.js 15 Storefront with ISR

Built a performant storefront using Next.js App Router with server/client component separation, Incremental Static Regeneration for inventory pages (60s revalidation), and 4 React contexts (Auth, Cart, Location, Comparison) for complex state management across 25 pages.

2

AI Car Recommendation Engine

Designed a trait-vector scoring algorithm in Laravel that maps user preferences (family, city driving, off-road, safety, etc.) to brand weights via dot-product calculations, with budget and vehicle type filtering — cached for performance and logged for analytics.

3

Filament 3 Admin Panel

Leveraged Filament to build 30 admin CRUD resources with zero frontend code — covering inventory management, customer interactions (reservations, test drives, financing), service management, and analytics dashboards with real-time stats widgets.

4

Bilingual Architecture (Arabic/English)

Implemented full i18n with JSON multilingual columns in MySQL (storing both EN/AR per field), middleware-based locale routing, RTL layout support with Tailwind, and a 75KB+ translation dictionary covering the entire UI.

5

Comprehensive Customer Workflows

Built 8 distinct customer interaction flows — reservations, test drives, financing applications, trade-in estimates, pre-orders, consultations, inquiries, and service bookings — each with status workflows, validation, and admin tracking.

System Architecture

How it's built

Frontend (Next.js 15)
React 19 + TypeScriptApp Router + ISRFramer Motion4 Context ProvidersTailwind CSS
API Layer (Laravel 12)
RESTful API (30+ endpoints)Sanctum Bearer AuthAPI ResourcesCORS + Middleware
Business Logic
AI Recommendation EngineFinancing CalculatorStatus WorkflowsRBAC Permissions
Admin Panel (Filament 3)
30 CRUD ResourcesDashboard WidgetsFile UploadsRelationship Managers
31
Models
44
Migrations
25
Pages
2
Countries
Architecture Patterns

Server/Client Component Split

Server components for SEO and static content, client components for interactivity — maximizing performance

AI Trait-Vector Scoring

Custom recommendation algorithm using dot-product brand-to-trait weights with budget filtering and result caching

Multilingual JSON Columns

MySQL JSON columns storing {en, ar} objects with Eloquent accessors for seamless bilingual data access

Status Workflow Pattern

8 customer interaction types each with defined status transitions (pending → confirmed → completed/cancelled)

Scope of Work

Key features delivered

360-degree interactive car viewer
AI-powered car recommendation engine
Financing calculator with monthly payment estimates
Side-by-side car comparison tool
Multi-car shopping cart with persistence
Test drive booking with branch selection
Trade-in vehicle valuation
Filament admin panel (30 CRUD resources)
Role-based access control (Admin/Editor/Viewer)
Vehicle inspection reports with checklists
Hero slider content management
Arabic/English with full RTL support
OTP email authentication
SEO optimized with dynamic metadata

Visual Proof

Screenshots

OTM Motors Platform logo

OTM Motors Platform

Click any screenshot to view in full size

Results & Impact

What it achieved

31
Database Models
30
Admin Resources
25
Frontend Pages
80+
Car Spec Fields