Merge branch 'main' of https://github.com/Ritikeshyadav/my-freeu into HritikFreeu
This commit is contained in:
@@ -410,7 +410,7 @@ class ManageFreeUInvestmentController extends Controller
|
||||
3 => ['id' => Category::GlobalPrivateEquityFundId, 'file' => 'InternationalPrivateEquityFundTemplate'],
|
||||
4 => ['id' => Category::GlobalVentureDebtId, 'file' => 'RealEstateInvestmentTrustsTemplate'],
|
||||
5 => ['id' => Category::GlobalHedgeFundId, 'file' => 'InternationalHedgeFundTemplate'],
|
||||
6 => ['id' => Category::GlobalPrivateCreditFundId, 'file' => 'PrivateCreditTemplate'],
|
||||
6 => ['id' => Category::GlobalPrivateCreditFundId, 'file' => 'InternationalPrivateCreditFundTemplate'],
|
||||
];
|
||||
|
||||
if (!array_key_exists($id, $exchangeData)) {
|
||||
|
||||
@@ -471,6 +471,17 @@ class AlternativeInvestmentFundController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function longOnlyEquityFundAllData($type = 'Open')
|
||||
{
|
||||
try {
|
||||
return (new test(Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies')->longOnlyEquityFund()->active()->get()))
|
||||
->response()
|
||||
->setStatusCode(200);
|
||||
} catch (\Exception $e) {
|
||||
return response()->json(['message' => $e->getMessage()], 400);
|
||||
}
|
||||
}
|
||||
|
||||
public function longOnlyEquityFundData($slug)
|
||||
{
|
||||
try {
|
||||
@@ -482,6 +493,28 @@ class AlternativeInvestmentFundController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function privateCreditFundAllData($type = 'Open')
|
||||
{
|
||||
try {
|
||||
return (new test(Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies')->privateCreditFund()->active()->get()))
|
||||
->response()
|
||||
->setStatusCode(200);
|
||||
} catch (\Exception $e) {
|
||||
return response()->json(['message' => $e->getMessage()], 400);
|
||||
}
|
||||
}
|
||||
|
||||
public function privateCreditFundData($slug)
|
||||
{
|
||||
try {
|
||||
return (new LongOnlyEquityResource(AlternativeInvestmentFund::where('slug', $slug)->first()))
|
||||
->response()
|
||||
->setStatusCode(200);
|
||||
} catch (\Exception $e) {
|
||||
return response()->json(['message' => $e->getMessage()], 400);
|
||||
}
|
||||
}
|
||||
|
||||
public function pipeAllData($type = 'Open')
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -5,16 +5,40 @@ namespace App\Http\Controllers;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Admin\ManageFreeUInvestments\FractionalRealEstateController as FractionalRealEstateFrontendController;
|
||||
use App\Models\Product;
|
||||
use App\Models\Fund;
|
||||
use App\Http\Resources\FractionalRealEstate as test;
|
||||
|
||||
class GlobalPrivateCreditController extends Controller
|
||||
{
|
||||
public function getGlobalPrivateCreditFundPage()
|
||||
{
|
||||
// dd(Product::has('funds')->with('funds')->funds()->globalPrivateCreditFund()->open()->active()->latest()->get());
|
||||
$learnMore = (new FractionalRealEstateFrontendController)->globalPCFQuestionAndAnswer()->getData();
|
||||
return view('Frontend.Pages.dummy.global-private-credit',[
|
||||
'learnMore'=>$learnMore,
|
||||
'openGPCF'=> Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies','categorys')->globalPrivateCreditFund()->open()->active()->latest()->get(),
|
||||
'resaleGPCF'=> Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies','categorys')->globalPrivateCreditFund()->resale()->active()->latest()->get(),
|
||||
return view('Frontend.Pages.dummy.global-private-credit', [
|
||||
'learnMore' => $learnMore,
|
||||
'openGPCF' => Product::has('funds')->with('funds')->funds()->globalPrivateCreditFund()->open()->active()->latest()->get(),
|
||||
// 'resaleGPCF' => Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies', 'categorys')->globalPrivateCreditFund()->resale()->active()->latest()->get(),
|
||||
'resaleGPCF' => Product::has('funds')->with('funds')->funds()->globalPrivateCreditFund()->resale()->active()->latest()->get(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function getGlobalPrivateCreditFundProduct($slug)
|
||||
{
|
||||
$ventureCapitalFund = Fund::where('slug', $slug)->first();
|
||||
$productData = Fund::where('slug', '=', $slug)->first();
|
||||
$productData = Product::where('id', '=', $productData->products_id)->first();
|
||||
// dd($ventureCapitalFund);
|
||||
return view('Frontend.Pages.venture-capital-funds.product', compact('ventureCapitalFund', 'productData'));
|
||||
}
|
||||
|
||||
public function privateCreditAllData($type)
|
||||
{
|
||||
try {
|
||||
return (new test(Product::has('funds')->with('funds')->where('type', $type)->funds()->globalPrivateCreditFunds()->get()))
|
||||
->response()
|
||||
->setStatusCode(200);
|
||||
} catch (\Exception $e) {
|
||||
return response()->json(['message' => $e->getMessage()], 400);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,6 +74,8 @@ class FundImport implements ToCollection, WithHeadingRow
|
||||
$init = 18;
|
||||
} else if($this->category_id == Category::GlobalVentureDebtId){
|
||||
$init = 18;
|
||||
} else if($this->category_id == Category::GlobalPrivateCreditFundId){
|
||||
$init = 18;
|
||||
}
|
||||
$returns = array();
|
||||
|
||||
@@ -106,7 +108,7 @@ class FundImport implements ToCollection, WithHeadingRow
|
||||
'ytd' => $row['ytd'],
|
||||
'year1_return' => $row['1_year_return'],
|
||||
'year3_return' => $row['3_year_return'],
|
||||
'data_as_on' => $row['data_as_on']
|
||||
'data_as_on' => $row['data_as_on'] ?? null,
|
||||
]);
|
||||
if ($returns) {
|
||||
foreach ($returns as $key => $value) {
|
||||
|
||||
@@ -92,7 +92,7 @@ class Category extends Model
|
||||
|
||||
const PrivateCreditFundId = 41;
|
||||
|
||||
const GlobalPrivateCreditFundId= 43;
|
||||
const GlobalPrivateCreditFundId= 42;
|
||||
|
||||
public function scopeActive($query)
|
||||
{
|
||||
|
||||
@@ -187,7 +187,7 @@ class Product extends Model
|
||||
|
||||
public function scopeGlobalPrivateCreditFund($query)
|
||||
{
|
||||
return $query->where('categories_id', 43);
|
||||
return $query->where('categories_id', 42);
|
||||
}
|
||||
|
||||
public function scopeInfrastructureFund($query)
|
||||
@@ -265,6 +265,11 @@ class Product extends Model
|
||||
return $query->where(['categories_id' => Category::GlobalVentureCapitalFundId, 'tables_id' => 3, 'status' => true]);
|
||||
}
|
||||
|
||||
public function scopeGlobalPrivateCreditFunds($query)
|
||||
{
|
||||
return $query->where(['categories_id' => Category::GlobalPrivateCreditFundId, 'tables_id' => 3, 'status' => true]);
|
||||
}
|
||||
|
||||
public function scopeGlobalPrivateEquityFund($query)
|
||||
{
|
||||
return $query->where(['categories_id' => Category::GlobalPrivateEquityFundId, 'tables_id' => 3, 'status' => true]);
|
||||
|
||||
@@ -108,7 +108,7 @@ function routeForHandpickedInvestment($categoryId)
|
||||
Category::PrivateEquityFundId => 'alternative-investment-fund.private-equity-fund-product',
|
||||
Category::GlobalPrivateEquityFundId => 'alternative-investment-fund.private-equity-fund-product',
|
||||
Category::PrivateCreditFundId => 'alternative-investment-fund.private-credit-fund-product',
|
||||
Category::GlobalPrivateCreditFundId => 'alternative-investment-fund.private-credit-fund-product',
|
||||
Category::GlobalPrivateCreditFundId => 'global-private-credit-fund-product',
|
||||
Category::PrivateRealEstateFundId => 'alternative-investment-fund.private-real-estate-fund-product',
|
||||
Category::HedgeFundId => 'alternative-investment-fund.hedge-fund-product',
|
||||
// Category::LongOnlyFundId => 'alternative-investment-fund.hedge-fund-product',
|
||||
|
||||
@@ -4486,6 +4486,61 @@ span.start {
|
||||
height: 400px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
/* <style> */
|
||||
/* CSS for the zoom effect */
|
||||
.img-zoom {
|
||||
cursor: pointer;
|
||||
/* Change cursor to indicate the image is clickable */
|
||||
transition: transform 0.2s;
|
||||
/* Add smooth transition effect */
|
||||
}
|
||||
|
||||
.img-zoom:hover {
|
||||
transform: scale(1.1);
|
||||
/* Scale up the image on hover */
|
||||
}
|
||||
|
||||
.img-thumbs {
|
||||
background: #eee;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 0.25rem;
|
||||
margin: 1.5rem 0;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.img-thumbs-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.edit_wrapper-thumb,
|
||||
.wrapper-thumb {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
/*margin: 1rem 0;*/
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.img-preview-thumb {
|
||||
background: #fff;
|
||||
border: 1px solid none;
|
||||
border-radius: 0.25rem;
|
||||
box-shadow: 0.125rem 0.125rem 0.0625rem rgba(0, 0, 0, 0.12);
|
||||
margin-right: 1rem;
|
||||
max-width: 140px;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
|
||||
/* Additional CSS to style the images within the carousel */
|
||||
.carousel-inner img {
|
||||
max-height: 350px;
|
||||
/* Set maximum height for the images */
|
||||
max-width: 75%;
|
||||
margin: 0 auto;
|
||||
/* Center the images horizontally */
|
||||
}
|
||||
/* </style> */
|
||||
|
||||
/*======responsive=====*/
|
||||
|
||||
@media (max-width: 2560px) {
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
public/assets/uploads/fund_images/202404111316_image.png
Normal file
BIN
public/assets/uploads/fund_images/202404111316_image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
@@ -40,6 +40,36 @@
|
||||
<!--</div>-->
|
||||
<div class="table-invest">
|
||||
<div class="container">
|
||||
@if ($productData && $productData->product_images != null)
|
||||
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
|
||||
<div class="carousel-indicators">
|
||||
@foreach ($productData->product_images as $key => $image)
|
||||
<button type="button" data-bs-target="#carouselExampleIndicators"
|
||||
data-bs-slide-to="{{ $key }}" class="{{ $key === 0 ? 'active' : '' }}"
|
||||
aria-label="Slide {{ $key + 1 }}"></button>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="carousel-inner">
|
||||
@foreach ($productData->product_images as $key => $image)
|
||||
<div class="carousel-item {{ $key === 0 ? 'active' : '' }}">
|
||||
<img src="{{ asset('public/' . $image['images']) }}" class="d-block w-100 img-zoom"
|
||||
alt="Image {{ $key }}">
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators"
|
||||
data-bs-slide="prev">
|
||||
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
||||
<span class="visually-hidden">Previous</span>
|
||||
</button>
|
||||
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators"
|
||||
data-bs-slide="next">
|
||||
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
||||
<span class="visually-hidden">Next</span>
|
||||
</button>
|
||||
</div>
|
||||
@endif
|
||||
<br />
|
||||
<div class="categeory">
|
||||
<div class="details aos-init aos-animate" data-aos="zoom-in">
|
||||
<div class="tables row">
|
||||
|
||||
@@ -5,23 +5,24 @@
|
||||
{{-- @dd($gpcfAllData) --}}
|
||||
<div class="parimay-card mt-4 mb-4">
|
||||
@foreach ($gpcfAllData as $data)
|
||||
{{-- @dd($data) --}}
|
||||
{{-- @foreach ($pefData as $data) --}}
|
||||
<div class="assets-card aos-init aos-animate" data-aos="fade-up">
|
||||
<a href="{{ auth()->guard('users')->check() == true ? route('alternative-investment-fund.private-credit-fund-product', $data->alternativeInvestmentFund->slug) : route('login') }}"
|
||||
data-route="{{ route('alternative-investment-fund.private-credit-fund-product', $data->alternativeInvestmentFund->slug) }}"
|
||||
<a href="{{ auth()->guard('users')->check() == true ? route('global-private-credit-fund-product', $data->funds->slug) : route('login') }}"
|
||||
data-route="{{ route('alternative-investment-fund.private-credit-fund-product', $data->funds->slug) }}"
|
||||
class="redirect_to_page">
|
||||
<div class="card-logo bg-white">
|
||||
<img
|
||||
src="{{ $data->alternativeInvestmentFund->companies == null ? imagePath('public/assets/media/FrontendImages/menu-logo.png') : $data->alternativeInvestmentFund->companies->company_logo }}">
|
||||
src="{{ $data->funds->companies == null ? imagePath('public/assets/media/FrontendImages/menu-logo.png') : $data->funds->companies->company_logo }}">
|
||||
</div>
|
||||
<div class="blur-md">
|
||||
@if ($data->alternativeInvestmentFund->geographic_focus == 'India')
|
||||
@if ($data->funds->geographic_focus == 'India')
|
||||
<img src="{{ asset('public/assets/media/FrontendImages/map.svg') }}">
|
||||
@else
|
||||
<img src="{{ asset('public/assets/media/FrontendImages/world.png') }}">
|
||||
@endif
|
||||
<img src="{{ asset('public/assets/media/FrontendImages/cradit-funds.svg') }}">
|
||||
<p>{{ $data->alternativeInvestmentFund->fund_name }}</p>
|
||||
<p>{{ $data->funds->fund_name }}</p>
|
||||
</div>
|
||||
<p class="cate">Category: {{ $data->categorys->category_name }}</p>
|
||||
<div class="middle-sec">
|
||||
@@ -35,16 +36,16 @@
|
||||
<p>Close Date: Approx. Sep 2030</p>
|
||||
</div>
|
||||
</div>
|
||||
<p class="">Target IRR: {{ $data->alternativeInvestmentFund->target_irr }}
|
||||
</p>
|
||||
{{-- <p class="">Tenure From Final Date:
|
||||
{{ $data->alternativeInvestmentFund->tenure_from_final_date }}</p> --}}
|
||||
<p class="">1 yrs return: {{ $data->funds->year1_return }}%
|
||||
</p> |
|
||||
<p class="">3 yrs return:
|
||||
{{ $data->funds->year3_return }}%</p>
|
||||
</div>
|
||||
<div class="dics">
|
||||
<h4>Minimum Investment:
|
||||
{{ $data->alternativeInvestmentFund->minimum_investment }}
|
||||
{{ $data->funds->minimum_investment }}
|
||||
</h4>
|
||||
<p>{{ $data->alternativeInvestmentFund->description }}</p>
|
||||
<p>{{ substr($data->funds->fund_description, 0, 200) }}...</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -61,6 +61,7 @@ use App\Http\Resources\FractionalRealEstate as test;
|
||||
use App\Models\SecuritizedDebtInstrument;
|
||||
|
||||
use App\Http\Controllers\Admin\ManageChatController;
|
||||
use App\Http\Controllers\GlobalPrivateCreditController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -261,6 +262,7 @@ Route::get('bonds-single-data/{slug}', [GlobalBondController::class, 'bondData']
|
||||
|
||||
Route::get('mutual-fund-all-data', [GlobalMutualFundController::class, 'mutualFundAllData']);
|
||||
Route::get('venture-capital-fund-all-data/{type}', [GlobalVentureCapitalFund::class, 'ventureCapitalAllData']);
|
||||
Route::get('private-credit-fund-all-data/{type}', [GlobalPrivateCreditController::class, 'privateCreditAllData']);
|
||||
Route::get('private-equity-fund-all-data/{type}', [GlobalPrivateEquityFundController::class, 'privateEquityFundAllData']);
|
||||
Route::get('hedge-fund-all-data/{type}', [GlobalHedgeFundController::class, 'hedgeFundAllData']);
|
||||
Route::get('funds-single-data/{slug}', [GlobalMutualFundController::class, 'fundData']);
|
||||
@@ -300,6 +302,14 @@ Route::get('private-equity-fund-single-data/{slug}', [AlternativeInvestmentFundC
|
||||
Route::get('debt-fund-data/{type}', [AlternativeInvestmentFundController::class, 'debtFundAllData']);
|
||||
Route::get('debt-fund-single-data/{slug}', [AlternativeInvestmentFundController::class, 'debtFundData']);
|
||||
|
||||
//Private Credit Fund
|
||||
Route::get('private-credit-fund-data/{type}', [AlternativeInvestmentFundController::class, 'privateCreditFundAllData']);
|
||||
Route::get('private-credit-fund-single-data/{slug}', [AlternativeInvestmentFundController::class, 'privateCreditFundData']);
|
||||
|
||||
//Long Only Equity Fund
|
||||
Route::get('long-only-equity-fund-data/{type}', [AlternativeInvestmentFundController::class, 'longOnlyEquityFundAllData']);
|
||||
Route::get('long-only-equity-fund-single-data/{slug}', [AlternativeInvestmentFundController::class, 'longOnlyEquityFundData']);
|
||||
|
||||
//Fund For Distressed Asset
|
||||
Route::get('fund-for-distressed-asset-data/{type}', [AlternativeInvestmentFundController::class, 'fundForDistressedAssetAllData']);
|
||||
Route::get('fund-for-distressed-asset-single-data/{slug}', [AlternativeInvestmentFundController::class, 'fundForDistressedAssetData']);
|
||||
|
||||
@@ -1176,6 +1176,7 @@ Route::view('global-angel-investing', 'Frontend.Pages.dummy.global-angel-investi
|
||||
Route::view('global-growth-capital', 'Frontend.Pages.dummy.global-growth-capital')->name('global-growth-capital');
|
||||
Route::view('global-mezzanine-financing', 'Frontend.Pages.dummy.global-mezzanine-financing')->name('global-mezzanine-financing');
|
||||
Route::get('global-private-credit', [GlobalPrivateCreditController::class, 'getGlobalPrivateCreditFundPage'])->name('global-private-credit');
|
||||
Route::get('global-private-credit-fund-product/{slug}', [GlobalPrivateCreditController::class, 'getGlobalPrivateCreditFundProduct'])->name('global-private-credit-fund-product');
|
||||
Route::view('global-private-equity', 'Frontend.Pages.dummy.global-private-equity')->name('global-private-equity');
|
||||
// indian links
|
||||
Route::view('indian-angel-investing', 'Frontend.Pages.dummy.indian-angel-investing')->name('indian-angel-investing');
|
||||
|
||||
Reference in New Issue
Block a user