Part 1 of Small Business Sites.
A hosting company homepage has one job: show the plans clearly enough that a visitor can pick one without opening a support ticket. Most small hosts I see either hard code their prices into the page, so every price change means editing HTML in four places, or they install a billing system built for a company ten times their size before they have ten customers.
This build sits between those two. The plans live in a database table, so the homepage reads them the way any Laravel page reads data. The price toggle switches between monthly and yearly without a page reload. A billing snapshot panel shows a signed in customer their invoices, due dates, and payment status, read only. Payments themselves stay outside this build, and I say where they would connect at the end.
Put the plans in a table first
Three plans are enough for a small host. The table needs the facts a buyer compares: name, disk space, bandwidth, email accounts, and the two prices. Store the monthly and yearly price as separate columns. Working the yearly price out from the monthly one inside the view sounds tidy and breaks the first time you run a yearly offer that is not a round multiple.
Schema::create('plans', function (Blueprint $table) { $table->id(); $table->string('name'); $table->unsignedInteger('disk_gb'); $table->string('bandwidth'); $table->unsignedInteger('email_accounts'); $table->decimal('monthly_price', 8, 2); $table->decimal('yearly_price', 8, 2); $table->boolean('featured')->default(false); $table->unsignedInteger('sort_order')->default(0); $table->timestamps(); }); Seed it with your real plans and your real prices. The names and numbers in my screenshots are sample data from my own template work, and yours should be the plans you can actually deliver. A plan card is a promise. If the disk figure on the homepage is larger than the disk you give the account, the page is lying in a way a customer will find in the first week.
The controller for the homepage stays small:
public function home() { $plans = Plan::orderBy('sort_order')->get(); return view('home', compact('plans')); } That is the whole point of the table. Adding a fourth plan next year is a row in the database, not an afternoon of HTML edits.
Draw the plan cards and the toggle
Each plan becomes one card. The card shows the name, the price, and the comparison rows in the same order on every card, so a visitor can read down one column and across the next. Keep the rows identical across cards. A row that appears on one card and not the next reads as a hidden limit, even when it was only a layout slip.
@foreach($plans as $plan) <article class="plan-card {{ $plan->featured ? 'featured' : '' }}"> <h3>{{ $plan->name }}</h3> <p class="price"> <span data-monthly="{{ $plan->monthly_price }}" data-yearly="{{ $plan->yearly_price }}"> ${{ $plan->monthly_price }} </span> <span class="per">/mo</span> </p> <ul> <li>{{ $plan->disk_gb }} GB disk space</li> <li>{{ $plan->bandwidth }} bandwidth</li> <li>{{ $plan->email_accounts }} email accounts</li> </ul> </article> @endforeach The toggle is two buttons and a few lines of JavaScript. Both prices are already on the page inside the data attributes, so switching needs no request to the server and works even on a slow connection.
document.querySelectorAll('[data-cycle]').forEach(function (button) { button.addEventListener('click', function () { const cycle = button.dataset.cycle; document.querySelectorAll('[data-monthly]').forEach(function (el) { el.textContent = '$' + (cycle === 'yearly' ? el.dataset.yearly : el.dataset.monthly); }); document.querySelectorAll('.per').forEach(function (el) { el.textContent = cycle === 'yearly' ? '/yr' : '/mo'; }); }); }); Check the cards at phone width before you call this section done. At 390px the cards stack in one column, the price stays on one line, and no card is wider than the screen. A pricing table that needs sideways scrolling on a phone loses the visitors most likely to be comparing plans away from their desk.
The billing snapshot panel
Once a visitor becomes a customer, the question changes from what does it cost to what do I owe and when. A snapshot panel answers that on one screen: the current plan, the invoices, each due date, and each status. It reads data. It does not take money, and it should not pretend to.
Invoices need their own small table: the customer, the plan, the amount, an issue date, a due date, and a status field that holds plain words like unpaid, paid, and overdue.
public function billing() { $invoices = auth()->user()->invoices() ->orderByDesc('due_date') ->take(10) ->get(); return view('billing', compact('invoices')); } In the view, show the status as text a person uses, with the due date next to it, and let overdue rows stand out by colour alone. Do not hide an unpaid invoice behind a tab. The panel earns its place the day a customer checks it instead of opening a ticket to ask when their renewal is due. When you later connect a payment gateway, it connects here: the gateway marks the invoice paid, and this panel keeps doing the same read it always did.
The domain box and the support section, kept small
A domain search box belongs on the homepage, as a front end form. Give it an input, a button, and an answer area. Until a real domain API connects to it, the honest version checks nothing and says so in the small print under the box, or stays off the page. A box that invents availability results is worse than no box.
The support section needs three things: the hours a person actually answers, a link to open a ticket or a contact page, and a status note the owner can edit by hand when something is wrong. One edited line that says the mail server restart finished at a real time builds more trust than a green all systems normal badge that never changes.
Trust sections that do not fake numbers
A new hosting company has no honest big numbers. It has no thousands of customers, no years of uptime record, and no wall of testimonials. Templates often ship with those numbers filled in, and leaving them in is the fastest way to make a real company look fake to anyone who reads closely.
What a new host can show is smaller and stronger. The exact plan limits, printed on the cards where the buyer compares them. The support hours it really keeps. How to reach a person, with a named page and a working form. The terms, privacy, and refund pages written as plain templates the owner has read. And the status note above, edited by hand. Each of those can be checked by a visitor, and a claim that can be checked is the kind that holds up.
Add the other numbers later, one at a time, when they are true. A first testimonial with a real customer name on it is worth more than a row of invented ones, and it cannot be taken apart in a comment thread.
What stays static and what goes dynamic
Keep the static parts static. The explanation of what shared hosting and VPS mean, the support hours text, the legal pages, and the company story do not change by the week, and plain Blade views with no queries keep them fast and hard to break.
Make dynamic only what changes or what belongs to a person: the plans and prices, because an offer or a new plan should not need a code edit; the status note, because it changes during an incident; and the billing panel, because it shows one customer's own invoices. That split is most of the maintenance story for a small host. The homepage stays quick, and the parts an owner edits from an admin screen are the parts that were going to change anyway.
Where this leaves you
With the plans in a table, the toggle on the cards, and the snapshot panel reading real invoices, a small hosting homepage in Laravel is a weekend of work and a short list of pages. If you would rather start from the finished version, HostNest is this homepage finished as a 10 page template. If you need the whole site and not only the homepage, it is $24 on Gumroad: https://mehedirafi.gumroad.com/l/hostnest
I am Mehedi Mansur Rafi, a freelance Laravel developer (B.Sc. in Computer Science & Engineering). I build hospital, clinic, and small business websites. My full store is at https://mehedirafi.gumroad.com/ and my site is https://mehedimansurrafi.online




