adding mandatory fields validation in kyc
This commit is contained in:
@@ -369,7 +369,7 @@ class DashboardController extends Controller
|
||||
$leadAssigned .= $this->notificationData($message, $created_at, $id, $read_at);
|
||||
}
|
||||
}
|
||||
$notificationStatus = array('newUser' => $newUser, 'submittedKyc' => $submittedKyc, 'sellerForm' => $sellerForm, 'buyerForm' => $buyerForm, 'contactUs' => $contactUs, 'leadAssigned' => $leadAssigned);
|
||||
$notificationStatus = array('newUser' => $newUser, 'submittedKyc' => $submittedKyc, 'sellerForm' => $sellerForm, 'buyerForm' => $buyerForm, 'contactUs' => $contactUs, 'leadAssigned' => $leadAssigned, 'unreadnotification' => \Auth::user()->unreadnotifications()->count());
|
||||
return response()->json(['status' => 200, 'message' => "marked as read", 'data' => $notificationStatus]);
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -713,10 +713,8 @@ class DashboardController extends Controller
|
||||
$validator = Validator::make($request->all(), [
|
||||
'property_name' => 'required',
|
||||
'property_address' => 'required',
|
||||
'property_grade' => 'required',
|
||||
'asset_type' => 'required',
|
||||
'annual_rental_yield_earned' => 'required',
|
||||
'rental_escalation' => 'required',
|
||||
'fractional_real_estate_platform' => 'required',
|
||||
'date_of_investment' => 'required',
|
||||
'original_amount_invested' => 'required',
|
||||
|
||||
@@ -35,14 +35,14 @@ class StoreCompanyKYC extends FormRequest
|
||||
'company_pan' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'certificate_of_incorporation' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'tan_allotment_letter' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'List_of_directors_or_authorized_signatories' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'List_of_directors_or_authorized_signatories' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
// 'pan_card_copy_of_authorized_signatory' => ',
|
||||
'pan_card_copy_of_authorized_signatory' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'pan_card_copy_of_authorized_signatory' => 'required|required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
// 'aadhar_card_copy_of_authorized_signatory' => ',
|
||||
'aadhar_card_copy_of_authorized_signatory' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'proof_of_address_of_the_company' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'latest_income_tax_return_of_the_company_Of_last_2_years' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'copy_of_cml' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'copy_of_cml' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'copy_of_audited_balance_sheet_for_the_last_2_f_y' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
// 'passport_photo_all_authorized_signatories_or_directors' => ',
|
||||
'passport_photo_all_authorized_signatories_or_directors' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
|
||||
@@ -35,7 +35,7 @@ class StoreNRIKYC extends FormRequest
|
||||
'gross_annual_income' => 'required|regex:/^[0-9]+$/',
|
||||
'passport' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'pio_oci_card' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'tin' => 'required',
|
||||
// 'tin' => 'required',
|
||||
'pan_card' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'proof_of_address_of_india' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'utility' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
|
||||
@@ -35,14 +35,14 @@ class StoreOtherKYC extends FormRequest
|
||||
'gross_annual_income' => 'required|regex:/^[0-9]+$/',
|
||||
'proof_of_identity_pan_card' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'addressproof_bank_statement_or_utility_bill' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'certificate_of_registration' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'list_of_authorised_signatories' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'certificate_of_registration' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'list_of_authorised_signatories' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
// 'pan_card_copy_of_authorized_signatory' => ',
|
||||
'pan_card_copy_of_authorized_signatory.*' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
// 'aadhar_card_copy_of_authorized_signatory' => ',
|
||||
'aadhar_card_copy_of_authorized_signatory.*' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'cancelled_cheque' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'cml_copy' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'cancelled_cheque' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'cml_copy' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'latest_income_tax_return' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'copy_of_audited_balance_sheet_for_the_last_2_F_Y' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
// 'passport_photo_signed_authorized_signatories_or_directors' => 'required',
|
||||
|
||||
@@ -36,15 +36,15 @@ class StorePartnerShipKYC extends FormRequest
|
||||
'true_copy_of_partnership_deed' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'registration_certificate' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'pan_card' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'list_of_partners_and_authorised_signatories' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'list_of_partners_and_authorised_signatories' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
// 'pan_card_copy_of_authorized_signatory' => ',
|
||||
'pan_card_copy_of_authorized_signatory.*' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'pan_card_copy_of_authorized_signatory.*' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
// 'aadhar_card_copy_of_authorized_signatory' => ',
|
||||
'aadhar_card_copy_of_authorized_signatory.*' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'aadhar_card_copy_of_authorized_signatory.*' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'tan_allotment_letter' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'proof_of_address_firm' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'proof_of_address_firm' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'latestIincome_tax_return_of_the_firm' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'copy_of_cml' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'copy_of_cml' => 'required|mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
'copy_of_audited_balance_sheet_for_last' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
// 'passport_photo_authorized_signatories_partners' => ',
|
||||
'passport_photo_authorized_signatories_partners.*' => 'mimes:jpeg,png,jpg,pdf|max:2048',
|
||||
|
||||
@@ -52,7 +52,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'url' => env('APP_URL', 'http://localhost'),
|
||||
'url' => env('APP_URL', 'http://localhost/new_freeu/my-freeu/'),
|
||||
|
||||
'asset_url' => env('ASSET_URL', null),
|
||||
|
||||
|
||||
@@ -1858,7 +1858,7 @@
|
||||
|
||||
</a> -->
|
||||
|
||||
<input type="text" id="" name="subject">
|
||||
<input type="text" placeholder="Please enter subject" id="" name="subject">
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1868,7 +1868,7 @@
|
||||
|
||||
<label for="fname">Due Date</label>
|
||||
|
||||
<input type="text" id="dateTime" name="due_date" autocomplete="off">
|
||||
<input type="text" placeholder="Please choose due date " id="dateTime" name="due_date" autocomplete="off">
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1924,7 +1924,7 @@
|
||||
|
||||
<label for="fname">Reminder</label>
|
||||
|
||||
<input type="text" id="reminder" name="reminder" min="">
|
||||
<input type="text" placeholder="Please write a reminder "id="reminder" name="reminder" min="">
|
||||
|
||||
</div>
|
||||
|
||||
@@ -2019,7 +2019,7 @@
|
||||
|
||||
<label for="fname">Location</label>
|
||||
|
||||
<input type="text" id="fname" name="location">
|
||||
<input type="text" placeholder="Please enter location" id="fname" name="location">
|
||||
|
||||
</div>
|
||||
|
||||
@@ -2027,7 +2027,7 @@
|
||||
|
||||
<label for="fname">From</label>
|
||||
|
||||
<input type="text" id="meeting-from" name="from" />
|
||||
<input type="text" placeholder="Please choose from date"id="meeting-from" name="from" />
|
||||
|
||||
</div>
|
||||
|
||||
@@ -2035,7 +2035,7 @@
|
||||
|
||||
<label for="fname">To</label>
|
||||
|
||||
<input type="text" id="meeting-to" name="to" />
|
||||
<input type="text" placeholder="Please select a to date" id="meeting-to" name="to" />
|
||||
|
||||
</div>
|
||||
|
||||
@@ -2047,7 +2047,7 @@
|
||||
|
||||
<select name="host" id="" class="form-control">
|
||||
|
||||
<option value="">Select a User</option>
|
||||
<option value="">Please select a host </option>
|
||||
|
||||
@foreach ($users as $user)
|
||||
|
||||
@@ -2065,7 +2065,7 @@
|
||||
|
||||
<select name="priority" id="" class="form-control">
|
||||
|
||||
<option value="">Select a Priority</option>
|
||||
<option value="">Please select a priority</option>
|
||||
|
||||
<option value="Low">Low</option>
|
||||
|
||||
@@ -2085,7 +2085,7 @@
|
||||
|
||||
<label for="fname">Participants</label>
|
||||
|
||||
<input type="text" id="" name="participants" value="">
|
||||
<input type="text" id="" placeholder="Please enter participants" name="participants" value="">
|
||||
|
||||
</div>
|
||||
|
||||
@@ -2093,7 +2093,7 @@
|
||||
|
||||
<label for="fname">Related To</label>
|
||||
|
||||
<input type="text" id="" name="related_to" value="">
|
||||
<input type="text" placeholder="Please enter related to" id="" name="related_to" value="">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -91,6 +91,10 @@ $url_name = request()->segment(count(request()->segments()));
|
||||
if (result.data.leadAssigned) {
|
||||
$('#leads').empty().html(result.data.leadAssigned);
|
||||
}
|
||||
if(result.data.unreadnotification)
|
||||
{
|
||||
$('#notification_count').empty().html(result.data.unreadnotification);
|
||||
}
|
||||
} else {
|
||||
toastr.warning(result.message);
|
||||
}
|
||||
|
||||
@@ -112,8 +112,8 @@
|
||||
<!--begin::Svg Icon | path: icons/duotune/communication/com012.svg-->
|
||||
<!-- <i class="fa-regular fa-bell" style='width:25px;height:25px'></i> -->
|
||||
<div class="symbol symbol-50px">
|
||||
<i class="fa-regular fa-bell" title="{{Auth::user()->notifications()->count()}}" style='width:25px;height:25px'></i>
|
||||
<span class="symbol-badge badge badge-sm badge-circle badge-white badge-outline bg-danger start-100">{{Auth::user()->notifications()->count()}}</span>
|
||||
<i class="fa-regular fa-bell" title="{{Auth::user()->unreadnotifications()->count()}}" style='width:25px;height:25px'></i>
|
||||
<span class="symbol-badge badge badge-sm badge-circle badge-white badge-outline bg-danger start-100" id="notification_count">{{Auth::user()->unreadnotifications()->count()}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Menu wrapper-->
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
accept="image/jpeg,image/png,image/jpg,application/pdf">
|
||||
</div>
|
||||
<div class="col-md-6 mb-4">
|
||||
<label>List of directors & authorized signatories</label>
|
||||
<label class="mandatory">List of directors & authorized signatories</label>
|
||||
<input type="file" id="List_of_directors_or_authorized_signatories"
|
||||
name="List_of_directors_or_authorized_signatories"
|
||||
class="iv-input form-control p-2"
|
||||
@@ -153,7 +153,7 @@
|
||||
accept="image/jpeg,image/png,image/jpg,application/pdf">
|
||||
</div>
|
||||
<div class="col-md-6 mb-4">
|
||||
<label for="occupation">Copy of CML</label>
|
||||
<label class="mandatory" for="occupation">Copy of CML</label>
|
||||
<input type="file" id="copy_of_cml" name="copy_of_cml"
|
||||
class="acc-dropdown form-control p-2"
|
||||
accept="image/jpeg,image/png,image/jpg,application/pdf">
|
||||
@@ -256,9 +256,11 @@
|
||||
occupation: 'required',
|
||||
memorandum_or_articles_of_association: 'required',
|
||||
company_pan: 'required',
|
||||
List_of_directors_or_authorized_signatories:'required',
|
||||
certificate_of_incorporation: 'required',
|
||||
proof_of_address_of_the_company: 'required',
|
||||
cancelled_cheque: 'required',
|
||||
copy_of_cml:'required',
|
||||
'pan_card_copy_of_authorized_signatory[]': 'required',
|
||||
'aadhar_card_copy_of_authorized_signatory[]': 'required',
|
||||
'passport_photo_all_authorized_signatories_or_directors[]': 'required',
|
||||
@@ -278,6 +280,7 @@
|
||||
certificate_of_incorporation: 'Certificate of Incorporation is required',
|
||||
proof_of_address_of_the_company: 'Proof of address of the company is required',
|
||||
cancelled_cheque: 'Cancelled Cheque is required',
|
||||
copy_of_cml:"Copy of CML is required",
|
||||
'pan_card_copy_of_authorized_signatory[]': 'PAN Card is required',
|
||||
'aadhar_card_copy_of_authorized_signatory[]': 'Aadhar Card is required',
|
||||
'passport_photo_all_authorized_signatories_or_directors[]': 'Passport is required',
|
||||
|
||||
@@ -166,10 +166,8 @@
|
||||
rules: {
|
||||
property_name: "required",
|
||||
property_address: "required",
|
||||
property_grade: "required",
|
||||
asset_type: "required",
|
||||
annual_rental_yield_earned: "required",
|
||||
rental_escalation: "required",
|
||||
fractional_real_estate_platform: "required",
|
||||
date_of_investment: "required",
|
||||
original_amount_invested: "required",
|
||||
|
||||
@@ -189,7 +189,6 @@
|
||||
gross_annual_income: 'required',
|
||||
occupation: 'required',
|
||||
passport: 'required',
|
||||
tin: 'required',
|
||||
pan_card: 'required',
|
||||
proof_of_address_of_india: 'required',
|
||||
// proof_of_address_of_foreign: 'required',
|
||||
@@ -197,7 +196,7 @@
|
||||
rental_agreement: 'required',
|
||||
passport_size_photograph: 'required',
|
||||
copy_of_cml: 'required',
|
||||
// cancelled_cheque: 'required',
|
||||
cancelled_cheque: 'required',
|
||||
// trc_copy: 'required',
|
||||
// form_10f: 'required',
|
||||
// no_pe_declaration: 'required',
|
||||
@@ -221,7 +220,7 @@
|
||||
rental_agreement: 'Proof Of Address (Foreign) Rental Agreement is required',
|
||||
passport_size_photograph: 'Recent Passport Size Photograph is required',
|
||||
copy_of_cml: 'Copy of CML is required',
|
||||
// cancelled_cheque: 'Cancelled Cheque (NRO/NRE Account) is required',
|
||||
cancelled_cheque: 'Cancelled Cheque (NRO/NRE Account) is required',
|
||||
// trc_copy: 'TRC Copy is required',
|
||||
// form_10f: 'Form 10F is required',
|
||||
// no_pe_declaration: 'No PE Declaration is required',
|
||||
|
||||
@@ -81,11 +81,11 @@
|
||||
<input type="file" id="" name="addressproof_bank_statement_or_utility_bill" class="iv-input form-control p-2" accept="image/jpeg,image/png,image/jpg,application/pdf">
|
||||
</div>
|
||||
<div class="col-md-6 mb-4">
|
||||
<label for="resident">Certificate of Registration</label>
|
||||
<label for="resident" class="mandatory">Certificate of Registration</label>
|
||||
<input type="file" id="" name="certificate_of_registration" class="iv-input form-control p-2" accept="image/jpeg,image/png,image/jpg,application/pdf">
|
||||
</div>
|
||||
<div class="col-md-6 mb-4">
|
||||
<label for="dob">List of Authorised Signatories</label>
|
||||
<label for="dob" class="mandatory">List of Authorised Signatories</label>
|
||||
<input type="file" id="" name="list_of_authorised_signatories" class="acc-dropdown form-control p-2" accept="image/jpeg,image/png,image/jpg,application/pdf">
|
||||
</div>
|
||||
<div class="col-md-6 mb-4">
|
||||
@@ -170,13 +170,15 @@
|
||||
place_of_birth: 'required',
|
||||
gross_annual_income: 'required',
|
||||
occupation: 'required',
|
||||
certificate_of_registration:'required',
|
||||
addressproof_bank_statement_or_utility_bill: 'required',
|
||||
proof_of_identity_pan_card: 'required',
|
||||
'pan_card_copy_of_authorized_signatory[]': 'required',
|
||||
'aadhar_card_copy_of_authorized_signatory[]': 'required',
|
||||
cml_copy: 'required',
|
||||
cancelled_cheque: 'required',
|
||||
'passport_photo_signed_authorized_signatories_or_directors[]': 'required'
|
||||
'passport_photo_signed_authorized_signatories_or_directors[]': 'required',
|
||||
list_of_authorised_signatories:"required"
|
||||
},
|
||||
messages: {
|
||||
name: 'Name is required',
|
||||
@@ -194,7 +196,11 @@
|
||||
'aadhar_card_copy_of_authorized_signatory[]': 'Aadhar Card is required',
|
||||
cml_copy: 'CML Copy is required',
|
||||
cancelled_cheque: 'Cancelled Cheque is required',
|
||||
passport_photo_signed_authorized_signatories_or_directors: 'Passport is required'
|
||||
passport_photo_signed_authorized_signatories_or_directors: 'Passport is required',
|
||||
certificate_of_registration:'Certificate of Registration is required',
|
||||
list_of_authorised_signatories:'Latest Income Tax Return is required',
|
||||
'passport_photo_signed_authorized_signatories_or_directors[]':'Passport size is required'
|
||||
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
var formData = new FormData(form);
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
accept="image/jpeg,image/png,image/jpg,application/pdf">
|
||||
</div>
|
||||
<div class="col-md-6 mb-4">
|
||||
<label for="email">List of Partners and Authorised signatories</label>
|
||||
<label for="email" class="mandatory" >List of Partners and Authorised signatories</label>
|
||||
<input type="file" id=""
|
||||
name="list_of_partners_and_authorised_signatories"
|
||||
class="iv-input form-control p-2"
|
||||
@@ -159,7 +159,7 @@
|
||||
accept="image/jpeg,image/png,image/jpg,application/pdf">
|
||||
</div>
|
||||
<div class="col-md-6 mb-4">
|
||||
<label for="">Copy of CML</label>
|
||||
<label for="" class="mandatory">Copy of CML</label>
|
||||
<input type="file" id="" name="copy_of_cml"
|
||||
class="iv-input form-control p-2"
|
||||
accept="image/jpeg,image/png,image/jpg,application/pdf">
|
||||
@@ -243,12 +243,14 @@
|
||||
true_copy_of_partnership_deed: 'required',
|
||||
registration_certificate: 'required',
|
||||
pan_card: 'required',
|
||||
list_of_partners_and_authorised_signatories:'required',
|
||||
proof_of_address_firm: 'required',
|
||||
'pan_card_copy_of_authorized_signatory[]': 'required',
|
||||
'aadhar_card_copy_of_authorized_signatory[]': 'required',
|
||||
pan_card_copy_of_authorized_signatory: 'required',
|
||||
'passport_photo_authorized_signatories_partners[]': 'required',
|
||||
cancelled_cheque: 'required',
|
||||
copy_of_cml:'required'
|
||||
},
|
||||
messages: {
|
||||
name: 'Name is required',
|
||||
|
||||
Reference in New Issue
Block a user