Merge pull request #172 from Ritikeshyadav/RitikeshFreeu
Ritikesh freeu
This commit is contained in:
@@ -149,7 +149,7 @@ class HomeController extends Controller
|
||||
if (!$checkUserKycStatus || $checkUserKycStatus->status != 'Approved') {
|
||||
if($checkUserKycStatus && $checkUserKycStatus->status != 'Approved')
|
||||
{
|
||||
return response()->json(['status' => 401, 'message' => "Your kyc under review. <br> <small>Please contact us at info@jerichoalternatives.in </small>"]);
|
||||
return response()->json(['status' => 401, 'message' => "Your KYC under review. <br> <small>Please contact us at info@jerichoalternatives.in </small>"]);
|
||||
}
|
||||
// else{
|
||||
// return response()->json(['status' => 401, 'message' => "Please complete your KYC"]);
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
title="Holding and Reedemed"> --}}
|
||||
<a class="action_icon hold_reedem" data-bs-toggle="tooltip"
|
||||
{{-- data-count="{{ $count }}" {{$data->products == null ? onclick="holdingStatus({{ $data->id }},'{{ $data->holding_status }}',{{ $count }})" }} onclick="holdingStatus({{ $data->id }},'{{ $data->holding_status }}',{{ $count }}, {{ $data->products == null ? 'null' : ($data->products->profit_sharing == null ? $data->products->id : $data->products->profit_sharing) }})" --}} data-count="{{ $count }}"
|
||||
onclick="holdingStatus({{ $data->id }},'{{ $data->holding_status }}',{{ $count }}, {{ $data->products == null ? 'null' : ($data->products->profit_sharing == null ? 'null' : $data->products->profit_sharing) }}, '{{ $data->custom_id }}','{{ $data->categories }}',{{ $data->products_id }})"
|
||||
onclick="holdingStatus({{ $data->id }},'{{ $data->holding_status }}',{{ $count }},{{ $data->products->profit_sharing ? (int)$data->products->profit_sharing : 'null' }}, '{{ $data->custom_id }}','{{ $data->categories }}',{{ $data->products_id }})"
|
||||
data-bs-custom-class="tooltip-inverse" data-bs-placement="top"
|
||||
title="Holding and Reedemed">
|
||||
<label
|
||||
@@ -892,8 +892,8 @@
|
||||
});
|
||||
|
||||
function holdingStatus(id, status, count = null, profitSharing, customId, categories, productId) {
|
||||
// alert(profitSharing)
|
||||
if (profitSharing <= 0 && status == 'Holding') {
|
||||
// alert(profitSharing);
|
||||
if (profitSharing >= 0 && status == 'Holding') {
|
||||
$('#id').val(id);
|
||||
$('#product_id').val(productId);
|
||||
$('#status').val(status);
|
||||
@@ -903,7 +903,7 @@
|
||||
$('#categories').val(categories);
|
||||
$('#exampleModalCenter').modal('show');
|
||||
}
|
||||
if (profitSharing == null || status == 'Reedemed') {
|
||||
if (status == 'Reedemed') {
|
||||
let text;
|
||||
status == 'Holding' ? text = 'redeem' : text = 'hold';
|
||||
Swal.fire({
|
||||
|
||||
Reference in New Issue
Block a user