This commit is contained in:
meghamalore
2024-06-20 16:32:01 +05:30
9 changed files with 182 additions and 127 deletions

View File

@@ -40,30 +40,45 @@ class ManageCommissionController extends Controller
if (!$check) {
abort(404);
}
$products = Product::query()
->select(DB::raw('products.id, coalesce(fund.fund_name, re.property_name, sdi.product_name, p2p.scheme, fre.property_name_and_location,id.company_name,aif.fund_name,caga.project_name,hyf.security_name,lbf.company,sdi.product_name,vd.company_name) as product_name'), DB::raw('DATE_FORMAT(products.created_at, "%d-%b-%Y") as date'), 'categories.category_name', DB::raw('coalesce(sdi.minimum_investment,re.total_price, p2p.minimum_investment, fre.minimum_investment,id.minimum_investment,aif.minimum_investment,caga.minimum_investment,hyf.minimum_investment,lbf.minimum_investment,sdi.minimum_investment,vd.minimum_investment,fund.minimum_investment) as minimum_investment'), 'products.commission_type', 'products.rate', 'products.commission', 'products.description', DB::raw('coalesce(fre.companies_id,aif.companies_id,caga.companies_id,vd.companies_id) as companies_id'), 'upfront_rate', 'trail_rate')
->leftJoin('securitized_debt_instruments as sdi', 'products.id', 'sdi.products_id')
->leftJoin('fractional_real_estates as fre', 'products.id', 'fre.products_id')
->leftJoin('peer_to_peer_lendings as p2p', 'products.id', 'p2p.products_id')
->leftJoin('invoice_discountings as id', 'products.id', 'id.products_id')
->leftJoin('alternative_investment_funds as aif', 'products.id', 'aif.products_id')
->leftJoin('clean_and_green_assets as caga', 'products.id', 'caga.products_id')
->leftJoin('high_yield_finances as hyf', 'products.id', 'hyf.products_id')
->leftJoin('lease_based_financings as lbf', 'products.id', 'lbf.products_id')
->leftJoin('venture_debts as vd', 'products.id', 'vd.products_id')
->leftJoin('funds as fund', 'products.id', 'fund.products_id')
->leftJoin('real_estates as re', 'products.id', 're.products_id')
// $products = Product::query()
// ->select(DB::raw('products.id, coalesce(fre.property_name_and_location,aif.fund_name) as product_name'), DB::raw('DATE_FORMAT(products.created_at, "%d-%b-%Y") as date'), 'categories.category_name', DB::raw('coalesce(fre.minimum_investment,aif.minimum_investment) as minimum_investment'), 'products.commission_type', 'products.rate', 'products.commission', 'products.description', DB::raw('coalesce(fre.companies_id,aif.companies_id) as companies_id'), 'upfront_rate', 'trail_rate')
// ->leftJoin('fractional_real_estates as fre', 'products.id', 'fre.products_id')
// ->leftJoin('alternative_investment_funds as aif', 'products.id', 'aif.products_id')
// ->join('categories', 'products.categories_id', 'categories.id')
// ->latest('products.created_at')
// ->get();
// ->select(DB::raw('products.id, coalesce(fund.fund_name, re.property_name, sdi.product_name, p2p.scheme, fre.property_name_and_location,id.company_name,aif.fund_name,caga.project_name,hyf.security_name,lbf.company,sdi.product_name,vd.company_name) as product_name'), DB::raw('DATE_FORMAT(products.created_at, "%d-%b-%Y") as date'), 'categories.category_name', DB::raw('coalesce(sdi.minimum_investment,re.total_price, p2p.minimum_investment, fre.minimum_investment,id.minimum_investment,aif.minimum_investment,caga.minimum_investment,hyf.minimum_investment,lbf.minimum_investment,sdi.minimum_investment,vd.minimum_investment,fund.minimum_investment) as minimum_investment'), 'products.commission_type', 'products.rate', 'products.commission', 'products.description', DB::raw('coalesce(fre.companies_id,aif.companies_id,caga.companies_id,vd.companies_id) as companies_id'), 'upfront_rate', 'trail_rate')
// ->leftJoin('securitized_debt_instruments as sdi', 'products.id', 'sdi.products_id')
// ->leftJoin('peer_to_peer_lendings as p2p', 'products.id', 'p2p.products_id')
// ->leftJoin('invoice_discountings as id', 'products.id', 'id.products_id')
// ->leftJoin('clean_and_green_assets as caga', 'products.id', 'caga.products_id')
// ->leftJoin('high_yield_finances as hyf', 'products.id', 'hyf.products_id')
// ->leftJoin('lease_based_financings as lbf', 'products.id', 'lbf.products_id')
// ->leftJoin('venture_debts as vd', 'products.id', 'vd.products_id')
// ->leftJoin('funds as fund', 'products.id', 'fund.products_id')
// ->leftJoin('real_estates as re', 'products.id', 're.products_id')
// ->join('fractional_real_estates as fr', 'companies.id', 'fr.companies_id')
// ->leftJoin('alternative_investment_funds as aifp', 'companies.id', 'aifp.companies_id')
// ->leftJoin('clean_and_green_assets as cagap', 'companies.id', 'cagap.companies_id')
// ->leftJoin('venture_debts as vdp', 'companies.id', 'vdp.companies_id')
->join('categories', 'products.categories_id', 'categories.id')
// ->orderBy('products.created_at')
->latest('products.created_at')
->get();
// dd($products);
$products->each(function ($value) {
$monthlyData = MonthlyUpdateMaster::where('products_id', $value->id)->get();
// $product = Product::has('fractionalHasMany')->get();
$products = Product::with('categorys')->get();
// if($products->isNotEmpty())
// {
foreach($products as $product)
{
if(FractionalRealEstate::where('products_id',$product->id)->exists())
{
$product['data'] = FractionalRealEstate::where('products_id',$product->id)->first();
}
if(AlternativeInvestmentFund::where('products_id',$product->id)->exists())
{
$product['data'] = AlternativeInvestmentFund::where('products_id',$product->id)->first();
}
// geting total investment and total commission earned
$monthlyData = MonthlyUpdateMaster::where('products_id', $product->id)->get();
$totalCommission = 0;
$totalInvestment = 0;
if ($monthlyData->isNotEmpty()) {
@@ -84,9 +99,13 @@ class ManageCommissionController extends Controller
}
}
}
$value->totalInvestment = $totalInvestment;
$value->totalCommission = $totalCommission;
});
$product['totalInvestment'] = $totalInvestment;
$product['totalCommission'] = $totalCommission;
}
// }
// dd($products->toArray());
// $products->each(function ($value) {
// });
// dd($products->)
return view('Admin.Pages.manage_commission.manage_commission', compact('products'));
}

