Merge pull request #43 from Ritikeshyadav/RitikeshFreeu

Ritikesh freeu
This commit is contained in:
Ritikeshyadav
2024-04-10 12:45:13 +05:30
committed by GitHub
8 changed files with 114 additions and 31 deletions

View File

@@ -18,8 +18,8 @@ class FractionalRealEstateResource extends JsonResource
return [
'id' => $this->id,
'products_id' => $this->products_id,
'presentation' => Product::find($this->products_id)->value('presentation'),
'fact_sheet' => Product::find($this->products_id)->value('fact_sheet'),
'presentation' => Product::find($this->products_id) == null ? '' : Product::find($this->products_id)->value('presentation'),
'fact_sheet' => Product::find($this->products_id) == null ? '' : Product::find($this->products_id)->value('fact_sheet'),
'companies_id' => $this->companies_id,
'slug' => $this->slug,
'property_name_and_location' => $this->property_name_and_location,

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

View File

@@ -1,5 +1,58 @@
@extends('Frontend.layouts.master')
@section('content')
<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>
<div class="product-banner">
<div class="container">
<div class="content aos-init aos-animate" data-aos="fade-right">
@@ -55,6 +108,29 @@
<!--</div>-->
<div class="table-invest">
<div class="container">
<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>
<br />
<div class="categeory">
<div class="details aos-init aos-animate" data-aos="zoom-in">
<div class="tables row">

View File

@@ -168,7 +168,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->discount }}%</a>
style="{{ $style }}">{{ number_format((float)$data->discount, 2, '.', '') }}%</a>
</td class="text-center">
<td class="text-center">
@if ($data->bid > 0)
@@ -181,7 +181,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->bid }}%</a>
style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}%</a>
</td>
<td class="text-center">
<a href=""
@@ -247,7 +247,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->discount }}%</a>
style="{{ $style }}">{{ number_format((float)$data->discount, 2, '.', '') }}%</a>
</td class="text-center">
<td class="text-center">
@if ($data->bid > 0)
@@ -260,7 +260,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->bid }}%</a>
style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}%</a>
</td>
<td class="text-center">
<a href="javascript:void(0)"
@@ -319,7 +319,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->discount }}%</a>
style="{{ $style }}">{{ number_format((float)$data->discount, 2, '.', '') }}%</a>
</td class="text-center">
<td class="text-center">
@if ($data->bid > 0)
@@ -332,7 +332,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->bid }}%</a>
style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}%</a>
</td>
<td class="text-center">
<a href="javascript:void(0)"
@@ -454,7 +454,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->discount }}%</a>
style="{{ $style }}">{{ number_format((float) $data->discount, 2, '.', '') }}%</a>
</td class="text-center">
<td class="text-center">
@if ($data->bid > 0)
@@ -467,7 +467,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->bid }}%</a>
style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}%</a>
</td>
<td class="text-center">
<a href=""
@@ -525,7 +525,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->discount }}%</a>
style="{{ $style }}">{{ number_format((float) $data->discount, 2, '.', '') }}%</a>
</td class="text-center">
<td class="text-center">
@if ($data->bid > 0)
@@ -538,7 +538,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->bid }}%</a>
style="{{ $style }}">{{ number_format((float) $data->bid, 2, '.', '') }}%</a>
</td>
<td class="text-center">
<a href="javascript:void(0)"
@@ -597,7 +597,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->discount }}%</a>
style="{{ $style }}">{{ number_format((float) $data->discount, 2, '.', '') }}%</a>
</td class="text-center">
<td class="text-center">
@if ($data->bid > 0)
@@ -610,7 +610,7 @@
@php($style = '')
@endif
<a href="" class="{{ $btn }}"
style="{{ $style }}">{{ $data->bid }}%</a>
style="{{ $style }}">{{ number_format((float) $data->bid, 2, '.', '') }}%</a>
</td>
<td class="text-center">
<a href="javascript:void(0)"
@@ -669,10 +669,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>

View File

@@ -8,7 +8,9 @@
<!--<a class="yellow-btn" data-bs-toggle="modal" id="recipes-popbtn-four" data-product-id="{{ $offering->products_id }}" data-bs-target="#investmodal-pop">Invest</a>-->
{{-- @dd($offering->sold_status) --}}
{{-- @dd($investedData) --}}
@if ($investedData && $investedData->status != 'Sold')
@if (
($investedData && $investedData->status != 'Sold') ||
($investedData != null ? $investedData->status == 'OPEN' : true))
@if ($logged_in)
@if (!$ownProduct)
@if (!$invested)
@@ -20,30 +22,35 @@
id="" data-product-id="{{ $offering->products_id }}"
data-bs-target="#recipes-pop-four">Added To
Investment Watchlist!</a> --}}
<a href="{{ route('editBuyerForm', $offering->slug) }}" class="yellow-btn grow_skew_forward"
id="" data-product-id="{{ $offering->products_id }}"
data-bs-target="#recipes-pop-four"
style="
<a href="{{ route('editBuyerForm', $offering->slug) }}" class="yellow-btn grow_skew_forward"
id="" data-product-id="{{ $offering->products_id }}"
data-bs-target="#recipes-pop-four"
style="
padding: 10px;
height: 34px;
">Edit Your Bid</a>
">Edit
Your Bid</a>
@endif
@endif
@else
<button class="yellow-btn grow_skew_forward" data-bs-toggle="modal"
data-bs-target="#exampleModalCenter">Show Interest</button>
@endif
{{ $totalInterestedBuyers }}
@else
{{-- @if ($investedData && $investedData->status == 'OPEN') --}}
<p>"We're pleased to announce the successful sale of this product and therefore this opportunity is no
longer available in our secondary offerings."</p>
@endif
{{ $totalInterestedBuyers }}
{{-- <a href="{{ route('buyerForm', $offering->slug) }}" class="yellow-btn grow_skew_forward"
id="" data-product-id="{{ $offering->products_id }}"
data-bs-target="#recipes-pop-four">Show Interest</a> --}}
{{-- @if ($offering->sold_status == 'OPEN') --}}
{{-- @if ($offering->sold_status == 'OPEN') --}}
{{-- <a href="{{ route('editBuyerForm', $offering->slug) }}" class="yellow-btn grow_skew_forward"
id="" data-product-id="{{ $offering->products_id }}"
@@ -52,7 +59,7 @@
padding: 10px;
height: 34px;
">Edit Your Bid</a> --}}
{{-- @endif --}}
{{-- @endif --}}
</div>
</div>
</div>

View File

@@ -134,10 +134,10 @@
required>
<label for="checked_risk_disclosure">Accept Risk Disclosure</label>
</div>
<div class="modal-footer">
<div class="modal-footer" style="margin-bottom: -13px;">
{{-- <button type="button" class="btn btn-secondary close_btn"
data-bs-dismiss="modal">Close</button> --}}
<button type="submit" class="yellow-btn">Accept</button>
<button type="submit" class="yellow-btn" style="height:30px">Accept</button>
</div>
</form>
</div>