Merge pull request #370 from Ritikeshyadav/RitikeshFreeu
Ritikesh freeu
This commit is contained in:
@@ -100,9 +100,9 @@ class ProfileController extends Controller
|
||||
'max' => 'The :attribute field must be :max digits'
|
||||
]);
|
||||
|
||||
$validationMessage = $this->validationError($validator);
|
||||
if ($validationMessage) {
|
||||
return response()->json(['status' => 400, 'message' => $validationMessage]);
|
||||
// $validationMessage = $this->validationError($validator);
|
||||
if ($validator->fails()) {
|
||||
return response()->json(['status' => 400, 'message' => $validator->errors()]);
|
||||
}
|
||||
|
||||
$user = User::find($request->user()->id);
|
||||
|
||||
@@ -17,49 +17,72 @@
|
||||
<!--begin::Table body-->
|
||||
<tbody class="text-gray-600 fw-semibold">
|
||||
<!--begin::Table row-->
|
||||
@foreach($monthlyUpdate as $data)
|
||||
<tr>
|
||||
<!--begin::Checkbox-->
|
||||
<td class="min-w-25px w-100px">{{$loop->iteration}}</td>
|
||||
<td class="min-w-75px w-100px align-top">{{$data->total_value_of_the_property}}</td>
|
||||
<td class="min-w-75px w-100px align-top">{{$data->investment_value}}</td>
|
||||
<td class="min-w-75px w-100px align-top">{{$data->investment_date}}</td>
|
||||
<td class="min-w-75px w-150px align-top">{{$data->total_gross_interest}}</td>
|
||||
<td class="min-w-75px w-150px align-top">{{$data->created_at->format('d/m/y H:i:s')}}</td>
|
||||
<!--begin::Action=-->
|
||||
@foreach ($monthlyUpdate as $data)
|
||||
<tr>
|
||||
<!--begin::Checkbox-->
|
||||
<td class="min-w-25px w-100px">{{ $loop->iteration }}</td>
|
||||
<td class="min-w-75px w-100px align-top">{{ $data->total_value_of_the_property }}</td>
|
||||
<td class="min-w-75px w-100px align-top">{{ $data->investment_value }}</td>
|
||||
<td class="min-w-75px w-100px align-top">{{ $data->investment_date }}</td>
|
||||
<td class="min-w-75px w-150px align-top">{{ $data->total_gross_interest }}</td>
|
||||
<td class="min-w-75px w-150px align-top">{{ $data->created_at->format('d/m/y H:i:s') }}</td>
|
||||
<!--begin::Action=-->
|
||||
|
||||
<td class="text-end d-flex align-items-center justify-content-around">
|
||||
<td class="text-end d-flex align-items-center justify-content-around">
|
||||
|
||||
<a class="view_icon" data-bs-toggle="modal" data-bs-target="#fractional_real_estate_view" data-id="{{$data->id}}" data-custom-id="{{$data->custom_id}}" data-total-value-of-the-property="{{$data->total_value_of_the_property}}" data-investment-value="{{$data->investment_value}}" data-investment-date="{{$data->investment_date}}" data-total-gross-interest="{{$data->total_gross_interest}}" data-tds="{{$data->tds}}" data-total-net-interest="{{$data->total_net_interest}}" data-gross-entery-yield-in-pct="{{$data->gross_entry_yield_in_pct}}" data-target-return-in-pct="{{$data->target_return_in_pct}}" data-absolute-return-till-date="{{$data->absolute_return_till_date}}" data-absolute-return-till-date-in-pct="{{$data->absolute_return_till_date_in_pct}}" data-bs-target="#fractional_real_estate_view">
|
||||
<a class="view_icon" data-bs-toggle="modal" data-bs-target="#fractional_real_estate_view"
|
||||
data-id="{{ $data->id }}" data-custom-id="{{ $data->custom_id }}"
|
||||
data-total-value-of-the-property="{{ $data->total_value_of_the_property }}"
|
||||
data-investment-value="{{ $data->investment_value }}"
|
||||
data-investment-date="{{ $data->investment_date }}"
|
||||
data-total-gross-interest="{{ $data->total_gross_interest }}" data-tds="{{ $data->tds }}"
|
||||
data-total-net-interest="{{ $data->total_net_interest }}"
|
||||
data-gross-entery-yield-in-pct="{{ $data->gross_entry_yield_in_pct }}"
|
||||
data-target-return-in-pct="{{ $data->target_return_in_pct }}"
|
||||
data-absolute-return-till-date="{{ $data->absolute_return_till_date }}"
|
||||
data-absolute-return-till-date-in-pct="{{ $data->absolute_return_till_date_in_pct }}"
|
||||
data-bs-target="#fractional_real_estate_view">
|
||||
|
||||
<i class="fa-regular fa-eye"></i>
|
||||
</a>
|
||||
<i class="fa-regular fa-eye"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<a class="action_icon" data-bs-toggle="modal" data-bs-target="#fractional_real_estate_edit_data" data-eid="{{$data->id}}" data-ecustom-id="{{$data->custom_id}}" data-etotal-value-of-the-property="{{$data->getRawOriginal('total_value_of_the_property')}}" data-einvestment-value="{{$data->getRawOriginal('investment_value')}}" data-einvestment-date="{{$data->investment_date}}" data-etotal-gross-interest="{{$data->total_gross_interest}}" data-etds="{{$data->tds}}" data-etotal-net-interest="{{$data->total_net_interest}}" data-egross-entery-yield-in-pct="{{$data->gross_entry_yield_in_pct}}" data-etarget-return-in-pct="{{$data->target_return_in_pct}}" data-eabsolute-return-till-date="{{$data->getRawOriginal('absolute_return_till_date')}}" data-eabsolute-return-till-date-in-pct="{{$data->absolute_return_till_date_in_pct}}" data-bs-target="#fractional_real_estate_edit">
|
||||
<i class="fa-solid fa-pen-to-square"></i>
|
||||
<a class="action_icon" data-bs-toggle="modal" data-bs-target="#fractional_real_estate_edit_data"
|
||||
data-eid="{{ $data->id }}" data-ecustom-id="{{ $data->custom_id }}"
|
||||
data-etotal-value-of-the-property="{{ $data->getRawOriginal('total_value_of_the_property') }}"
|
||||
data-einvestment-value="{{ $data->getRawOriginal('investment_value') }}"
|
||||
data-einvestment-date="{{ $data->investment_date }}"
|
||||
data-etotal-gross-interest="{{ $data->total_gross_interest }}" data-etds="{{ $data->tds }}"
|
||||
data-etotal-net-interest="{{ $data->total_net_interest }}"
|
||||
data-egross-entery-yield-in-pct="{{ $data->gross_entry_yield_in_pct }}"
|
||||
data-etarget-return-in-pct="{{ $data->target_return_in_pct }}"
|
||||
data-eabsolute-return-till-date="{{ $data->getRawOriginal('absolute_return_till_date') }}"
|
||||
data-eabsolute-return-till-date-in-pct="{{ $data->absolute_return_till_date_in_pct }}"
|
||||
data-bs-target="#fractional_real_estate_edit">
|
||||
<i class="fa-solid fa-pen-to-square"></i>
|
||||
|
||||
|
||||
</a>
|
||||
</a>
|
||||
|
||||
{{-- <a class="actions_icon" data-bs-toggle="tooltip" data-bs-custom-class="tooltip-inverse" data-bs-placement="top" title="Active and Inactive">
|
||||
{{-- <a class="actions_icon" data-bs-toggle="tooltip" data-bs-custom-class="tooltip-inverse" data-bs-placement="top" title="Active and Inactive">
|
||||
<div class="on-off-toggle">
|
||||
<input class="on-off-toggle__input is_status" type="checkbox" id="bopis{{$data->id}}" data-id="{{$data->id}}" data-custom-id="{{$data->custom_id}}" value="{{$data->status}}" {{$data->status == '1' ? 'checked' : ''}} />
|
||||
<label for="bopis{{$data->id}}" class="on-off-toggle__slider"></label>
|
||||
</div>
|
||||
</a> --}}
|
||||
<a class="update_status" data-bs-toggle="tooltip" data-bs-custom-class="tooltip-inverse"
|
||||
<a class="update_status" data-bs-toggle="tooltip" data-bs-custom-class="tooltip-inverse"
|
||||
data-bs-placement="top" title="Active and Inactive">
|
||||
<label
|
||||
class="form-check form-switch form-switch-sm form-check-custom form-check-solid flex-stack">
|
||||
<input class="form-check-input is_status" type="checkbox" data-custom-id="{{$data->custom_id}}" data-id="{{ $data->id }}"
|
||||
<input class="form-check-input is_status" type="checkbox"
|
||||
data-custom-id="{{ $data->custom_id }}" data-id="{{ $data->id }}"
|
||||
value="{{ $data->status }}" {{ $data->status == '1' ? 'checked' : '' }} />
|
||||
</label>
|
||||
</a>
|
||||
</td>
|
||||
<!--end::Action=-->
|
||||
</tr>
|
||||
</td>
|
||||
<!--end::Action=-->
|
||||
</tr>
|
||||
@endforeach
|
||||
<!--end::Table row-->
|
||||
</tbody>
|
||||
@@ -77,9 +100,12 @@
|
||||
<div class="btn btn-sm btn-icon btn-active-color-primary" data-bs-dismiss="modal">
|
||||
<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
|
||||
<span class="svg-icon svg-icon-1">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
|
||||
<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1"
|
||||
transform="rotate(-45 6 17.3137)" fill="currentColor" />
|
||||
<rect x="7.41422" y="6" width="16" height="2" rx="1"
|
||||
transform="rotate(45 7.41422 6)" fill="currentColor" />
|
||||
</svg>
|
||||
</span>
|
||||
<!--end::Svg Icon-->
|
||||
@@ -95,69 +121,69 @@
|
||||
<div class="card-body p-0 d-flex">
|
||||
<!--end::Table-->
|
||||
<div class="row mb-6">
|
||||
<div class="col-md-12 fv-row">
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Custom ID</label>
|
||||
<div class="form-control form-control-solid "><span id="custom_id"></span></div>
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Total Net Interest</label>
|
||||
<div class="form-control form-control-solid "><span id="total_net_interest"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Total value of the property </label>
|
||||
<div class="form-control form-control-solid "><span id="totalvalue_of_the_property"></span></div>
|
||||
<div class="form-control form-control-solid "><span
|
||||
id="totalvalue_of_the_property"></span></div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 fv-row">
|
||||
<div class="col-md-6 fv-row ">
|
||||
<label class="required fs-6 fw-semibold mb-2">Gross Entery Yeild In PCT</label>
|
||||
<div class="form-control form-control-solid "><span
|
||||
id="gross_entery_yeild_in_pct"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2"> Investment value</label>
|
||||
<div class="form-control form-control-solid "><span id="investment_value"></span></div>
|
||||
<div class="form-control form-control-solid "><span id="investment_value"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Target Return In PCT</label>
|
||||
<div class="form-control form-control-solid "><span id="target_return_in_pct"></span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Investment Date</label>
|
||||
<div class="form-control form-control-solid "><span id="investment_Date"></span></div>
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Total Gross Interest</label>
|
||||
<div class="form-control form-control-solid "><span id="total_gross_interest"></span></div>
|
||||
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Absolute Return Till Date</label>
|
||||
<div class="form-control form-control-solid "><span
|
||||
id="absolute_return_till_date"></span></div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Total Gross Interest</label>
|
||||
<div class="form-control form-control-solid "><span id="total_gross_interest"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Tds</label>
|
||||
<div class="form-control form-control-solid "><span id="tds"></span></div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Absolute Return Till Date In PCT</label>
|
||||
<div class="form-control form-control-solid "><span
|
||||
id="absolute_return_till_date_in_pct"></span></div>
|
||||
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
{{-- @endforeach --}}
|
||||
</div>
|
||||
|
||||
<div class="row mb-6 p-2">
|
||||
|
||||
<div class="col-md-12 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Total Net Interest</label>
|
||||
<div class="form-control form-control-solid "><span id="total_net_interest"></span></div>
|
||||
</div>
|
||||
<div class="col-md-12 fv-row ">
|
||||
<label class="required fs-6 fw-semibold mb-2">Gross Entery Yeild In PCT</label>
|
||||
<div class="form-control form-control-solid "><span id="gross_entery_yeild_in_pct"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Target Return In PCT</label>
|
||||
<div class="form-control form-control-solid "><span id="target_return_in_pct"></span></div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Absolute Return Till Date</label>
|
||||
<div class="form-control form-control-solid "><span id="absolute_return_till_date"></span></div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Absolute Return Till Date In PCT</label>
|
||||
<div class="form-control form-control-solid "><span id="absolute_return_till_date_in_pct"></span></div>
|
||||
|
||||
</div>
|
||||
<!--<div class="col-md-12 fv-row">-->
|
||||
<!-- <label class="required fs-6 fw-semibold mb-2">Statement Reports</label>-->
|
||||
<!-- <div class="form-control form-control-solid "><span id="statement_report"></span></div>-->
|
||||
|
||||
<!--</div>-->
|
||||
<!--end::Col-->
|
||||
|
||||
</div>
|
||||
{{-- <div class="row mb-10 ">
|
||||
<div class="col-md-12 fv-row mb-7">
|
||||
<label class="required fs-6 fw-semibold mb-2">Partner Name</label>
|
||||
@@ -196,9 +222,12 @@
|
||||
<div class="btn btn-sm btn-icon btn-active-color-primary" data-bs-dismiss="modal">
|
||||
<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
|
||||
<span class="svg-icon svg-icon-1">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
|
||||
<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1"
|
||||
transform="rotate(-45 6 17.3137)" fill="currentColor" />
|
||||
<rect x="7.41422" y="6" width="16" height="2" rx="1"
|
||||
transform="rotate(45 7.41422 6)" fill="currentColor" />
|
||||
</svg>
|
||||
</span>
|
||||
<!--end::Svg Icon-->
|
||||
@@ -209,74 +238,89 @@
|
||||
<!--begin::Modal body-->
|
||||
<div class="modal-body px-lg-10">
|
||||
<!--begin::Stepper-->
|
||||
<div class="stepper stepper-pills stepper-column d-flex flex-column flex-xl-row flex-row-fluid" id="kt_modal_create_app_stepper">
|
||||
<div class="stepper stepper-pills stepper-column d-flex flex-column flex-xl-row flex-row-fluid"
|
||||
id="kt_modal_create_app_stepper">
|
||||
<!--begin::Content-->
|
||||
<form id="kt_modal_new_target_form_edits" class="form pb-0" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<div class="card-body p-0 d-flex">
|
||||
<div class="row">
|
||||
<div class="col-md-12 fv-row" hidden>
|
||||
<div class="col-md-6 fv-row" hidden>
|
||||
<label class="required fs-6 fw-semibold mb-2"> ID</label>
|
||||
<input class="form-control form-control-solid " name="id" type="hidden" id="e_id" />
|
||||
<input class="form-control form-control-solid " name="id" type="hidden"
|
||||
id="e_id" />
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Total Net Interest</label>
|
||||
<input class="form-control form-control-solid " name="total_net_interest"
|
||||
type="text" id="etotal_net_interest" />
|
||||
</div>
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Custom ID</label>
|
||||
<input class="form-control form-control-solid " disabled name="custom_id" type="text" id="ecustom_id" />
|
||||
<input class="form-control form-control-solid " disabled name="custom_id"
|
||||
type="text" id="ecustom_id" />
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<div class="col-md-6 fv-row ">
|
||||
<label class="required fs-6 fw-semibold mb-2">Gross Entry Yield In PCT</label>
|
||||
<input class="form-control form-control-solid " name="gross_enter_yield_in_pct"
|
||||
type="text" id="egross_entery_yeild_in_pct" />
|
||||
</div>
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Total Value Of The Property</label>
|
||||
<input class="form-control form-control-solid " name="total_value_of_the_property" type="text" id="etotalvalue_of_the_property" />
|
||||
<input class="form-control form-control-solid " name="total_value_of_the_property"
|
||||
type="text" id="etotalvalue_of_the_property" />
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Target Return In PCT</label>
|
||||
<input class="form-control form-control-solid " name="target_return_in_pct"
|
||||
type="text" id="etarget_return_in_pct" />
|
||||
</div>
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Investment Value</label>
|
||||
|
||||
<input class="form-control form-control-solid " name="investment_value" type="text" id="einvestment_value" />
|
||||
<input class="form-control form-control-solid " name="investment_value"
|
||||
type="text" id="einvestment_value" />
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Absolute Return Till Date</label>
|
||||
<input class="form-control form-control-solid " name="absolute_return_till_date"
|
||||
type="text" id="eabsolute_return_till_date" />
|
||||
|
||||
</div>
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Investment Date</label>
|
||||
|
||||
<input class="form-control form-control-solid " type="date" name="investment_date" id="einvestment_Date" />
|
||||
<input class="form-control form-control-solid " type="date"
|
||||
name="investment_date" id="einvestment_Date" />
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Absolute Return Till Date In
|
||||
PCT</label>
|
||||
<input class="form-control form-control-solid "
|
||||
name="absolute_return_till_date_in_pct" type="text"
|
||||
id="ebsolute_return_till_date_in_pct" />
|
||||
</div>
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Total Gross Interest</label>
|
||||
|
||||
<input class="form-control form-control-solid " name="total_gross_interest" type="text" id="etotal_gross_interest" />
|
||||
<input class="form-control form-control-solid " name="total_gross_interest"
|
||||
type="text" id="etotal_gross_interest" />
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">TDS</label>
|
||||
<input class="form-control form-control-solid " name="tds" type="text" id="etds" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-6 p-2">
|
||||
<div class="col-md-12 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Total Net Interest</label>
|
||||
<input class="form-control form-control-solid " name="total_net_interest" type="text" id="etotal_net_interest" />
|
||||
</div>
|
||||
<div class="col-md-12 fv-row ">
|
||||
<label class="required fs-6 fw-semibold mb-2">Gross Entry Yield In PCT</label>
|
||||
<input class="form-control form-control-solid " name="gross_enter_yield_in_pct" type="text" id="egross_entery_yeild_in_pct" />
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Target Return In PCT</label>
|
||||
<input class="form-control form-control-solid " name="target_return_in_pct" type="text" id="etarget_return_in_pct" />
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Absolute Return Till Date</label>
|
||||
<input class="form-control form-control-solid " name="absolute_return_till_date" type="text" id="eabsolute_return_till_date" />
|
||||
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Absolute Return Till Date In PCT</label>
|
||||
<input class="form-control form-control-solid " name="absolute_return_till_date_in_pct" type="text" id="ebsolute_return_till_date_in_pct" />
|
||||
</div>
|
||||
<div class="col-md-12 fv-row">
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">Statement Reports</label>
|
||||
<input class="form-control form-control-solid " name="statement_reports[]" type="file" id="estatement_report" multiple />
|
||||
<input class="form-control form-control-solid " name="statement_reports[]"
|
||||
type="file" id="estatement_report" multiple />
|
||||
<div id="statement_reports_container">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 fv-row">
|
||||
<label class="required fs-6 fw-semibold mb-2">TDS</label>
|
||||
<input class="form-control form-control-solid " name="tds" type="text"
|
||||
id="etds" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="submit_btn d-flex justify-content-center mt-15">
|
||||
<button type="submit" id='edit_fractional' class="btn btn-light-dark"> Update </button>
|
||||
@@ -294,46 +338,48 @@
|
||||
<!--end::Modal dialog-->
|
||||
</div>
|
||||
@section('scripts')
|
||||
<script>
|
||||
$('#manageCommission').DataTable();
|
||||
<script>
|
||||
$('#manageCommission').DataTable();
|
||||
|
||||
$(document).ready(function() {
|
||||
// alert("hello");
|
||||
$('.view_icon').click(function() {
|
||||
$('#custom_id').html($(this).data("custom-id"));
|
||||
$('#totalvalue_of_the_property').html($(this).data("total-value-of-the-property"));
|
||||
$('#investment_value').html($(this).data("investment-value"));
|
||||
$('#investment_Date').html($(this).data("investment-date"));
|
||||
$('#total_gross_interest').html($(this).data("total-gross-interest"));
|
||||
$('#tds').html($(this).data("tds"));
|
||||
$('#total_net_interest').html($(this).data("total-net-interest"));
|
||||
$('#gross_entery_yeild_in_pct').html($(this).data("gross-entery-yield-in-pct"));
|
||||
$('#target_return_in_pct').html($(this).data("target-return-in-pct"));
|
||||
$('#absolute_return_till_date').html($(this).data("absolute-return-till-date"));
|
||||
$('#absolute_return_till_date_in_pct').html($(this).data("absolute-return-till-date-in-pct"));
|
||||
$('#statement_report').html($(this).data("statement-reports"));
|
||||
})
|
||||
});
|
||||
$(document).ready(function() {
|
||||
// alert("hello");
|
||||
$('.action_icon').click(function() {
|
||||
var id = $(this).data("eid");
|
||||
$('#e_id').val($(this).data("eid"));
|
||||
$('#ecustom_id').val($(this).data("ecustom-id"));
|
||||
$('#etotalvalue_of_the_property').val($(this).data("etotal-value-of-the-property"));
|
||||
$('#einvestment_value').val($(this).data("einvestment-value"));
|
||||
$('#einvestment_Date').val($(this).data("einvestment-date"));
|
||||
$('#etotal_gross_interest').val($(this).data("etotal-gross-interest"));
|
||||
$('#etds').val($(this).data("etds"));
|
||||
$('#etotal_net_interest').val($(this).data("etotal-net-interest"));
|
||||
$('#egross_entery_yeild_in_pct').val($(this).data("egross-entery-yield-in-pct"));
|
||||
$('#etarget_return_in_pct').val($(this).data("etarget-return-in-pct"));
|
||||
$('#eabsolute_return_till_date').val($(this).data("eabsolute-return-till-date"));
|
||||
$('#ebsolute_return_till_date_in_pct').val($(this).data("eabsolute-return-till-date-in-pct"));
|
||||
// $('#estatement_report').val($(this).data("estatement-reports"));
|
||||
$(document).ready(function() {
|
||||
// alert("hello");
|
||||
$('.view_icon').click(function() {
|
||||
$('#custom_id').html($(this).data("custom-id"));
|
||||
$('#totalvalue_of_the_property').html($(this).data("total-value-of-the-property"));
|
||||
$('#investment_value').html($(this).data("investment-value"));
|
||||
$('#investment_Date').html($(this).data("investment-date"));
|
||||
$('#total_gross_interest').html($(this).data("total-gross-interest"));
|
||||
$('#tds').html($(this).data("tds"));
|
||||
$('#total_net_interest').html($(this).data("total-net-interest"));
|
||||
$('#gross_entery_yeild_in_pct').html($(this).data("gross-entery-yield-in-pct"));
|
||||
$('#target_return_in_pct').html($(this).data("target-return-in-pct"));
|
||||
$('#absolute_return_till_date').html($(this).data("absolute-return-till-date"));
|
||||
$('#absolute_return_till_date_in_pct').html($(this).data(
|
||||
"absolute-return-till-date-in-pct"));
|
||||
$('#statement_report').html($(this).data("statement-reports"));
|
||||
})
|
||||
});
|
||||
$(document).ready(function() {
|
||||
// alert("hello");
|
||||
$('.action_icon').click(function() {
|
||||
var id = $(this).data("eid");
|
||||
$('#e_id').val($(this).data("eid"));
|
||||
$('#ecustom_id').val($(this).data("ecustom-id"));
|
||||
$('#etotalvalue_of_the_property').val($(this).data("etotal-value-of-the-property"));
|
||||
$('#einvestment_value').val($(this).data("einvestment-value"));
|
||||
$('#einvestment_Date').val($(this).data("einvestment-date"));
|
||||
$('#etotal_gross_interest').val($(this).data("etotal-gross-interest"));
|
||||
$('#etds').val($(this).data("etds"));
|
||||
$('#etotal_net_interest').val($(this).data("etotal-net-interest"));
|
||||
$('#egross_entery_yeild_in_pct').val($(this).data("egross-entery-yield-in-pct"));
|
||||
$('#etarget_return_in_pct').val($(this).data("etarget-return-in-pct"));
|
||||
$('#eabsolute_return_till_date').val($(this).data("eabsolute-return-till-date"));
|
||||
$('#ebsolute_return_till_date_in_pct').val($(this).data(
|
||||
"eabsolute-return-till-date-in-pct"));
|
||||
// $('#estatement_report').val($(this).data("estatement-reports"));
|
||||
|
||||
// Ajax request
|
||||
$.ajax({
|
||||
// Ajax request
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
dataType: "json",
|
||||
url: "{{ route('fecth-statement-reports-fre') }}",
|
||||
@@ -346,51 +392,86 @@
|
||||
var fileList = $('<ul>');
|
||||
statementReports.forEach(function(fileName) {
|
||||
var listItem = $('<li>').text(fileName);
|
||||
var removeIcon = $('<span>').text('❌').addClass('remove-icon');
|
||||
removeIcon.data('id', id);
|
||||
removeIcon.click(function() {
|
||||
var id = $(this).data("id");
|
||||
var removedFileName = $(this).parent().text().trim();
|
||||
var index = removedFileName.indexOf('.pdf'); // Find the index of the file extension
|
||||
if (index !== -1) {
|
||||
removedFileName = removedFileName.substring(0, index + 4); // Include the file extension in the substring
|
||||
}
|
||||
var listItemToRemove = $(this).parent();
|
||||
Swal.fire({
|
||||
title: 'Are you sure you want to delete?',
|
||||
showDenyButton: false,
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Yes',
|
||||
cancelButtonText: 'No',
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
$.ajax({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
url: "{{ route('delete-statement-reports-fre') }}", // Adjust the route as needed
|
||||
type: "POST",
|
||||
data: {
|
||||
id: id,
|
||||
fileName: removedFileName
|
||||
},
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
toastr.success('Document deleted successfully');
|
||||
listItemToRemove.remove();
|
||||
setTimeout(() => {
|
||||
location.reload(); // Reload the page after successful deletion
|
||||
}, 1000);
|
||||
} else {
|
||||
toastr.error('Something went wrong! Please Try Again');
|
||||
}
|
||||
},
|
||||
error: function(xhr, textStatus, errorThrown) {
|
||||
toastr.error('Error: ' + textStatus);
|
||||
}
|
||||
});
|
||||
var removeIcon = $('<span>').text('❌').addClass(
|
||||
'remove-icon');
|
||||
removeIcon.data('id', id);
|
||||
removeIcon.click(function() {
|
||||
var id = $(this).data("id");
|
||||
var removedFileName = $(this).parent()
|
||||
.text().trim();
|
||||
var index = removedFileName.indexOf(
|
||||
'.pdf'
|
||||
); // Find the index of the file extension
|
||||
if (index !== -1) {
|
||||
removedFileName = removedFileName
|
||||
.substring(0, index +
|
||||
4
|
||||
); // Include the file extension in the substring
|
||||
}
|
||||
});
|
||||
var listItemToRemove = $(this).parent();
|
||||
Swal.fire({
|
||||
title: 'Are you sure you want to delete?',
|
||||
showDenyButton: false,
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Yes',
|
||||
cancelButtonText: 'No',
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
$.ajax({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $(
|
||||
'meta[name="csrf-token"]'
|
||||
)
|
||||
.attr(
|
||||
'content'
|
||||
)
|
||||
},
|
||||
url: "{{ route('delete-statement-reports-fre') }}", // Adjust the route as needed
|
||||
type: "POST",
|
||||
data: {
|
||||
id: id,
|
||||
fileName: removedFileName
|
||||
},
|
||||
success: function(
|
||||
response
|
||||
) {
|
||||
if (response
|
||||
.success
|
||||
) {
|
||||
toastr
|
||||
.success(
|
||||
'Document deleted successfully'
|
||||
);
|
||||
listItemToRemove
|
||||
.remove();
|
||||
setTimeout
|
||||
(() => {
|
||||
location
|
||||
.reload(); // Reload the page after successful deletion
|
||||
},
|
||||
1000
|
||||
);
|
||||
} else {
|
||||
toastr
|
||||
.error(
|
||||
'Something went wrong! Please Try Again'
|
||||
);
|
||||
}
|
||||
},
|
||||
error: function(
|
||||
xhr,
|
||||
textStatus,
|
||||
errorThrown
|
||||
) {
|
||||
toastr
|
||||
.error(
|
||||
'Error: ' +
|
||||
textStatus
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
listItem.append(removeIcon);
|
||||
fileList.append(listItem);
|
||||
@@ -407,150 +488,149 @@
|
||||
"Error fetching statement reports. Please try again later.");
|
||||
}
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(document).on('click', '.is_status', function() {
|
||||
var status = $(this).val();
|
||||
var id = $(this).data('id');
|
||||
var custom_id = $(this).data('custom-id');
|
||||
$.ajax({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
type: 'POST',
|
||||
url: "{{route('update-Fractional-RealEstat-eStatus-status')}}",
|
||||
data: {
|
||||
'status': status,
|
||||
'id': id,
|
||||
'custom_id': custom_id,
|
||||
},
|
||||
success: function(data) {
|
||||
// window.location.href = 'manage_blog';
|
||||
if (data.status == 200) {
|
||||
toastr.options = {
|
||||
"progressBar": true,
|
||||
"closeButton": true,
|
||||
}
|
||||
toastr.success(data.message);
|
||||
setTimeout(() => {
|
||||
location.reload();
|
||||
}, 2000);
|
||||
}
|
||||
if(data.status == 400)
|
||||
{
|
||||
toastr.warning(data.message);
|
||||
setTimeout(() => {
|
||||
location.reload();
|
||||
}, 4000);
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
// $('#edit_fractional').click(function() {
|
||||
// alert("ascds");
|
||||
|
||||
$('#kt_modal_new_target_form_edits').validate({
|
||||
ignore: [],
|
||||
debug: false,
|
||||
rules: {
|
||||
toatal_value_of_the_property: {
|
||||
required: true,
|
||||
},
|
||||
investment_value: {
|
||||
required: true,
|
||||
},
|
||||
investment_date: {
|
||||
required: true,
|
||||
},
|
||||
total_gross_interest: {
|
||||
required: true,
|
||||
},
|
||||
tds: {
|
||||
required: true,
|
||||
},
|
||||
total_net_interest: {
|
||||
required: true,
|
||||
},
|
||||
gross_enter_yield_in_pct: {
|
||||
required: true,
|
||||
},
|
||||
target_return_in_pct: {
|
||||
required: true,
|
||||
},
|
||||
absolute_return_till_date: {
|
||||
required: true,
|
||||
},
|
||||
absolute_return_till_date_in_pct: {
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
message: {
|
||||
|
||||
toatal_value_of_the_property: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
|
||||
investment_value: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
investment_date: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
total_gross_interest: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
tds: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
total_net_interest: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
gross_enter_yield_in_pct: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
target_return_in_pct: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
absolute_return_till_date: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
absolute_return_till_date_in_pct: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
var formData = new FormData(form);
|
||||
|
||||
$.ajax({
|
||||
headers: {
|
||||
$(document).on('click', '.is_status', function() {
|
||||
var status = $(this).val();
|
||||
var id = $(this).data('id');
|
||||
var custom_id = $(this).data('custom-id');
|
||||
$.ajax({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
url: "{{route('update-fractional-real-estate-monthly-update')}}",
|
||||
type: "POST",
|
||||
data: formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
if (result.status == 'success') {
|
||||
$("#kt_modal_new_target_form_edits").modal("hide");
|
||||
toastr.success(result.message)
|
||||
location.reload();
|
||||
|
||||
|
||||
|
||||
},
|
||||
type: 'POST',
|
||||
url: "{{ route('update-Fractional-RealEstat-eStatus-status') }}",
|
||||
data: {
|
||||
'status': status,
|
||||
'id': id,
|
||||
'custom_id': custom_id,
|
||||
},
|
||||
success: function(data) {
|
||||
// window.location.href = 'manage_blog';
|
||||
if (data.status == 200) {
|
||||
toastr.options = {
|
||||
"progressBar": true,
|
||||
"closeButton": true,
|
||||
}
|
||||
toastr.success(data.message);
|
||||
setTimeout(() => {
|
||||
location.reload();
|
||||
}, 2000);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (data.status == 400) {
|
||||
toastr.warning(data.message);
|
||||
setTimeout(() => {
|
||||
location.reload();
|
||||
}, 4000);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
// });
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
// $('#edit_fractional').click(function() {
|
||||
// alert("ascds");
|
||||
|
||||
$('#kt_modal_new_target_form_edits').validate({
|
||||
ignore: [],
|
||||
debug: false,
|
||||
rules: {
|
||||
toatal_value_of_the_property: {
|
||||
required: true,
|
||||
},
|
||||
investment_value: {
|
||||
required: true,
|
||||
},
|
||||
investment_date: {
|
||||
required: true,
|
||||
},
|
||||
total_gross_interest: {
|
||||
required: true,
|
||||
},
|
||||
tds: {
|
||||
required: true,
|
||||
},
|
||||
total_net_interest: {
|
||||
required: true,
|
||||
},
|
||||
gross_enter_yield_in_pct: {
|
||||
required: true,
|
||||
},
|
||||
target_return_in_pct: {
|
||||
required: true,
|
||||
},
|
||||
absolute_return_till_date: {
|
||||
required: true,
|
||||
},
|
||||
absolute_return_till_date_in_pct: {
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
message: {
|
||||
|
||||
toatal_value_of_the_property: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
|
||||
investment_value: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
investment_date: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
total_gross_interest: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
tds: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
total_net_interest: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
gross_enter_yield_in_pct: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
target_return_in_pct: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
absolute_return_till_date: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
absolute_return_till_date_in_pct: {
|
||||
required: "Please enter the field",
|
||||
},
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
var formData = new FormData(form);
|
||||
|
||||
$.ajax({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
url: "{{ route('update-fractional-real-estate-monthly-update') }}",
|
||||
type: "POST",
|
||||
data: formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
if (result.status == 'success') {
|
||||
$("#kt_modal_new_target_form_edits").modal("hide");
|
||||
toastr.success(result.message)
|
||||
location.reload();
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
// });
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user