Skip to content

Commit

Permalink
Merge pull request #3742 from ColoredCow/hotfix/remove-mandatory-fields
Browse files Browse the repository at this point in the history
[Fix]:- Remove the Mandatory Field
  • Loading branch information
Ayush8923 authored Oct 28, 2024
2 parents ef79f3d + 24795b2 commit b951384
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
10 changes: 10 additions & 0 deletions Modules/Prospect/Http/Requests/ProspectRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ public function rules()
return [
'org_name' => 'required',
'poc_user_id' => 'required',
'proposal_sent_date' => 'nullable|date',
'domain' => 'nullable',
'customer_type' => 'nullable',
'budget' => 'nullable',
'proposal_status' => 'nullable',
'introductory_call' => 'nullable',
'last_followup_date' => 'nullable|date',
'rfp_link' => 'nullable|url',
'proposal_link' => 'nullable|url',
'currency' => 'nullable',
];
}

Expand Down
3 changes: 2 additions & 1 deletion Modules/Prospect/Resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@
<td class="w-20p">
<span>{{ ucfirst($prospect->customer_type) ?? '-' }}</span>
</td>

<td class="w-30p">
<span>
{{ $prospect->budget ? $currencySymbols[$prospect->currency] : '' }}
{{ isset($prospect->currency) && isset($currencySymbols[$prospect->currency]) ? $currencySymbols[$prospect->currency] : '' }}
{{ $prospect->budget ? round($prospect->budget, 2) : '-' }}
</span>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@
<select name="currency" v-model="currency" id="currency" class="input-group-text">
<option value="">Select Currency</option>
@foreach ($countries as $country)
<option value="{{ $country->currency }}">{{ $country->currency }}
</option>
<option value="{{ $country->currency }}"
{{ $prospect->currency == $country->currency ? 'selected' : '' }}>
{{ $country->currency }}</option>
@endforeach
</select>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ class="ml-2">{{ config('prospect.customer-types')[$prospect->customer_type] ?? '
<div class="col-md-6">
<div class="form-group col-md-12">
<label for="budget" class="font-weight-bold">Budget:</label>
<span class="ml-2">{{ $currencySymbols[$prospect->currency] ?? '' }}
{{ $prospect->budget ? round($prospect->budget, 2) : 'N/A' }}</span>
<span class="ml-2">
{{ isset($prospect->currency) && isset($currencySymbols[$prospect->currency]) ? $currencySymbols[$prospect->currency] : '' }}
{{ $prospect->budget ? round($prospect->budget, 2) : 'N/A' }}
</span>
</div>
</div>
</div>
Expand Down

0 comments on commit b951384

Please sign in to comment.