From 58abd25dfe8fc1ac038d210ca2519f501356b45c Mon Sep 17 00:00:00 2001 From: Ayush8923 Date: Mon, 28 Oct 2024 15:08:16 +0530 Subject: [PATCH] fix(*): made the some fixes --- Modules/Prospect/Http/Requests/ProspectRequest.php | 10 ++++++++++ Modules/Prospect/Resources/views/index.blade.php | 3 ++- .../views/subviews/edit-prospect-details.blade.php | 5 +++-- .../views/subviews/prospect-details.blade.php | 6 ++++-- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/Modules/Prospect/Http/Requests/ProspectRequest.php b/Modules/Prospect/Http/Requests/ProspectRequest.php index 3ea1f3ab25..fe1ff644d3 100644 --- a/Modules/Prospect/Http/Requests/ProspectRequest.php +++ b/Modules/Prospect/Http/Requests/ProspectRequest.php @@ -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', ]; } diff --git a/Modules/Prospect/Resources/views/index.blade.php b/Modules/Prospect/Resources/views/index.blade.php index 0f1be03b9a..43358d8b66 100644 --- a/Modules/Prospect/Resources/views/index.blade.php +++ b/Modules/Prospect/Resources/views/index.blade.php @@ -64,9 +64,10 @@ {{ ucfirst($prospect->customer_type) ?? '-' }} + - {{ $prospect->budget ? $currencySymbols[$prospect->currency] : '' }} + {{ isset($prospect->currency) && isset($currencySymbols[$prospect->currency]) ? $currencySymbols[$prospect->currency] : '' }} {{ $prospect->budget ? round($prospect->budget, 2) : '-' }} diff --git a/Modules/Prospect/Resources/views/subviews/edit-prospect-details.blade.php b/Modules/Prospect/Resources/views/subviews/edit-prospect-details.blade.php index c59cfb372d..c2893694e3 100644 --- a/Modules/Prospect/Resources/views/subviews/edit-prospect-details.blade.php +++ b/Modules/Prospect/Resources/views/subviews/edit-prospect-details.blade.php @@ -55,8 +55,9 @@ diff --git a/Modules/Prospect/Resources/views/subviews/prospect-details.blade.php b/Modules/Prospect/Resources/views/subviews/prospect-details.blade.php index fe6c4d0733..65bc5e44d5 100644 --- a/Modules/Prospect/Resources/views/subviews/prospect-details.blade.php +++ b/Modules/Prospect/Resources/views/subviews/prospect-details.blade.php @@ -47,8 +47,10 @@ class="ml-2">{{ config('prospect.customer-types')[$prospect->customer_type] ?? '
- {{ $currencySymbols[$prospect->currency] ?? '' }} - {{ $prospect->budget ? round($prospect->budget, 2) : 'N/A' }} + + {{ isset($prospect->currency) && isset($currencySymbols[$prospect->currency]) ? $currencySymbols[$prospect->currency] : '' }} + {{ $prospect->budget ? round($prospect->budget, 2) : 'N/A' }} +