Skip to content

Instantly share code, notes, and snippets.

View RealMrHex's full-sized avatar
🪽
Flying

MrHex RealMrHex

🪽
Flying
View GitHub Profile

✅ UI Designer Checklist for Tailwind-Friendly Design

🎨 1. Design System & Consistency

  • Use a consistent spacing scale (e.g., multiples of 4: 4px, 8px, 16px…)
  • Stick to a fixed set of colors (with clear primary, secondary, accent, neutral, success, error, warning, etc.)
  • Define a typography scale (e.g., text-xs, sm, base, lg, xl, 2xl, etc.)
  • Use fixed border-radius sizes (e.g., rounded, rounded-md, rounded-xl, etc.)
  • Create and reuse components (e.g., Button, Input, Card, Modal) across the design
  • Define z-index layers (e.g., base content, modals, toasts)

Multiple Rescue Vehicle Search Flow - Admin Enhancement

📋 Overview

This document details the Multiple Rescue Vehicle Search Flow feature that enhances the service request creation process for administrators. This feature allows admins to select multiple rescue vehicles for a single service request and implements a sophisticated sequential search algorithm to find available experts.

❗ Important Background

Previous Flow (Single Vehicle)

Previously, when creating a service request, admins could only select one rescue vehicle:

Currency Module

The Currency Module provides a comprehensive system for managing currencies, exchange rates, and currency conversions within the application. It supports multiple exchange rate data providers through a driver-based architecture, tenant-specific business currencies, and a wide range of conversion utilities.

Table of Contents

<?php
protected function splitFullName(string $fullName): array
{
// Trim and normalize spaces
$fullName = trim(preg_replace('/\s+/', ' ', $fullName));
// Split into parts
$parts = explode(' ', $fullName);
$count = count($parts);
@RealMrHex
RealMrHex / WireServiceProvider.php
Created January 18, 2023 21:35
WireServiceProvider File
<?php
namespace Modules\Wire\Providers;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
use Livewire\Component;
use Livewire\Livewire;
use Modules\Wire\Console\MakeCommand;