Merge pull request #277 from Ritikeshyadav/RitikeshFreeu

added middleware to product view page
This commit is contained in:
Ritikeshyadav
2024-06-12 13:04:31 +05:30
committed by GitHub
14 changed files with 172 additions and 221 deletions

View File

@@ -885,6 +885,7 @@ class ManageFreeUInvestmentController extends Controller
'facilities_features' => $request->facilities_features,
'construction_age' => $request->construction_age,
'country' => $request->country,
'location' => $request->location,
'remarks' => $request->remarks,
]);

View File

@@ -122,6 +122,7 @@ class ManageInvestorController extends Controller
public function view_investors_details($id)
{
$currentInvestment = $this->getUserProducts('Holding', $id);
// dd($currentInvestment);
$reedemedInvestment = $this->getUserProducts('Reedemed', $id);
$totalInvestmentForHolding = array_sum(array_column($currentInvestment['productsDetails'], 'total_investment_amount'));
@@ -149,7 +150,7 @@ class ManageInvestorController extends Controller
'categories' => $singleMUM->categories,
'product_category' => $singleMUM->product_category,
'product_name' => $singleMUM->product_name,
'platform' => Company::find($singleMUM->investment_platform)->value('company_name')
'platform' => Company::where('id',$singleMUM->investment_platform)->value('company_name')
];
if (MonthlyUpdateAlternativeInvestmentFund::where('custom_id', $singleMUM->custom_id)->exists()) {
$data = MonthlyUpdateAlternativeInvestmentFund::where('custom_id', $singleMUM->custom_id)->latest()->first();

View File

@@ -565,18 +565,19 @@ class AlternativeInvestmentFundController extends Controller
public function longOnlyEquityFundProduct($slug)
{
$longOnlyEquityFund = $this->longOnlyEquityFundData($slug)->getData()->data;
$otherHF = AlternativeInvestmentFund::query()
->join('products', 'alternative_investment_funds.products_id', 'products.id')
->where(['status' => true, 'categories_id' => 40])
// ->where('status',false)
->where('slug', '!=', $slug)
// ->where('categories_id',26)
->get();
$productData = AlternativeInvestmentFund::where('slug', '=', $slug)->first();
$product = Product::with('product_images')->where('id', '=', $productData->products_id)->first();
// dd($longOnlyEquityFund);
// $otherHF = AlternativeInvestmentFund::query()
// ->join('products', 'alternative_investment_funds.products_id', 'products.id')
// ->where(['status' => true, 'categories_id' => 40])
// // ->where('status',false)
// ->where('slug', '!=', $slug)
// // ->where('categories_id',26)
// ->get();
// $productData = AlternativeInvestmentFund::where('slug', '=', $slug)->first();
$productData = Product::with('product_images')->where('id', '=', $longOnlyEquityFund->products_id)->first();
// dd($otherHF);
// dd($longOnlyEquityFund, $slug);
return view('Frontend.Pages.alternative-investment-fund.long-only-equity-fund-product', compact('longOnlyEquityFund', 'otherHF', 'productData', 'product'));
// dd($productData);
return view('Frontend.Pages.alternative-investment-fund.long-only-equity-fund-product', compact('longOnlyEquityFund', 'productData'));
}
public function privateCreditFund()
{

View File

@@ -28,14 +28,16 @@ class FractionalRealEstateController extends Controller
public function product($slug)
{
$fractionalRealEstate = $this->fractionalRealEstateData($slug)->getData()->data;
$otherFRE = FractionalRealEstate::query()
->join('products', 'fractional_real_estates.products_id', 'products.id')
->where(['status' => true, 'categories_id' => 2])
->where('slug', '!=', $slug)
->get();
$productData = FractionalRealEstate::where('slug', '=', $slug)->first();
$productData = Product::with('product_images')->where('id', $productData->products_id)->first();
return view('Frontend.Pages.fractional-real-estate.product', compact('fractionalRealEstate', 'otherFRE', 'productData'));
// dd($fractionalRealEstate->products_id);
// $otherFRE = FractionalRealEstate::query()
// ->join('products', 'fractional_real_estates.products_id', 'products.id')
// ->where(['status' => true, 'categories_id' => 2])
// ->where('slug', '!=', $slug)
// ->get();
// $productData = FractionalRealEstate::where('slug', '=', $slug)->first();
// dd($productData->toArray(),$fractionalRealEstate);
$productData = Product::with('product_images')->where('id', $fractionalRealEstate->products_id)->first();
return view('Frontend.Pages.fractional-real-estate.product', compact('fractionalRealEstate', 'productData'));
}
public function downloadFilePersantation($filename)

View File

@@ -75,5 +75,6 @@ class Kernel extends HttpKernel
'FrontendAccess' => \App\Http\Middleware\FrontendAccess::class,
'AlreadyLoggedIn' => \App\Http\Middleware\AlreadyLoggedIn::class,
'checkLoggedIn' => \App\Http\Middleware\checkLoggedIn::class,
'cannotAccessWithoutLoggin' => \App\Http\Middleware\cannotAccessWithoutLoggin::class,
];
}

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class cannotAccessWithoutLoggin
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/
public function handle(Request $request, Closure $next)
{
if(!\Auth::guard('users')->check())
{
return \Redirect::to('login');
}
return $next($request);
}
}

