fixing admin chat

This commit is contained in:
Shailesh-1981
2024-06-06 16:10:23 +05:30
9 changed files with 46 additions and 35 deletions

View File

@@ -34,4 +34,11 @@ class AlternativeInvestmentFund extends Model
// dd($value);
return $value == null ? '--' : $value;
}
public function getIntialDrawdownAttribute($value)
{
// dd($);
return $value == null ? '--' : $value.' %';
// return $value;
}
}

View File

@@ -44,6 +44,10 @@
<label class="fs-6 fw-semibold form-label mt-3">
<span class="required">Commission Type</span>
</label>
@if($product->commission_type)
<input type="text" class="form-control form-control-solid"
value="{{ $product->commission_type }}" name="commission_type" id="commission_type" readonly>
@else
<select class="form-control form-control-solid" id="commission_type"
name="commission_type" id="">
<option value="">Please Select Commission Type</option>
@@ -57,6 +61,7 @@
{{ $product->commission_type == 'Hybrid Structure' ? 'selected' : null }}>
Hybrid Structure</option>
</select>
@endif
</div>
<div
class="col-md-6 upfront-commission-input {{ $product->commission_type == 'One-Time Commission' || $product->commission_type == 'Hybrid Structure' ? '' : 'd-none' }}">

View File

@@ -43,6 +43,7 @@
<input type="text" class="form-control form-control-solid"
value="{{ $product->profit_sharing }}" readonly>
</div>
@if($product->commission_type == 'One-Time Commission' || $product->commission_type == 'Hybrid Structure' || $product->commission_type == null)
<div class="col-md-6">
<label class="fs-6 fw-semibold form-label mt-3">
<span class="">Upfront Rate</span>
@@ -50,6 +51,8 @@
<input type="text" class="form-control form-control-solid"
value="{{ $product->upfront_rate }}" readonly>
</div>
@endif
@if($product->commission_type == 'Hybrid Structure' || $product->commission_type == 'Trail Commission' || $product->commission_type == null)
<div class="col-md-6">
<label class="fs-6 fw-semibold form-label mt-3">
<span class="">Trail Rate</span>
@@ -57,6 +60,7 @@
<input type="text" class="form-control form-control-solid"
value="{{ $product->trail_rate }}" readonly>
</div>
@endif
<div class="col-md-6">
<label class="fs-6 fw-semibold form-label mt-3">
<span class="">GST</span>
@@ -71,6 +75,7 @@
<input type="text" class="form-control form-control-solid"
value="{{ $product->tds }}" readonly>
</div>
@if($product->commission_type == 'Trail Commission' || $product->commission_type == 'Hybrid Structure' || $product->commission_type == null)
<div class="col-md-6">
<label class="fs-6 fw-semibold form-label mt-3">
<span class="">End Of Trail</span>
@@ -78,6 +83,7 @@
<input type="text" class="form-control form-control-solid"
value="{{ $product->end_of_trail }}" readonly>
</div>
@endif
</div>
</div>
</div>

View File

@@ -608,7 +608,7 @@
<!--begin::Input-->
<input type="text" class="form-control form-control-solid" name="tenure_from_final_date" placeholder='Enter Tenure From Final Date' value="{{$alternativeInvestmentFund->alternativeInvestmentFund->tenure_from_final_date}}" />
<input type="text" class="form-control form-control-solid" name="tenure_from_final_date" placeholder='Enter Tenure From Final Date' value="{{$alternativeInvestmentFund->alternativeInvestmentFund->getRawOriginal()['tenure_from_final_date']}}" />
<!--end::Input-->
@@ -740,7 +740,7 @@
<!--begin::Input-->
<input type="text" class="form-control form-control-solid" name="intial_drawdown" placeholder='Enter Initial Drawdown' value="{{$alternativeInvestmentFund->alternativeInvestmentFund->intial_drawdown}}" />
<input type="text" class="form-control form-control-solid" name="intial_drawdown" placeholder='Enter Initial Drawdown' value="{{$alternativeInvestmentFund->alternativeInvestmentFund->getRawOriginal()['intial_drawdown']}}" />
<!--end::Input-->

View File

