- 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)
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.
Previously, when creating a service request, admins could only select one rescue vehicle:
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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; |