View File

@@ -72,6 +72,14 @@ class LongOnlyEquityResource extends JsonResource
'involved_in_short_selling' => $this->involved_in_short_selling,
'minimum_investment' => $this->minimum_investment,
'company' => $this->companies,
'focused_sectors_industries' => $this->focused_sectors_industries,
'regions_covered' => $this->regions_covered,
'isin_code' => $this->isin_code,
'focused_real_estate_sectors' => $this->focused_real_estate_sectors,
'rera_complied_property' => $this->rera_complied_property,
'return_on_investment_irr_dpi_rvpi_tvpi' => $this->return_on_investment_irr_dpi_rvpi_tvpi,
'valuation_per_security_nav' => $this->valuation_per_security_nav,
'trading_strategy_used' => $this->trading_strategy_used,
// 'product_images' => ProductImage::where('product_xid',$this->products_id)->get(),
];
}

View File

@@ -112,7 +112,7 @@ class FundImport implements ToCollection, WithHeadingRow
'ytd' => $row['ytd'],
'year1_return' => $row['1_year_return'],
'year3_return' => $row['3_year_return'],
// 'data_as_on' => getConvertedDate($row['data_as_on']) ?? null,
'data_as_on' => getConvertedDate($row['data_as_on']) ?? null,
]);
if ($returns) {
foreach ($returns as $key => $value) {

View File

@@ -10,7 +10,7 @@ class Fund extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = ['products_id','slug','issuer','fund_name','fund_type','about_issuer','fund_description','sharpe_ratio','annualized_volatility','max_dropdown','isin','inception_date','fund_aum','expense_ratio','nav_per_unit','minimum_investment','ytd','year1_return','year3_return','geographic_focus'];
protected $fillable = ['products_id','slug','issuer','fund_name','fund_type','about_issuer','fund_description','sharpe_ratio','annualized_volatility','max_dropdown','isin','inception_date','fund_aum','expense_ratio','nav_per_unit','minimum_investment','ytd','year1_return','year3_return', 'data_as_on','geographic_focus'];
protected $with = ['returns'];

View File

@@ -1102,6 +1102,27 @@
<!--end::Input-->
</div>
<div class="col-md-6 mt-4">
<!--begin::Label-->
<label class="fs-6 fw-semibold form-label mt-3">
<span class="required">Location</span>
<!-- <i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Enter the contact's name."></i> -->
</label>
<!--end::Label-->
<!--begin::Input-->
<input type="text" class="form-control form-control-solid" name="location" placeholder='Enter location' value="{{$products->realEstates->location}}" />
<!--end::Input-->
</div>
<div class="col-md-6 mt-4">

View File

@@ -97,7 +97,7 @@
<div class="table-invest">
<div class="container">
@if ($productData && $productData->product_images)
@if ($productData && $productData->product_images->toArray() != null)
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
@foreach ($productData->product_images as $key => $image)
@@ -182,7 +182,7 @@
</div> --}}
<div class="col-md-6">
<p>Description</p>
<h4>{{ $product->description ?? '-' }}</h4>
<h4>{{ $productData->description ?? '-' }}</h4>
</div>
</div>
</div>