View File

@@ -1070,14 +1070,14 @@ class DashboardController extends Controller
'fund_category' => 'required',
'fund_structure' => 'required',
'type_of_fund' => 'required',
'fund_strategy' => 'required',
'fund_manager_name' => 'required',
'sponsor' => 'required',
// 'fund_strategy' => 'nullable',
// 'fund_manager_name' => 'nullable',
// 'sponsor' => 'nullable',
// 'credit_rating' => 'required',
'total_capital_commitment' => 'required',
'uncalled_capital_commitment' => 'required',
'date_of_final_close' => 'required',
'tenure_from_final_close' => 'required',
// 'date_of_final_close' => 'required',
// 'tenure_from_final_close' => 'required',
'current_or_latest_nav' => 'required',
'no_of_units_held' => 'required',
'no_of_units_you_wish_to_sell' => 'required',
@@ -1121,17 +1121,18 @@ class DashboardController extends Controller
'fund_category' => $request->fund_category,
'fund_structure' => $request->fund_structure,
'type_of_fund' => $request->type_of_fund,
'fund_strategy' => $request->fund_strategy,
'fund_manager_name' => $request->fund_manager_name,
'sponsor' => $request->sponsor,
'credit_rating' => $request->credit_rating,
'fund_strategy' => $request->fund_strategy ?? null,
'fund_manager_name' => $request->fund_manager_name ?? null,
'sponsor' => $request->sponsor ?? null,
'credit_rating' => $request->credit_rating ?? null,
'total_capital_commitment' => $request->total_capital_commitment,
'uncalled_capital_commitment' => $request->uncalled_capital_commitment,
'date_of_final_close' => $request->date_of_final_close,
'tenure_from_final_close' => $request->tenure_from_final_close,
'date_of_final_close' => $request->date_of_final_close ?? null,
'tenure_from_final_close' => $request->tenure_from_final_close ?? null,
'current_or_latest_nav' => $request->current_or_latest_nav,
'no_of_units_held' => $request->no_of_units_held,
'no_of_units_you_wish_to_sell' => $request->no_of_units_you_wish_to_sell,
'og_no_of_units_wish_to_sell' => $request->no_of_units_you_wish_to_sell,
'expected_sale_per_unit' => $request->expected_sale_per_unit,
'listing_status' => 'Hide',
'status' => 'Pending',
@@ -1151,10 +1152,10 @@ class DashboardController extends Controller
$validator = Validator::make($request->all(), [
'property_name' => 'required',
'property_address' => 'required',
'property_grade' => 'required',
'property_grade' => 'nullable',
'asset_type' => 'required',
'annual_rental_yield_earned' => 'required',
'rental_escalation' => 'required',
'rental_escalation' => 'nullable',
'fractional_real_estate_platform' => 'required',
'date_of_investment' => 'required',
'original_amount_invested' => 'required',
@@ -1198,15 +1199,17 @@ class DashboardController extends Controller
'property_name' => $request->property_name,
'slug' => SlugService::createSlug(MarketplaceFractionalRealEstateSeller::class, 'slug', $request->property_name),
'property_address' => $request->property_address,
'property_grade' => $request->property_grade,
'property_grade' => $request->property_grade ?? null,
'asset_type' => $request->asset_type,
'annual_rental_yield_earned' => $request->annual_rental_yield_earned,
'rental_escalation' => $request->rental_escalation,
'rental_escalation' => $request->rental_escalation ?? null,
'fractional_real_estate_platform' => $request->fractional_real_estate_platform,
'date_of_investment' => $request->date_of_investment,
'original_amount_invested' => $request->original_amount_invested,
'current_market_value_of_the_property' => $request->current_market_value_of_the_property,
'expected_selling_price' => $request->expected_selling_price,
'og_current_market_value_of_the_property' => $request->current_market_value_of_the_property,
'og_expected_selling_price' => $request->expected_selling_price,
'listing_status' => 'Hide',
'status' => 'Pending',
'latest_valuation_date' => $request->latest_valuation_date, //latest_valuation_date added by hritik on 09-04-24

View File

@@ -28,7 +28,7 @@ class GlobalFundResource extends JsonResource
return [
'id' => $this->id,
'products_id' => $this->products_id,
'product_images' => $imagePaths,
'product_images' => $imagePaths,
'presentation' => Product::find($this->products_id) ? Product::where('id',$this->products_id)->value('presentation') : null,
'fact_sheet' => Product::find($this->products_id) ? Product::where('id',$this->products_id)->value('fact_sheet') : null,
'slug' => $this->slug,
@@ -50,6 +50,7 @@ class GlobalFundResource extends JsonResource
'year1_return' => $this->year1_return,
'year3_return' => $this->year3_return,
'returns' => $this->returns,
'date_as_on' => $this->date_as_on,
// 'product_images' => ProductImage::where('product_xid',$this->products_id)->get(),
];

View File

@@ -5,6 +5,7 @@ namespace App\Http\Resources;
use App\Models\Product;
use App\Resources\ProductPhotoResources;
use Illuminate\Http\Resources\Json\JsonResource;
use App\Models\ProductImage;
class RealEstateResource extends JsonResource
{
@@ -16,11 +17,23 @@ class RealEstateResource extends JsonResource
*/
public function toArray($request)
{
$images = ProductImage::where('product_xid', $this->products_id)->get();
$imagePaths = [];
if (!empty($images)) {
foreach ($images as $imageItem) {
$path = asset('public/' . $imageItem['images']);
$imagePaths[] = $path;
}
}
return [
'id' => $this->id,
'products_id' => $this->products_id,
'product_images' => $imagePaths,
'presentation' => Product::find($this->products_id) ? Product::where('id',$this->products_id)->value('presentation') : null,
'fact_sheet' => Product::find($this->products_id) ? Product::where('id',$this->products_id)->value('fact_sheet') : null,
'description' => Product::find($this->products_id) ? Product::where('id',$this->products_id)->value('description') : null,
'property_name' => $this->property_name,
'slug' => $this->slug,
'property_location' => $this->property_location,
@@ -65,6 +78,7 @@ class RealEstateResource extends JsonResource
'location' => $this->location,
'country' => $this->country,
'remarks' => $this->remarks,
'minimum_investment' => $this->total_price,
'photos' => ProductPhotoResource::collection($this->realEstatePhoto),
'documents' => ProductPhotoResource::collection($this->realEstateDocuments)
];

View File

@@ -2074,7 +2074,7 @@ li.item.list-item:nth-child(even) {
.logout-modal p.log-ctn {
font-size: 18px;
text-align: center !important;
}
}
.logout-modal .log-btn {
display: flex;
@@ -6506,10 +6506,10 @@ button.swal2-confirm.btn.yellow-btn.popup-button {
}
.menubar .admin-profile .dropdown-menu {
width: 300px;
width: 280px;
transform: translate(-40%, 40px) !important;
padding: 10px;
height: 400px;
/* height: 400px; */
overflow-x: hidden;
}
.notifications .list-item p strong {
@@ -6555,3 +6555,7 @@ button#modal_close span {
.your-investment .accordion-button::after {
transform: rotate(180deg) !important;
}
.admin-profile .dropdown .dropdown-menu {
max-height: 500px !important;
}

View File

@@ -20,16 +20,16 @@
<p class='fs-2 fw-bold'>Manage Commission</p>
<div class="table_right_options d-flex">
<!-- <button type="button" class="btn btn-light-primary me-3">
begin::Svg Icon | path: icons/duotune/arrows/arr078.svg
<span class="svg-icon svg-icon-2 import_btn">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect opacity="0.3" x="12.75" y="4.25" width="12" height="2" rx="1" transform="rotate(90 12.75 4.25)" fill="currentColor"></rect>
<path d="M12.0573 6.11875L13.5203 7.87435C13.9121 8.34457 14.6232 8.37683 15.056 7.94401C15.4457 7.5543 15.4641 6.92836 15.0979 6.51643L12.4974 3.59084C12.0996 3.14332 11.4004 3.14332 11.0026 3.59084L8.40206 6.51643C8.0359 6.92836 8.0543 7.5543 8.44401 7.94401C8.87683 8.37683 9.58785 8.34458 9.9797 7.87435L11.4427 6.11875C11.6026 5.92684 11.8974 5.92684 12.0573 6.11875Z" fill="currentColor"></path>
<path opacity="0.3" d="M18.75 8.25H17.75C17.1977 8.25 16.75 8.69772 16.75 9.25C16.75 9.80228 17.1977 10.25 17.75 10.25C18.3023 10.25 18.75 10.6977 18.75 11.25V18.25C18.75 18.8023 18.3023 19.25 17.75 19.25H5.75C5.19772 19.25 4.75 18.8023 4.75 18.25V11.25C4.75 10.6977 5.19771 10.25 5.75 10.25C6.30229 10.25 6.75 9.80228 6.75 9.25C6.75 8.69772 6.30229 8.25 5.75 8.25H4.75C3.64543 8.25 2.75 9.14543 2.75 10.25V19.25C2.75 20.3546 3.64543 21.25 4.75 21.25H18.75C19.8546 21.25 20.75 20.3546 20.75 19.25V10.25C20.75 9.14543 19.8546 8.25 18.75 8.25Z" fill="currentColor"></path>
</svg>
</span>
end::Svg Icon
</button> -->
begin::Svg Icon | path: icons/duotune/arrows/arr078.svg
<span class="svg-icon svg-icon-2 import_btn">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect opacity="0.3" x="12.75" y="4.25" width="12" height="2" rx="1" transform="rotate(90 12.75 4.25)" fill="currentColor"></rect>
<path d="M12.0573 6.11875L13.5203 7.87435C13.9121 8.34457 14.6232 8.37683 15.056 7.94401C15.4457 7.5543 15.4641 6.92836 15.0979 6.51643L12.4974 3.59084C12.0996 3.14332 11.4004 3.14332 11.0026 3.59084L8.40206 6.51643C8.0359 6.92836 8.0543 7.5543 8.44401 7.94401C8.87683 8.37683 9.58785 8.34458 9.9797 7.87435L11.4427 6.11875C11.6026 5.92684 11.8974 5.92684 12.0573 6.11875Z" fill="currentColor"></path>
<path opacity="0.3" d="M18.75 8.25H17.75C17.1977 8.25 16.75 8.69772 16.75 9.25C16.75 9.80228 17.1977 10.25 17.75 10.25C18.3023 10.25 18.75 10.6977 18.75 11.25V18.25C18.75 18.8023 18.3023 19.25 17.75 19.25H5.75C5.19772 19.25 4.75 18.8023 4.75 18.25V11.25C4.75 10.6977 5.19771 10.25 5.75 10.25C6.30229 10.25 6.75 9.80228 6.75 9.25C6.75 8.69772 6.30229 8.25 5.75 8.25H4.75C3.64543 8.25 2.75 9.14543 2.75 10.25V19.25C2.75 20.3546 3.64543 21.25 4.75 21.25H18.75C19.8546 21.25 20.75 20.3546 20.75 19.25V10.25C20.75 9.14543 19.8546 8.25 18.75 8.25Z" fill="currentColor"></path>
</svg>
</span>
end::Svg Icon
</button> -->
<button type="button" class="btn btn-light-primary me-3" id="ExportReporttoExcel">
<span class="svg-icon svg-icon-2">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
@@ -86,43 +86,46 @@
<th class="w-60px pe-2 align-top">Sr no</th>
<th class="min-w-125px w-150px align-top">Product</th>
<th class="min-w-50px w-75px align-top">Date</th>
<th class="min-w-50px w-100px align-top">Total Investment</th>
<th class="min-w-150px w-100px align-top">Total Investment</th>
<th class="min-w-50px w-100px align-top ">Commission Type</th>
<th class="min-w-50px w-150px align-top">Category</th>
<th class="min-w-50px w-100px align-top">Rate</th>
<th class="min-w-150px w-100px align-top">Rate</th>
<th class="min-w-50px w-100px align-top">Commission</th>
<th class="text-center min-w-100px align-top notexport">Actions</th>
</tr>
</thead>
<tbody class="text-gray-600 fw-semibold">
{{-- @dd($products->toArray()) --}}
@foreach ($products as $product)
<tr>
<td>
<div
class="form-check form-check-sm form-check-custom form-check-solid">
{{ $loop->iteration }}
</div>
</td>
<td>{{ $product->product_name }}</td>
<td class='w-75px'>
<div class="badge badge-light fw-bold">{{ $product->date }}</div>
</td>
<td>{{ $product->totalInvestment }}</td>
<td>{{ $product->commission_type }}</td>
<td>{{ $product->category_name }}</td>
<td>{{ number_format($product->rate ?? $product->upfront_rate ?? $product->trail_rate,2) }} %</td>
<td>{{ $product->totalCommission }}</td>
<td class="text-end d-flex align-items-center justify-content-around notexport">
<a
href="{{ route('get-product', ['id' => $product->id, 'product' => $product->product_name]) }}"><i
class="fa-regular fa-eye"></i> </a>
<a
href="{{ route('edit-commission', ['id' => $product->id, 'product' => $product->product_name]) }}"><i
class="fa-solid fa-pen-to-square"></i></a>
</td>
</tr>
@if ($product->data)
<tr>
<td>
<div
class="form-check form-check-sm form-check-custom form-check-solid">
{{ $loop->iteration }}
</div>
</td>
<td>{{ $product->data->fund_name ?? $product->data->property_name_and_location }}
</td>
<td class='w-75px'>
<div class="badge badge-light fw-bold">{{ date('d-m-Y', strtotime($product->created_at)) }}</div>
</td>
<td>{{ IND_money_format($product->totalInvestment) }}</td>
<td>{{ $product->commission_type ?? '--' }}</td>
<td>{{ $product->categorys->category_name }}</td>
<td>{{ number_format($product->rate ?? ($product->upfront_rate ?? $product->trail_rate), 2) }}
%</td>
<td>{{ IND_money_format($product->totalCommission) }}</td>
<td
class="text-end d-flex align-items-center justify-content-around notexport">
<a
href="{{ route('get-product', ['id' => $product->id, 'product' => $product->data->fund_name ?? $product->data->property_name_and_location]) }}"><i
class="fa-regular fa-eye"></i> </a>
<a
href="{{ route('edit-commission', ['id' => $product->id, 'product' => $product->data->fund_name ?? $product->data->property_name_and_location]) }}"><i
class="fa-solid fa-pen-to-square"></i></a>
</td>
</tr>
@endif
@endforeach
</tbody>
</table>

View File

@@ -18,8 +18,8 @@
<td>{{$data->seller->name}}</td>
<td>{{$data->seller->email}}</td>
<td>{{$data->seller->contact_number}}</td>
<td>{{$data->latest_valuation_date}}</td>
<td>{{$data->created_at->format('d/m/Y H:i:s')}}</td>
<td>{{date('d-m-Y', strtotime($data->latest_valuation_date))}}</td>
<td>{{$data->created_at->format('d-m-Y')}}</td>
{{--@if($approvedTable)
<td>
<select class="" name="listing_status" id="">

View File

@@ -75,8 +75,8 @@
<th class="min-w-50px w-125px align-top">Seller Name</th>
<th class="min-w-50px w-100px align-top ">Email</th>
<th class="min-w-50px w-100px align-top">Contact</th>
<th class="min-w-50px w-200px align-top">Latest Valuation Date</th>
<th class="min-w-50px w-100px align-top">Date</th>
<th class="min-w-100px w-200px align-top">Latest Valuation Date</th>
<th class="min-w-100px w-100px align-top">Date</th>
<th class="text-center min-w-100px align-top">Actions</th>
</tr>
</thead>
@@ -138,8 +138,8 @@
<th class="min-w-50px w-125px align-top">Seller Name</th>
<th class="min-w-50px w-100px align-top ">Email</th>
<th class="min-w-50px w-100px align-top">Contact</th>
<th class="min-w-50px w-200px align-top">Latest Valuation Date</th>
<th class="min-w-50px w-100px align-top">Date</th>
<th class="min-w-100px w-200px align-top">Latest Valuation Date</th>
<th class="min-w-100px w-100px align-top">Date</th>
<th class="text-center min-w-100px align-top">Actions</th>
</tr>
</thead>
@@ -200,8 +200,8 @@
<th class="min-w-50px w-125px align-top">Seller Name</th>
<th class="min-w-50px w-100px align-top ">Email</th>
<th class="min-w-50px w-100px align-top">Contact</th>
<th class="min-w-50px w-200px align-top">Latest Valuation Date</th>
<th class="min-w-50px w-100px align-top">Date</th>
<th class="min-w-100px w-200px align-top">Latest Valuation Date</th>
<th class="min-w-100px w-100px align-top">Date</th>
<th class="text-center min-w-100px align-top">Actions</th>
</tr>
</thead>

View File

@@ -104,7 +104,7 @@
<table>
<thead>
<tr>
<th scope="col" style="width:200px;">Asset Name</th>
<th scope="col" style="min-width:200px;">Asset Name</th>
<th scope="col" style="width: 80px;min-width: 80px">Region</th>
<th scope="col" style="width: 80px;min-width: 80px">Product Category</th>
<th scope="col" style="width: 90px;min-width: 90px">No. of Units</th>
@@ -125,14 +125,11 @@
@foreach ($featuredMarketplaceListed['data'] as $freData)
@if (array_key_exists('fractional-real-estate', $freData))
@foreach ($freData['fractional-real-estate'] as $data)
{{-- @dd($data) --}}
{{-- @dd($data) --}}
@php($true = false)
<tr class="fractional-real-estate">
<td>
<div class="d-flex tb-img"
style="width: 200px; text-align: left; align-items: center;">
<p>{{ $data->property_name }}</p>
</div>
{{ $data->property_name }}
</td>
<td>
@if ($data->geographic_focus == 'India')
@@ -158,7 +155,8 @@
<td class="text-center">
{{ IND_money_format($data->current_market_value_of_the_property) }}
</td>
<td class="text-center">{{ IND_money_format($data->expected_selling_price) }}</td>
<td class="text-center">
{{ IND_money_format($data->expected_selling_price) }}</td>
<td class="text-center">
@if (intval($data->discount) > 0)
@php($btn = 'green-btn')
@@ -171,7 +169,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ number_format((float)$data->discount, 2, '.', '') }}%</a>
style="{{ $style }}">{{ number_format((float) $data->discount, 2, '.', '') }}%</a>
</td class="text-center">
<td class="text-center">
@if ($data->bid > 0)
@@ -184,7 +182,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}%</a>
style="{{ $style }}">{{ number_format((float) $data->bid, 2, '.', '') }}%</a>
</td>
<td class="text-center">
<a href=""
@@ -205,10 +203,11 @@
@php($true = false)
<tr class="alternative-investment-fund">
<td>
<div class="d-flex tb-img"
{{-- <div class="d-flex tb-img"
style="width: 200px; text-align: left; align-items: center;">
<p>{{ $data->name_of_the_aif_fund }}</p>
</div>
</div> --}}
{{ $data->name_of_the_aif_fund }}
</td>
<td>
@if ($data->geographic_focus == 'India')
@@ -229,13 +228,16 @@
</div>
</td>
<td class="text-center">{{ $data->no_of_units_you_wish_to_sell }}</td>
<td class="text-center">{{ IND_money_format($data->current_or_latest_nav) }}</td>
<td class="text-center">
{{ IND_money_format($data->current_or_latest_nav) }}</td>
<td class="text-center">{{ $data->latest_valuation_date ?? 'N/A' }}</td>
{{-- <td class="text-center">{{ 'N/A' }}</td> --}}
{{-- <td class="text-center"> {{ $data->current_or_latest_nav * $data->no_of_units_you_wish_to_sell }}</td> --}}
<td class="text-center">{{ IND_money_format($data->current_or_latest_nav * $data->no_of_units_you_wish_to_sell) }}
<td class="text-center">
{{ IND_money_format($data->current_or_latest_nav * $data->no_of_units_you_wish_to_sell) }}
</td>
<td class="text-center">{{ IND_money_format($data->getRawOriginal('expected_sale_per_unit') * $data->no_of_units_you_wish_to_sell) }}
<td class="text-center">
{{ IND_money_format($data->getRawOriginal('expected_sale_per_unit') * $data->no_of_units_you_wish_to_sell) }}
</td>
<td class="text-center">
@if ($data->discount > 0)
@@ -249,7 +251,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ number_format((float)$data->discount, 2, '.', '') }}%</a>
style="{{ $style }}">{{ number_format((float) $data->discount, 2, '.', '') }}%</a>
</td class="text-center">
<td class="text-center">
@if ($data->bid > 0)
@@ -262,7 +264,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}%</a>
style="{{ $style }}">{{ number_format((float) $data->bid, 2, '.', '') }}%</a>
</td>
<td class="text-center">
<a href="javascript:void(0)"
@@ -322,7 +324,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ number_format((float)$data->discount, 2, '.', '') }}%</a>
style="{{ $style }}">{{ number_format((float) $data->discount, 2, '.', '') }}%</a>
</td class="text-center">
<td class="text-center">
@if ($data->bid > 0)
@@ -335,7 +337,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}%</a>
style="{{ $style }}">{{ number_format((float) $data->bid, 2, '.', '') }}%</a>
</td>
<td class="text-center">
<a href="javascript:void(0)"
@@ -349,7 +351,7 @@
@endforeach
@endif
@endforeach
{{-- @if($true == true)
{{-- @if ($true == true)
<tr>
<td></td>
<td></td>
@@ -416,7 +418,7 @@
<table>
<thead>
<tr>
<th scope="col" style="width:200px;">Asset Name</th>
<th scope="col" style="min-width:200px;">Asset Name</th>
<th scope="col" style="width: 80px;min-width: 80px">Region</th>
<th scope="col" style="width: 80px;min-width: 80px">Product Category</th>
<th scope="col" style="width: 90px;min-width: 90px">No. of Units</th>
@@ -437,13 +439,14 @@
@foreach ($nonFeaturedMarketplaceListed['data'] as $freData)
@if (array_key_exists('fractional-real-estate', $freData))
@foreach ($freData['fractional-real-estate'] as $data)
{{-- @php($secondTrue = false) --}}
{{-- @php($secondTrue = false) --}}
<tr class="fractional-real-estate">
<td>
<div class="d-flex tb-img"
{{-- <div class="d-flex tb-img"
style="width: 200px; text-align: left; align-items: center;">
<p>{{ $data->property_name }}</p>
</div>
</div> --}}
{{ $data->property_name }}
</td>
<td>
@if ($data->geographic_focus == 'India')
@@ -466,9 +469,11 @@
<td class="text-center">N/A</td>
<td class="text-center">N/A</td>
<td class="text-center">{{ $data->latest_valuation_date }}</td>
<td class="text-center">{{ IND_money_format($data->current_market_value_of_the_property) }}
<td class="text-center">
{{ IND_money_format($data->current_market_value_of_the_property) }}
</td>
<td class="text-center">{{ IND_money_format($data->expected_selling_price) }}</td>
<td class="text-center">
{{ IND_money_format($data->expected_selling_price) }}</td>
<td class="text-center">
@if ($data->discount > 0)
@php($btn = 'green-btn')
@@ -491,9 +496,9 @@
@elseif($data->bid == 0)
@php($btn = 'sliver-btn')
@php($style = '')
@endif
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}%</a>
style="{{ $style }}">{{ number_format((float) $data->bid, 2, '.', '') }}%</a>
</td>
<td class="text-center">
<a href=""
@@ -510,13 +515,14 @@
@foreach ($nonFeaturedMarketplaceListed['data'] as $aifData)
@if (array_key_exists('alternative-investment-fund', $aifData))
@foreach ($aifData['alternative-investment-fund'] as $data)
{{-- @php($secondTrue = false) --}}
{{-- @php($secondTrue = false) --}}
<tr class="alternative-investment-fund">
<td>
<div class="d-flex tb-img"
{{-- <div class="d-flex tb-img"
style="width: 200px; text-align: left; align-items: center;">
<p>{{ $data->name_of_the_aif_fund }}</p>
</div>
</div> --}}
{{ $data->name_of_the_aif_fund }}
</td>
<td>
@if ($data->geographic_focus == 'India')
@@ -538,13 +544,18 @@
</td>
<td class="text-center">{{ $data->no_of_units_you_wish_to_sell }}</td>
{{-- <td class="text-center">{{ $data->expected_sale_per_unit }}</td> --}}
<td class="text-center">{{ IND_money_format($data->current_or_latest_nav) }}</td>
<td class="text-center">
{{ IND_money_format($data->current_or_latest_nav) }}</td>
<td class="text-center">{{ $data->latest_valuation_date ?? 'N/A' }}</td>
{{-- <td class="text-center">{{ $data->total_capital_commitment }}</td> --}}
{{-- <td class="text-center">{{ $data->current_or_latest_nav }}</td>
<td class="text-center">{{ $data->expected_sale_per_unit }}</td> --}}
<td class="text-center">{{ IND_money_format($data->current_or_latest_nav * $data->no_of_units_you_wish_to_sell) }}</td>
<td class="text-center">{{ IND_money_format($data->getRawOriginal('expected_sale_per_unit') * $data->no_of_units_you_wish_to_sell) }}</td>
<td class="text-center">
{{ IND_money_format($data->current_or_latest_nav * $data->no_of_units_you_wish_to_sell) }}
</td>
<td class="text-center">
{{ IND_money_format($data->getRawOriginal('expected_sale_per_unit') * $data->no_of_units_you_wish_to_sell) }}
</td>
<td class="text-center">
@if ($data->discount > 0)
@php($btn = 'green-btn')
@@ -586,7 +597,7 @@
@foreach ($nonFeaturedMarketplaceListed['data'] as $opData)
@if (array_key_exists('other-products', $opData))
@foreach ($opData['other-products'] as $data)
{{-- @php($secondTrue = false) --}}
{{-- @php($secondTrue = false) --}}
<tr class="other-products">
<td>
<div class="d-flex tb-img"
@@ -656,7 +667,7 @@
@endforeach
@endif
@endforeach
{{-- @if($secondTrue == true)
{{-- @if ($secondTrue == true)
<tr>
<td></td>
<td></td>
@@ -722,10 +733,10 @@
<div class="modal-content">
<!-- <h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5> -->
<!-- <div class="modal-header">
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div> -->
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div> -->
<div class="modal-body">
<h4 class="text-center">Currently, No Secondary Sale Opportunities Available.</h4>
</div>