complete story 9.5 with qa test

This commit is contained in:
Naser Mansour
2026-01-03 00:19:21 +02:00
parent 1f2357fe5e
commit 67502af83d
12 changed files with 542 additions and 74 deletions
@@ -94,7 +94,7 @@ new class extends Component {
<form wire:submit="create" class="space-y-6">
<div class="grid gap-6 sm:grid-cols-2">
<flux:field>
<flux:label>{{ __('clients.company_name') }} *</flux:label>
<flux:label class="required">{{ __('clients.company_name') }}</flux:label>
<flux:input
wire:model="company_name"
type="text"
@@ -105,7 +105,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.registration_number') }} *</flux:label>
<flux:label class="required">{{ __('clients.registration_number') }}</flux:label>
<flux:input
wire:model="company_cert_number"
type="text"
@@ -115,7 +115,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.contact_person_name') }} *</flux:label>
<flux:label class="required">{{ __('clients.contact_person_name') }}</flux:label>
<flux:input
wire:model="contact_person_name"
type="text"
@@ -125,7 +125,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.contact_person_id') }} *</flux:label>
<flux:label class="required">{{ __('clients.contact_person_id') }}</flux:label>
<flux:input
wire:model="contact_person_id"
type="text"
@@ -135,7 +135,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.email') }} *</flux:label>
<flux:label class="required">{{ __('clients.email') }}</flux:label>
<flux:input
wire:model="email"
type="email"
@@ -145,7 +145,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.phone') }} *</flux:label>
<flux:label class="required">{{ __('clients.phone') }}</flux:label>
<flux:input
wire:model="phone"
type="tel"
@@ -155,7 +155,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.password') }} *</flux:label>
<flux:label class="required">{{ __('clients.password') }}</flux:label>
<flux:input
wire:model="password"
type="password"
@@ -165,7 +165,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.preferred_language') }} *</flux:label>
<flux:label class="required">{{ __('clients.preferred_language') }}</flux:label>
<flux:select wire:model="preferred_language" required>
<flux:select.option value="ar">{{ __('clients.arabic') }}</flux:select.option>
<flux:select.option value="en">{{ __('clients.english') }}</flux:select.option>
@@ -118,7 +118,7 @@ new class extends Component {
<form wire:submit="update" class="space-y-6">
<div class="grid gap-6 sm:grid-cols-2">
<flux:field>
<flux:label>{{ __('clients.company_name') }} *</flux:label>
<flux:label class="required">{{ __('clients.company_name') }}</flux:label>
<flux:input
wire:model="company_name"
type="text"
@@ -129,7 +129,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.registration_number') }} *</flux:label>
<flux:label class="required">{{ __('clients.registration_number') }}</flux:label>
<flux:input
wire:model="company_cert_number"
type="text"
@@ -139,7 +139,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.contact_person_name') }} *</flux:label>
<flux:label class="required">{{ __('clients.contact_person_name') }}</flux:label>
<flux:input
wire:model="contact_person_name"
type="text"
@@ -149,7 +149,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.contact_person_id') }} *</flux:label>
<flux:label class="required">{{ __('clients.contact_person_id') }}</flux:label>
<flux:input
wire:model="contact_person_id"
type="text"
@@ -159,7 +159,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.email') }} *</flux:label>
<flux:label class="required">{{ __('clients.email') }}</flux:label>
<flux:input
wire:model="email"
type="email"
@@ -169,7 +169,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.phone') }} *</flux:label>
<flux:label class="required">{{ __('clients.phone') }}</flux:label>
<flux:input
wire:model="phone"
type="tel"
@@ -189,7 +189,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.preferred_language') }} *</flux:label>
<flux:label class="required">{{ __('clients.preferred_language') }}</flux:label>
<flux:select wire:model="preferred_language" required>
<flux:select.option value="ar">{{ __('clients.arabic') }}</flux:select.option>
<flux:select.option value="en">{{ __('clients.english') }}</flux:select.option>
@@ -198,7 +198,7 @@ new class extends Component {
</flux:field>
<flux:field>
<flux:label>{{ __('clients.status') }} *</flux:label>
<flux:label class="required">{{ __('clients.status') }}</flux:label>
<flux:select wire:model="status" required>
@foreach ($statuses as $statusOption)
<flux:select.option value="{{ $statusOption->value }}">