View File

@@ -260,116 +260,6 @@
</div>
</div>
</div>
<!--<div class="categeory">-->
<!-- <div class="details aos-init aos-animate" data-aos="zoom-in">-->
<!-- <div class="tables row">-->
<!-- <div class="col-md-4">-->
<!-- <p>Native currency</p>-->
<!-- <span></span>-->
<!-- </div>-->
<!-- <div class="col-md-4">-->
<!-- <p>Target IRR</p>-->
<!-- <span></span>-->
<!-- </div>-->
<!-- <div class="col-md-4">-->
<!-- <p>Initial drawdown</p>-->
<!-- <span></span>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<!--<div class="categeory">-->
<!-- <div class="details aos-init aos-animate" data-aos="zoom-in">-->
<!-- <div class="tables row">-->
<!-- <div class="col-md-6">-->
<!-- <p>Investment manager contribution</p>-->
<!-- <span>10% of Capital Commitment raised</span>-->
<!-- </div>-->
<!-- <div class="col-md-6">-->
<!-- <p>Minimal capital commitment</p>-->
<!-- <span>1 Crore</span>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<!--<div class="categeory">-->
<!-- <div class="details aos-init aos-animate" data-aos="zoom-in">-->
<!-- <div class="tables row">-->
<!-- <div class="col-md-6">-->
<!-- <p>Target corpus</p>-->
<!-- <span> 1,500 crore + green shoe of up to 1,500 crore</span>-->
<!-- </div>-->
<!-- <div class="col-md-6">-->
<!-- <p>Accepting Overseas investment?</p>-->
<!-- <span></span>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<!--<div class="categeory">-->
<!-- <div class="details aos-init aos-animate" data-aos="zoom-in">-->
<!-- <div class="tables">-->
<!-- <div>-->
<!-- <p>Management Fees and Carry - Set Up fee - Management Fee - Performace fee</p>-->
<!-- <span>2.5% p.a. Management Fee &amp; 20% Carry with full catchup</span>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<!--<div class="categeory">-->
<!-- <div class="details aos-init aos-animate" data-aos="zoom-in">-->
<!-- <div class="tables row">-->
<!-- <div class="col-md-6">-->
<!-- <p>Hurdle rate</p>-->
<!-- <span>XIRR of 10% (pre-tax) on Capital Contributions received</span>-->
<!-- </div>-->
<!-- <div class="col-md-6">-->
<!-- <p>Other expenses</p>-->
<!-- <span></span>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<!--<div class="categeory">-->
<!-- <div class="details aos-init aos-animate" data-aos="zoom-in">-->
<!-- <div class="tables">-->
<!-- <div>-->
<!-- <p>Focused Sectors (Industries in which they are investing)</p>-->
<!-- <span></span>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<!--<div class="categeory">-->
<!-- <div class="details aos-init aos-animate" data-aos="zoom-in">-->
<!-- <div class="tables">-->
<!-- <div>-->
<!-- <p>Regions Covered (Geographical Locations covered by the fund)</p>-->
<!-- <span></span>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
{{-- <div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="tables row">
<div class="col-md-12 ">
<div class="col-md-12 d-flex justify-content-around">
<div>
<h5>Persentation</h5>
<i class="fa fa-download" style="font-size:24px"></i>
<a href="{{$fractionalRealEstate->presentation}}" class="card-link"> PDF not available</a>
</div>
<div>
<h5>Fact Sheet</h5>
<i class="fa fa-download" style="font-size:24px"></i>
<a href="{{$fractionalRealEstate->fact_sheet}}" class="card-link"> PDF not available</a>
</div>
</div>
</div>
</div>
</div>
</div> --}}
@include('Frontend.Pages.alternative-investment-fund.presentation-factsheet')
</div>
</div>

View File

