Rent a Car Mars

Design · Development2026

A car rental company in Prishtinë running its fleet on phone calls and a paper diary — given a public site and a staff back office that share one database, so a date booked online is unavailable everywhere the same second.

rentacarmars.com — one calendar, two faces. Picked dates close on the site and in the back office together. The booking shown is an example.
Client
Rent a Car Mars · Prishtinë
Role
Design & full-stack build
Design
Troiana
Stack
PHP · MySQL · vanilla JS
01Overview

Mars rents cars in Prishtinë, mostly to locals and to diaspora flying in for a few weeks. The fleet was booked by phone call, a name in a diary and someone’s memory — which works until two people ask for the same week.

So we built the site and the back office as one system on one database: the customer sees the same calendar the staff see, a reservation takes its dates the moment it is sent, and availability is never typed in twice.

Designed and built by Troiana. The structure, visual design and back office are ours; the fleet, photography and prices are Rent a Car Mars’s own.

1
Query defines availability everywhere
30
Minute holds that release themselves
0
Double bookings under load
02What we built
  1. 01

    A fleet read from the database

    Every car on the site comes from the fleet table. Adding one publishes it; hiding one removes it while keeping its history. Even the filters come from the fleet.

  2. 02

    Holds that take the dates

    A reservation takes its dates at once as a 30-minute hold. Staff confirm or cancel; an ignored hold frees the dates itself, with no scheduled job to forget.

  3. 03

    A row lock, not a race

    The car is locked before availability is checked. A concurrency test that double-booked 2 rounds in 8 without the lock produces none with it.

  4. 04

    One definition of free

    Bookings, live holds and staff blocks come from one query, shared by the customer calendar, the submit check and every back-office screen.

  5. 05

    The back office

    Orders with holds counting down live, a calendar for blocking dates with a reason, and a fleet page where a car is added or hidden.

  6. 06

    Stored, then sent

    Every reservation and message is saved before the email goes, so a failed send never loses a customer. Sessions are protected and logins throttled.

Across the site

Live pages, as they are today.

Rent a Car Mars — Fleet page.
Fleet — /makinat
Rent a Car Mars — About page.
About — /rreth-nesh
Rent a Car Mars homepage on a phone.
Phone — the homepage at 390px.
The back office

The diary, replaced by the thing it was tracking.

Staff land on the orders, holds first, because those are on a clock. The list refreshes every five seconds. The bookings shown are examples.

The Rent a Car Mars back office orders list with holds counting down.
Orders — two holds counting down, each customer one tap away.
The Rent a Car Mars back office calendar.
Calendar — the customer’s calendar, reused, for blocking dates with a reason.
The Rent a Car Mars back office fleet list.
Fleet — add a car and it is on the site at once.
The Rent a Car Mars back office on a phone.
Phone — the back office at 390px.
03Measured

The live homepage, under Google Lighthouse.

Desktop · median of three runs · 8 November 2026

87
Performance
96
Accessibility
100
Best practices
100
SEO
Largest Contentful Paint1.60s
0Google’s bar · 2.5s
Cumulative Layout Shift0.033
0Limit · 0.1
04Outcome

Mars went from a fleet tracked in someone’s head to a fleet tracked in one place, visible to the customer and the office at the same time. The site sells the cars; the system behind it makes sure it can only sell the ones that are free.

Built with
  • PHP 8
  • MySQL · InnoDB
  • PDO
  • Vanilla JS
  • Server-rendered
  • Row locking
  • No build step
Next case · 08 / 20 Maestria Immobiliare A real estate and turnkey renovation site built to the client’s brief — 100 in every Lighthouse category.