@@ -294,7 +294,9 @@
<p>Accepting Overseas investment?</p>
<span>{{ $angelFund->accepting_overseas_investment ?? '-' }}</span>
</div>
</div>
{{-- @dd($productData->involved_in_short_selling); --}}
<div class="tables row">
<div class="col-md-6" style="{{ $productData->involved_in_short_selling ? '' : 'display:none;' }}">
<p>Involved In Short Selling</p>
<span>{{ $productData->involved_in_short_selling }}</span>
@@ -304,6 +306,8 @@
<p>Trading Strategy</p>
<span>{{ $productData->trading_strategy }}</span>
</div>
</div>
<div class="tables row">
<div class="col-md-6" style="{{ $productData->focused_funds ? '' : 'display:none;' }}">
<p>Focused Funds</p>
@@ -314,6 +318,8 @@
<p>Valuation Per Sector</p>
<span>{{ $productData->valuation_per_sector }}</span>
</div>
</div>
<div class="tables row">
<div class="col-md-6" style="{{ $productData->return_on_investment_irr_dpi_rvpi_tvpi ? '' : 'display:none;' }}">
<p>Return On Investment</p>
@@ -365,7 +371,7 @@
</div>
</div>
</div>
<div class="categeory">
{{-- <div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="tables">
<div>
@@ -374,7 +380,7 @@
</div>
</div>
</div>
</div>
</div> --}}
{{-- <div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="tables row">

View File

@@ -140,10 +140,9 @@
<p>Fund structure</p>
<span>{{ $infrastructureFund->fund_structure ?? '-' }}</span>
</div>
<div class="col-md-4">
<p>Fund strategy</p>
<span>{{ $infrastructureFund->fund_strategy ?? '-' }}</span>
</div>
{{-- <div class="col-md-4">
</div> --}}
</div>
{{-- <div class="btm-txt">
<p>Description</p>
@@ -151,6 +150,14 @@
</div> --}}
</div>
</div>
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="btm-txt">
<p>Fund strategy</p>
<span>{{ $infrastructureFund->fund_strategy ?? '-' }}</span>
</div>
</div>
</div>
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="btm-txt">
@@ -310,7 +317,7 @@
<span>{{ $infrastructureFund->other_expenses ?? '-' }}</span>
</div>
<div class="col-md-4">
<p>isin code</p>
<p>ISIN code</p>
<span>{{ $infrastructureFund->isin_code ?? '-' }}</span>
</div>
</div>
@@ -364,10 +371,10 @@
<p>Regions Covered (Geographical Locations covered by the fund)</p>
<span>{{ $infrastructureFund->regions_covered ?? '-' }}</span>
</div>
<div class="col-md-6">
{{-- <div class="col-md-6">
<p>company</p>
<span>{{ $infrastructureFund->company->company_name ?? '-' }}</span>
</div>
</div> --}}
</div>
</div>
</div>

View File

@@ -290,7 +290,7 @@
setTimeout(() => {
$('#successSubmitedModal').modal('hide');
window.location.href = "{{ route('profile_dashboard') }}"
}, 4000);
}, 8000);
}
if (result.status == 400) {
toastr.warning(result.message);

View File

@@ -210,7 +210,7 @@
setTimeout(() => {
$('#successSubmitedModal').modal('hide');
window.location.href = "{{ route('profile_dashboard') }}"
}, 4000);
}, 8000);
}
if (result.status == 400) {
toastr.warning(result.message);

View File

@@ -554,7 +554,7 @@
<h5>No notifications found</h5>
</div>
@endforelse
{{--
<li class="item list-item even">
Congratulations, Your investment(Cheryl Donovan) has
@@ -573,7 +573,7 @@
<p class="mb-0"><strong>4 hours ago</strong></p>
</li>
</li> --}}
</ul>
</li>
@@ -693,23 +693,3 @@
</div>
</div>
@section('scripts')
<script>
$('.read_notification').on('click', function() {
alert('test');
// id = $(this).data('id');
// $.ajax({
// url: "{{ route('user-read-notification') }}",
// type: 'get',
// data: {
// 'id': id
// },
// success: function(result) {
// if (result.status == 200) {
// }
// },
// });
});
</script>
@endsection