@@ -55,19 +55,19 @@
@endif
@if($realEstate->property_location || $realEstate->project_type ||$realEstate->current_status )
{{-- @if($realEstate->property_location || $realEstate->project_type ||$realEstate->current_status ) --}}
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->property_location)}}" >
<div class="col-md-4 " >
<p>Property Location</p>
<span>{{ $realEstate->property_location ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->project_type)}}">
<div class="col-md-4 ">
<p>Project Type</p>
<span>{{ $realEstate->project_type ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->current_status)}}">
<div class="col-md-4 ">
<p>Current Status</p>
<span>{{ $realEstate->current_status ?? '-' }}</span>
</div>
@@ -75,9 +75,9 @@
</div>
</div>
</div>
@endif
{{-- @endif --}}
@if($productData->description)
{{-- @if($productData->description) --}}
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
{{-- <div class="tables row"> --}}
@@ -89,7 +89,7 @@
<p>Project Type</p>
<span>{{ $realEstate->project_type ?? '-' }}</span>
</div> --}}
<div class="{{dNone($productData->description)}}">
<div class="">
<p>Description</p>
<span>{{ $productData->description ?? '-' }}</span>
</div>
@@ -97,90 +97,90 @@
{{-- </div> --}}
</div>
</div>
@endif
{{-- @endif --}}
@if($realEstate->price_per_sq_ft || $realEstate->booking_amount || $realEstate->price_range || $realEstate->total_price||$realEstate->transaction_type ||$realEstate->project_code_or_rera_id ||$realEstate->area_in_sq_ft ||$realEstate->construction_status ||$realEstate->launch_date ||$realEstate->geographic_focus ||$realEstate->built_up_area ||$realEstate->carpet_area)
{{-- @if($realEstate->price_per_sq_ft || $realEstate->booking_amount || $realEstate->price_range || $realEstate->total_price||$realEstate->transaction_type ||$realEstate->project_code_or_rera_id ||$realEstate->area_in_sq_ft ||$realEstate->construction_status ||$realEstate->launch_date ||$realEstate->geographic_focus ||$realEstate->built_up_area ||$realEstate->carpet_area) --}}
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->price_per_sq_ft)}}">
<div class="col-md-4 ">
<p>Price Per Sq Ft</p>
<span>{{ $realEstate->price_per_sq_ft ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->booking_amount)}}">
<div class="col-md-4 ">
<p>Booking Amount</p>
<span>{{ $realEstate->booking_amount ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->price_range)}}">
<div class="col-md-4 ">
<p>Price Range</p>
<span>{{ $realEstate->price_range ?? '-' }}</span>
</div>
</div>
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->total_price)}}">
<div class="col-md-4 ">
<p>Total Price</p>
<span>{{ $realEstate->total_price ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->transaction_type)}}">
<div class="col-md-4 ">
<p>Transaction Type</p>
<span>{{ $realEstate->transaction_type ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->project_code_or_rera_id)}}">
<div class="col-md-4 ">
<p>Project Code/Rera Id</p>
<span>{{ $realEstate->project_code_or_rera_id ?? '-' }}</span>
</div>
</div>
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->area_in_sq_ft)}}">
<div class="col-md-4 ">
<p>Area in sq ft</p>
<span>{{ $realEstate->area_in_sq_ft ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->construction_status)}}">
<div class="col-md-4 ">
<p>Construction Status</p>
<span>{{ $realEstate->construction_status ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->launch_date)}}">
<div class="col-md-4 ">
<p>Launch Date</p>
<span>{{ $realEstate->launch_date ?? '-' }}</span>
</div>
</div>
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->geographic_focus)}}">
<div class="col-md-4 ">
<p>Geographic Focus</p>
<span>{{ $realEstate->geographic_focus ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->built_up_area)}}">
<div class="col-md-4 ">
<p>Built Up Area</p>
<span>{{ $realEstate->built_up_area ?? '-' }}</span>
</div>
{{-- @dd($realEstate->carpet_area); --}}
<div class="col-md-4 {{dNone($realEstate->carpet_area)}}">
<div class="col-md-4 ">
<p>Carpet area</p>
<span>{{ $realEstate->carpet_area ?? '-' }}</span>
</div>
</div>
</div>
</div>
@endif
{{-- @endif --}}
<div class="categeory">
@if($realEstate->no_of_bedrooms || $realEstate->no_of_restrooms || $realEstate->no_of_floors || $realEstate->total_towers || $realEstate->builder_details || $realEstate->landmarks || $realEstate->completed_in || $realEstate->total_units || $realEstate->unit_type )
{{-- @if($realEstate->no_of_bedrooms || $realEstate->no_of_restrooms || $realEstate->no_of_floors || $realEstate->total_towers || $realEstate->builder_details || $realEstate->landmarks || $realEstate->completed_in || $realEstate->total_units || $realEstate->unit_type ) --}}
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->no_of_bedrooms)}}">
<div class="col-md-4 ">
<p>No. Of Bedrooms</p>
<span>{{ $realEstate->no_of_bedrooms ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->no_of_restrooms)}}">
<div class="col-md-4 ">
<p>No. Of Restrooms</p>
<span>{{ $realEstate->no_of_restrooms ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->no_of_floors)}}">
<div class="col-md-4 ">
<p>No. Of Floors</p>
<span>{{ $realEstate->no_of_floors ?? '-' }}</span>
</div>
{{-- <div class="col-md-4 {{dNone($realEstate->slug)}}">
{{-- <div class="col-md-4 ">
<p>Slug</p>
<span>{{ $realEstate->slug ?? '-' }}</span>
</div> --}}
@@ -188,122 +188,122 @@
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->total_towers)}}">
<div class="col-md-4 ">
<p>Total Towers</p>
<span>{{ $realEstate->total_towers ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->builder_details)}}">
<div class="col-md-4 ">
<p>Builder Details</p>
<span>{{ $realEstate->builder_details ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->landmarks)}}">
<div class="col-md-4 ">
<p>Landmarks</p>
<span>{{ $realEstate->landmarks ?? '-' }}</span>
</div>
</div>
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->completed_in)}}">
<div class="col-md-4 ">
<p>Completed In</p>
<span>{{ $realEstate->completed_in ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->total_units)}}">
<div class="col-md-4 ">
<p>Total Units</p>
<span>{{ $realEstate->total_units ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->unit_type)}} ">
<div class="col-md-4 ">
<p>Unit Type</p>
<span>{{ $realEstate->unit_type ?? '-' }}</span>
</div>
</div>
</div>
@endif
{{-- @endif --}}
</div>
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
@if($realEstate->electricity_status || $realEstate->fire_safety_measures || $realEstate->water_facility )
{{-- @if($realEstate->electricity_status || $realEstate->fire_safety_measures || $realEstate->water_facility ) --}}
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->electricity_status)}}">
<div class="col-md-4 ">
<p>Electricity Status</p>
<span>{{ $realEstate->electricity_status ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->fire_safety_measures)}}">
<div class="col-md-4 ">
<p>Fire Satefy Measures</p>
<span>{{ $realEstate->fire_safety_measures ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->water_facility)}}">
<div class="col-md-4 ">
<p>Water Facility</p>
<span>{{ $realEstate->water_facility ?? '-' }}</span>
</div>
</div>
@endif
@if($realEstate->furnished_status || $realEstate->commencement_certificate || $realEstate->occupancy_certificate )
{{-- @endif
@if($realEstate->furnished_status || $realEstate->commencement_certificate || $realEstate->occupancy_certificate ) --}}
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->furnished_status)}}">
<div class="col-md-4 ">
<p>Furnished Status</p>
<span>{{ $realEstate->furnished_status ?? '-' }}</span>
</div>
<div class="col-md-4{{dNone($realEstate->commencement_certificate )}} ">
<div class="col-md-4 ">
<p>Commencement Certificate</p>
<span>{{ $realEstate->commencement_certificate ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->occupancy_certificate)}} ">
<div class="col-md-4 ">
<p>Occupancy Certificate</p>
<span>{{ $realEstate->occupancy_certificate ?? '-' }}</span>
</div>
</div>
@endif
{{-- @endif --}}
</div>
</div>
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
@if($realEstate->price_negotiable || $realEstate->maintenance_fees || $realEstate->nearest_railway_metro_station )
{{-- @if($realEstate->price_negotiable || $realEstate->maintenance_fees || $realEstate->nearest_railway_metro_station ) --}}
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->price_negotiable)}}">
<div class="col-md-4 ">
<p>Price Neogtiable</p>
<span>{{ $realEstate->price_negotiable ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->maintenance_fees)}}">
<div class="col-md-4 ">
<p>Maintenance Fees</p>
<span>{{ $realEstate->maintenance_fees ?? '-' }}</span>
</div>
<div class="col-md-4{{dNone($realEstate->nearest_railway_metro_station)}} ">
<div class="col-md-4 ">
<p>Nearest Railway Metro Station</p>
<span>{{ $realEstate->nearest_railway_metro_station ?? '-' }}</span>
</div>
</div>
@endif
@if($realEstate->amenities || $realEstate->car_parking || $realEstate->remarks)
{{-- @endif
@if($realEstate->amenities || $realEstate->car_parking || $realEstate->remarks) --}}
<div class="tables row">
<div class="col-md-4 {{dNone($realEstate->amenities)}}">
<div class="col-md-4 ">
<p>Amenities</p>
<span>{{ $realEstate->amenities ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->car_parking)}}">
<div class="col-md-4 ">
<p>Car Parking</p>
<span>{{ $realEstate->car_parking ?? '-' }}</span>
</div>
<div class="col-md-4 {{dNone($realEstate->remarks)}}">
<div class="col-md-4 ">
<p>Remarks</p>
<span>{{ $realEstate->remarks ?? '-' }}</span>
</div>
</div>
@endif
{{-- @endif --}}
</div>
</div>
@if( $realEstate->pre_leased || $realEstate->tenant_details )
{{-- @if( $realEstate->pre_leased || $realEstate->tenant_details ) --}}
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="tables row">
<div class="col-md-6 {{dNone($realEstate->pre_leased)}}">
<div class="col-md-6 ">
<p>Pre-Leased</p>
<span>{{ $realEstate->pre_leased ?? '-' }}</span>
</div>
<div class="col-md-6 {{dNone($realEstate->tenant_details)}}">
<div class="col-md-6 ">
<p>Tenant Details</p>
<span>{{ $realEstate->tenant_details ?? '-' }}</span>
</div>
@@ -311,52 +311,52 @@
</div>
</div>
@endif
{{-- @endif --}}
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
@if($realEstate->facilities_features || $realEstate->total_price )
{{-- @if($realEstate->facilities_features || $realEstate->total_price ) --}}
<div class="tables row">
<div class="col-md-6 {{dNone($realEstate->facilities_features)}}">
<div class="col-md-6 ">
<p>Facilities/Features</p>
<span>{{ $realEstate->facilities_features ?? '-' }}</span>
</div>
<div class="col-md-6 {{dNone($realEstate->total_price)}}">
<div class="col-md-6 ">
<p>Minimum Investment</p>
<span>{{ $realEstate->total_price ?? '-' }}</span>
</div>
</div>
@endif
{{-- @endif --}}
</div>
</div>
@if($realEstate->construction_age || $realEstate->location )
{{-- @if($realEstate->construction_age || $realEstate->location ) --}}
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="tables row">
<div class="col-md-6 {{dNone($realEstate->construction_age)}}">
<div class="col-md-6 ">
<p>Construction Age</p>
<span>{{ $realEstate->construction_age ?? '-' }}</span>
</div>
<div class="col-md-6 {{dNone($realEstate->location)}}">
<div class="col-md-6 ">
<p>Location</p>
<span>{{ $realEstate->location ?? '-' }}</span>
</div>
</div>
</div>
</div>
@endif
{{-- @endif --}}
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="tables row">
@if($realEstate->country || $realEstate->elevators)
<div class="col-md-6 {{dNone($realEstate->country)}}">
{{-- @if($realEstate->country || $realEstate->elevators) --}}
<div class="col-md-6 ">
<p>Country</p>
<span>{{ $realEstate->country ?? '-' }}</span>
</div>
<div class="col-md-6 {{dNone($realEstate->elevators)}} ">
<div class="col-md-6 ">
<p>Elevators</p>
<span>{{ $realEstate->elevators ?? '-' }}</span>
</div>
@endif
{{-- @endif --}}
<!--</div>-->
<!--<div class="tables">-->
</div>

View File

@@ -981,41 +981,41 @@ Route::controller(AlternativeInvestmentFundController::class)->prefix('alternati
Route::get("/category-2", 'aifCategoryTwo')->name('aif-category-2');
Route::get("/category-3", 'aifCategoryThree')->name('aif-category-3');
Route::get("/category-one/venture-capital-fund", 'ventureCapitalFund')->name('venture-capital-fund');
Route::get("/category-one/venture-capital-fund/{slug}", 'ventureCapitalFundProduct')->name('venture-capital-fund-product');
Route::get("/category-one/venture-capital-fund/{slug}", 'ventureCapitalFundProduct')->name('venture-capital-fund-product')->middleware(['cannotAccessWithoutLoggin']);
Route::get("/category-one/infrastructure-fund", 'infrastructureFund')->name('infrastructure-fund');
Route::get("/category-one/infrastructure-fund/{slug}", 'infrastructureFundProduct')->name('infrastructure-fund-product');
Route::get("/category-one/infrastructure-fund/{slug}", 'infrastructureFundProduct')->name('infrastructure-fund-product')->middleware(['cannotAccessWithoutLoggin']);
Route::get("/category-one/angel-fund", 'angelFund')->name('angel-fund');
Route::get("/category-one/angel-fund/{slug}", 'angelFundProduct')->name('angel-fund-product');
Route::get("/category-one/angel-fund/{slug}", 'angelFundProduct')->name('angel-fund-product')->middleware(['cannotAccessWithoutLoggin']);
Route::get("/category-two/private-equity-fund", 'privateEquityFund')->name('private-equity-fund');
Route::get("/category-two/private-equity-fund/{slug}", 'privateEquityFundProduct')->name('private-equity-fund-product');
Route::get("/category-two/private-equity-fund/{slug}", 'privateEquityFundProduct')->name('private-equity-fund-product')->middleware(['cannotAccessWithoutLoggin']);
Route::get("/category-two/debt-fund", 'debtFund')->name('debt-fund');
Route::get("/category-two/debt-fund/{slug}", 'debtFundProduct')->name('debt-fund-product');
Route::get("/category-two/debt-fund/{slug}", 'debtFundProduct')->name('debt-fund-product')->middleware(['cannotAccessWithoutLoggin']);
Route::get("/category-two/private-real-asset-fund", 'privateRealEstateFund')->name('private-real-asset-fund');
Route::get("/category-two/private-real-asset-fund/{slug}", 'privateRealEstateFundProduct')->name('private-real-estate-fund-product');
Route::get("/category-two/private-real-asset-fund/{slug}", 'privateRealEstateFundProduct')->name('private-real-estate-fund-product')->middleware(['cannotAccessWithoutLoggin']);
Route::get("/category-two/fund-for-distressed-asset", 'fundForDistressedAsset')->name('fund-for-distressed-asset');
Route::get("/category-three/fund-for-distressed-asset/{slug}", 'fundForDistressedAssetProduct')->name('fund-for-distressed-asset-product');
Route::get("/category-three/fund-for-distressed-asset/{slug}", 'fundForDistressedAssetProduct')->name('fund-for-distressed-asset-product')->middleware(['cannotAccessWithoutLoggin']);
Route::get("/category-three/hedge-fund", 'hedgeFund')->name('hedge-fund');
Route::get("/category-three/hedge-fund/{slug}", 'hedgeFundProduct')->name('hedge-fund-product');
Route::get("/category-three/hedge-fund/{slug}", 'hedgeFundProduct')->name('hedge-fund-product')->middleware(['cannotAccessWithoutLoggin']);
Route::get("/category-three/private-investment-public-equity", 'privateInvestmentPublicEquity')->name('private-investment-public-equity');
Route::get("/category-three/private-investment-public-equity/{slug}", 'privateInvestmentPublicEquityProduct')->name('private-investment-public-equity-product');
Route::get("/category-three/private-investment-public-equity/{slug}", 'privateInvestmentPublicEquityProduct')->name('private-investment-public-equity-product')->middleware(['cannotAccessWithoutLoggin']);
Route::get('/category-two/private-credit-funds', 'privateCreditFund')->name('private-credit-funds');
Route::get('/category-two/private-credit-funds/{slug}', 'privateCreditFundProduct')->name('private-credit-fund-product');
Route::get('/category-two/private-credit-funds/{slug}', 'privateCreditFundProduct')->name('private-credit-fund-product')->middleware(['cannotAccessWithoutLoggin']);
Route::get('/category-three/long-only-equity-funds', 'longOnlyEquityFund')->name('long-only-equity-funds');
// Route::get('/category-three/long-only-equity-funds/', 'longOnlyEquityFund')->name('long-only-equity-funds');
Route::get("/category-three/long-only-equity-funds/{slug}", 'longOnlyEquityFundProduct')->name('long-only-equity-fund-product');
Route::get("/category-three/long-only-equity-funds/{slug}", 'longOnlyEquityFundProduct')->name('long-only-equity-fund-product')->middleware(['cannotAccessWithoutLoggin']);
});
Route::controller(FractionalRealEstateController::class)->prefix('fractional-real-estate')->name('fractional-real-estate.')->group(function () {
Route::get("/", 'index')->name('fre-overview');
Route::get("/{slug}", 'product')->name('product');
Route::get("/{slug}", 'product')->name('product')->middleware(['cannotAccessWithoutLoggin']);
Route::get("persantaion_file/{filename}", 'downloadFilePersantation')->name('persentationfile'); //shailesh
// Route::get("persantaion_file/{filename}",[FractionalRealEstateController::class,'downloadFilePersantation'])->name('persentationfile');//shailesh
});
@@ -1091,12 +1091,12 @@ Route::controller(GlobalEquitiesController::class)->prefix('equities')->name('eq
Route::controller(GlobalVentureCapitalFund::class)->prefix('venture-capital-funds')->name('venture-capital-funds.')->group(function () {
Route::get("/", 'index')->name('overview');
Route::get("/{slug}", 'product')->name('product');
Route::get("/{slug}", 'product')->name('product')->middleware(['cannotAccessWithoutLoggin']);
});
Route::controller(GlobalPrivateEquityFundController::class)->prefix('private-equity-funds')->name('private-equity-funds.')->group(function () {
Route::get("/", 'index')->name('overview');
Route::get("/{slug}", 'product')->name('product');
Route::get("/{slug}", 'product')->name('product')->middleware(['cannotAccessWithoutLoggin']);
});
Route::controller(GlobalPrivateEquityFundController::class)->prefix('global-private-equity-funds')->name('global-private-equity-funds.')->group(function () {
@@ -1106,7 +1106,7 @@ Route::controller(GlobalPrivateEquityFundController::class)->prefix('global-priv
Route::controller(GlobalHedgeFundController::class)->prefix('hedge-funds')->name('hedge-funds.')->group(function () {
Route::get("/", 'index')->name('overview');
Route::get("/{slug}", 'product')->name('product');
Route::get("/{slug}", 'product')->name('product')->middleware(['cannotAccessWithoutLoggin']);
});
Route::controller(GlobalExchangeTradedFundsController::class)->prefix('exchange-traded-funds')->name('exchange-traded-funds.')->group(function () {
@@ -1126,13 +1126,13 @@ Route::controller(GlobalRealAssetController::class)->prefix('global-real-estate'
Route::get("/commercial", 'commercial')->name('commercial');
// Route::get("/{slug}", 'product')->name('product');
});
Route::get('global-real-estate/{slug}', [IndianRealAssetController::class, 'product'])->name('gre.product');
Route::get('global-real-estate/{slug}', [IndianRealAssetController::class, 'product'])->name('gre.product')->middleware(['cannotAccessWithoutLoggin']);
Route::controller(IndianRealAssetController::class)->prefix('indian-real-estate')->name('ire.')->group(function () {
Route::get("/", 'index')->name('overview');
Route::get("/industrial", 'industrial')->name('industrial');
Route::get("/residential", 'residential')->name('residential');
Route::get("/commercial", 'commercial')->name('commercial');
Route::get("/{slug}", 'product')->name('product');
Route::get("/{slug}", 'product')->name('product')->middleware(['cannotAccessWithoutLoggin']);
});
Route::controller(AccountsController::class)->group(function () {