Merge branch 'main' of https://github.com/Ritikeshyadav/my-freeu into HritikFreeu
This commit is contained in:
@@ -68,7 +68,7 @@ class AdminLoginController extends Controller
|
||||
'last_login' => now()
|
||||
]);
|
||||
// $redirectPage = Iam_App_Resource_Action_Link::where('user_xid',$user->id)->first();
|
||||
return response()->json(['status' => 200, 'message' => 'Welcome!']);
|
||||
return response()->json(['status' => 200, 'message' => 'Welcome!','return_to_page'=>$user->role == 1 ? route('dashboard'):route('welcome-to-dashboard')]);
|
||||
}
|
||||
return response()->json(['status' => 401, 'message' => 'OTP has expired!']);
|
||||
} else {
|
||||
|
||||
@@ -8,6 +8,7 @@ use App\Imports\BondImport;
|
||||
use App\Imports\CleanAndGreenAssetImport;
|
||||
use App\Imports\FundImport;
|
||||
use App\Imports\StockFundsRealEstateExchangeImport;
|
||||
use App\Models\VentureDebt;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Maatwebsite\Excel\Facades\Excel;
|
||||
@@ -76,6 +77,27 @@ class ManageFreeUInvestmentController extends Controller
|
||||
{
|
||||
// dd($request->all());
|
||||
$product = Product::where('id', $request->id)->delete();
|
||||
// $FREProduct = FractionalRealEstate::where('products_id',$request->id)->first();
|
||||
if (FractionalRealEstate::where('products_id', $request->id)->exists()) {
|
||||
FractionalRealEstate::where('products_id', $request->id)->delete();
|
||||
} elseif (AlternativeInvestmentFund::where('products_id', $request->id)->exists()) {
|
||||
AlternativeInvestmentFund::where('products_id', $request->id)->delete();
|
||||
} elseif (RealEstate::where('products_id', $request->id)->exists()) {
|
||||
RealEstate::where('products_id', $request->id)->delete();
|
||||
} elseif (Fund::where('products_id', $request->id)->exists()) {
|
||||
Fund::where('products_id', $request->id)->delete();
|
||||
} elseif (IndianFinancialAssets::where('products_id', $request->id)->exists()) {
|
||||
IndianFinancialAssets::where('products_id', $request->id)->delete();
|
||||
} elseif (StockFundsRealEstateExchange::where('products_id', $request->id)->exists()) {
|
||||
StockFundsRealEstateExchange::where('products_id', $request->id)->delete();
|
||||
} elseif (VentureDebt::where('products_id', $request->id)->exists()) {
|
||||
VentureDebt::where('products_id', $request->id)->delete();
|
||||
} elseif (VentureDebt::where('products_id', $request->id)->exists()) {
|
||||
VentureDebt::where('products_id', $request->id)->delete();
|
||||
} elseif (InvoiceDiscounting::where('products_id', $request->id)->exists()) {
|
||||
InvoiceDiscounting::where('products_id', $request->id)->delete();
|
||||
}
|
||||
|
||||
if ($product) {
|
||||
return response(['status' => 200, 'message' => 'Product deleted successfully']);
|
||||
} else {
|
||||
|
||||
@@ -192,13 +192,14 @@ class FractionalRealEstateController extends Controller
|
||||
|
||||
|
||||
if ($request->hasFile('images')) {
|
||||
// dd($request->hasFile('images'));
|
||||
dd($request->hasFile('images'));
|
||||
// $edit_program_images = ProgramImage::where('programs_xid', $program_id)->delete();
|
||||
|
||||
foreach ($request->file('images') as $key => $file) {
|
||||
$filename = date('YmdHi') . '_' . $file->getClientOriginalName();
|
||||
$file->move(public_path('assets/uploads/fractionalrealestate_images'), $filename);
|
||||
$images = 'assets/uploads/fractionalrealestate_images/' . $filename;
|
||||
|
||||
$fractionalRealEstate = new ProductImage();
|
||||
$fractionalRealEstate->product_xid = $request->product_id;
|
||||
$fractionalRealEstate->images = $images;
|
||||
|
||||
@@ -15,13 +15,13 @@ class FractionalRealEstateController extends Controller
|
||||
public function index()
|
||||
{
|
||||
$fractionalRealEstate = $this->fractData()->getData();
|
||||
$openFRE = Product::has('fractional_real_estate')->with('fractional_real_estate.companies','categorys')->open()->active()->latest()->get();
|
||||
$resaleFRE = Product::has('fractional_real_estate')->with('fractional_real_estate.companies','categorys')->resale()->active()->latest()->get();
|
||||
$fullyFundedFRE = Product::has('fractional_real_estate')->with('fractional_real_estate.companies','categorys')->fullyFunded()->active()->latest()->get();
|
||||
$openFRE = Product::has('fractional_real_estate')->with('fractional_real_estate.companies', 'categorys')->open()->active()->latest()->get();
|
||||
$resaleFRE = Product::has('fractional_real_estate')->with('fractional_real_estate.companies', 'categorys')->resale()->active()->latest()->get();
|
||||
$fullyFundedFRE = Product::has('fractional_real_estate')->with('fractional_real_estate.companies', 'categorys')->fullyFunded()->active()->latest()->get();
|
||||
$learnMore = (new FractionalRealEstateFontendController)->fractionalRealEstateQuestionAndAnswer()->getData();
|
||||
// $faqs = (new FractionalRealEstateFontendController)->fractionalRealEstateQuestionAndAnswerFaqs()->getData();
|
||||
// dd($openFRE);
|
||||
return view('Frontend.Pages.fractional-real-estate.index', compact('fractionalRealEstate','learnMore','openFRE', 'resaleFRE', 'fullyFundedFRE'));
|
||||
return view('Frontend.Pages.fractional-real-estate.index', compact('fractionalRealEstate', 'learnMore', 'openFRE', 'resaleFRE', 'fullyFundedFRE'));
|
||||
}
|
||||
|
||||
public function product($slug)
|
||||
@@ -32,27 +32,26 @@ class FractionalRealEstateController extends Controller
|
||||
->where(['status' => true, 'categories_id' => 2])
|
||||
->where('slug', '!=', $slug)
|
||||
->get();
|
||||
// dd($fractionalRealEstate);
|
||||
|
||||
$productData = FractionalRealEstate::where('slug','=',$slug)->first();
|
||||
$productData = Product::where('id','=',$productData->products_id)->first();
|
||||
// dd($fractionalRealEstate);
|
||||
|
||||
$productData = FractionalRealEstate::where('slug', '=', $slug)->first();
|
||||
$productData = Product::with('product_images')->where('id', $productData->products_id)->first();
|
||||
// dd($productData);
|
||||
// $productData['presentation_file'] = $productData->getRawOriginal('presentation');
|
||||
// $productData['fact_sheet_file'] = $productData->getRawOriginal('fact_sheet');
|
||||
// dd($fractionalRealEstate);
|
||||
return view('Frontend.Pages.fractional-real-estate.product', compact('fractionalRealEstate','otherFRE','productData'));
|
||||
return view('Frontend.Pages.fractional-real-estate.product', compact('fractionalRealEstate', 'otherFRE', 'productData'));
|
||||
}
|
||||
|
||||
public function downloadFilePersantation($filename){
|
||||
|
||||
public function downloadFilePersantation($filename)
|
||||
{
|
||||
// dd($filename);
|
||||
if(\File::exists('public/uploads/product/presentation/'.$filename))
|
||||
{
|
||||
if (\File::exists('public/uploads/product/presentation/' . $filename)) {
|
||||
// dd('hello');
|
||||
return response()->download(public_path('/uploads/product/presentation/'.$filename));
|
||||
}
|
||||
else if(\File::exists('public/uploads/product/fact_sheet/'.$filename))
|
||||
{
|
||||
return response()->download(public_path('/uploads/product/fact_sheet/'.$filename));
|
||||
}else{
|
||||
return response()->download(public_path('/uploads/product/presentation/' . $filename));
|
||||
} else if (\File::exists('public/uploads/product/fact_sheet/' . $filename)) {
|
||||
return response()->download(public_path('/uploads/product/fact_sheet/' . $filename));
|
||||
} else {
|
||||
return "file not found";
|
||||
}
|
||||
dd('hello');
|
||||
@@ -62,8 +61,7 @@ class FractionalRealEstateController extends Controller
|
||||
{
|
||||
try {
|
||||
$product = Product::has('fractional_real_estate')->with('fractional_real_estate.companies')->active()->get();
|
||||
foreach($product as $fre)
|
||||
{
|
||||
foreach ($product as $fre) {
|
||||
$fre->fractional_real_estate->property_img = $fre->fractional_real_estate->getRawOriginal('property_image');
|
||||
}
|
||||
return (new test($product))
|
||||
@@ -74,9 +72,10 @@ class FractionalRealEstateController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function fractionalRealEstateData($slug){
|
||||
public function fractionalRealEstateData($slug)
|
||||
{
|
||||
try {
|
||||
return (new FractionalRealEstateResource(FractionalRealEstate::where('slug',$slug)->first()))
|
||||
return (new FractionalRealEstateResource(FractionalRealEstate::where('slug', $slug)->first()))
|
||||
->response()
|
||||
->setStatusCode(200);
|
||||
} catch (\Exception $e) {
|
||||
|
||||
@@ -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) ? Product::find($this->products_id)->value('presentation') : null,
|
||||
'fact_sheet' => Product::find($this->products_id) ? Product::find($this->products_id)->value('fact_sheet') : null,
|
||||
'companies_id' => $this->companies_id,
|
||||
'slug' => $this->slug,
|
||||
'property_name_and_location' => $this->property_name_and_location,
|
||||
|
||||
@@ -4,10 +4,11 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class AlternativeInvestmentFund extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasFactory, SoftDeletes;
|
||||
|
||||
protected $hidden = ['created_at','updated_at'];
|
||||
|
||||
|
||||
@@ -4,10 +4,11 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class FractionalRealEstate extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasFactory, SoftDeletes;
|
||||
|
||||
protected $hidden = ['created_at','updated_at'];
|
||||
|
||||
|
||||
@@ -4,10 +4,11 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class Fund extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
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'];
|
||||
|
||||
|
||||
@@ -4,10 +4,11 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class IndianFinancialAssets extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasFactory, SoftDeletes;
|
||||
|
||||
protected $fillable = ['products_id','type','slug','product_name','investment_platform','counter_party','investment_date','amount_invested','total_gross_repaid_amount','tenure','principal_payment_frequency','interest_payment_frequency','next_repayment_due_date','maturity_date','next_repayment_amount','expected_irr'];
|
||||
}
|
||||
|
||||
@@ -4,10 +4,11 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class InvoiceDiscounting extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasFactory, SoftDeletes;
|
||||
|
||||
protected $hidden = ['created_at','updated_at'];
|
||||
|
||||
|
||||
@@ -4,10 +4,11 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class RealEstate extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasFactory, SoftDeletes;
|
||||
|
||||
protected $fillable = ['products_id','slug','property_name','property_location','project_type','current_status','price_per_sq_ft','booking_amount','price_range','total_price','transaction_type','project_code_or_rera_id','built_up_area','carpet_area','area_in_sq_ft','construction_status','launch_date','completed_in','total_units','unit_type','no_of_bedrooms','no_of_restrooms','no_of_floors','furnished_status','commencement_certificate','occupancy_certificate','total_towers','builder_details','landmarks','amenities','elevators','car_parking','electricity_status','fire_safety_measures','water_facility','price_negotiable','maintenance_fees','nearest_railway_metro_station','pre_leased','tenant_details','facilities_features','construction_age','remarks','location','country'];
|
||||
|
||||
|
||||
@@ -4,10 +4,11 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class StockFundsRealEstateExchange extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasFactory, SoftDeletes;
|
||||
|
||||
protected $fillable = ['products_id','name','type','slug','ticker','exchange','about','industry','market_cap','pe_ratio','dividend_yield','beta','provider','category','expense_ratio','month1_return','month6_return','year1_return','year3_return'];
|
||||
}
|
||||
|
||||
@@ -4,10 +4,11 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class VentureDebt extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasFactory, SoftDeletes;
|
||||
|
||||
protected $hidden = ['created_at','updated_at'];
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ function imagePath($path = null)
|
||||
$finalPath = "https://staging.jerichoalternatives.in/";
|
||||
}
|
||||
if (env('APP_ENV') == 'local') {
|
||||
$finalPath = "http://localhost/my-freeu/";
|
||||
$finalPath = "http://localhost/jericho_28_march/";
|
||||
}
|
||||
return $finalPath . $path;
|
||||
}
|
||||
|
||||
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 |
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -154,7 +154,7 @@
|
||||
{{-- </button> --}}
|
||||
</h6>
|
||||
<!--end::Radio-->
|
||||
<div id="dashboardOne" class="accordion-collapse collapse"
|
||||
<div id="dashboardOne" class="accordion-collapse collapse show"
|
||||
aria-labelledby="dashboard-accordion"
|
||||
data-bs-parent="#accordionExample">
|
||||
<div class="accordion-body">
|
||||
@@ -241,7 +241,7 @@
|
||||
{{-- </button> --}}
|
||||
</h6>
|
||||
<!--end::Radio-->
|
||||
<div id="manageCommissionOne" class="accordion-collapse collapse"
|
||||
<div id="manageCommissionOne" class="accordion-collapse collapse show"
|
||||
aria-labelledby="manageCommission-accordion"
|
||||
data-bs-parent="#accordionExample">
|
||||
<div class="accordion-body">
|
||||
@@ -349,7 +349,7 @@
|
||||
{{-- </button> --}}
|
||||
</h6>
|
||||
<!--end::Radio-->
|
||||
<div id="investorOne" class="accordion-collapse collapse"
|
||||
<div id="investorOne" class="accordion-collapse collapse show"
|
||||
aria-labelledby="investor-accordion"
|
||||
data-bs-parent="#accordionExample">
|
||||
<div class="accordion-body">
|
||||
@@ -475,7 +475,7 @@
|
||||
</div>
|
||||
</h6>
|
||||
<!--end::Radio-->
|
||||
<div id="primary_market" class="accordion-collapse collapse"
|
||||
<div id="primary_market" class="accordion-collapse collapse show"
|
||||
aria-labelledby="primary_market_accordion"
|
||||
data-bs-parent="#accordionExample">
|
||||
<div class="accordion-body">
|
||||
@@ -577,7 +577,7 @@
|
||||
</div>
|
||||
</h6>
|
||||
<!--end::Radio-->
|
||||
<div id="secondaryMarketThree" class="accordion-collapse collapse"
|
||||
<div id="secondaryMarketThree" class="accordion-collapse collapse show"
|
||||
aria-labelledby="secondaryMarket-accordion"
|
||||
data-bs-parent="#accordionExample">
|
||||
<div class="accordion-body">
|
||||
@@ -725,7 +725,7 @@
|
||||
</div>
|
||||
<!--end::Radio-->
|
||||
</h6>
|
||||
<div id="cmsPanelFour" class="accordion-collapse collapse"
|
||||
<div id="cmsPanelFour" class="accordion-collapse collapse show"
|
||||
aria-labelledby="cmsPanel-accordion"
|
||||
data-bs-parent="#accordionExample">
|
||||
<div class="accordion-body">
|
||||
@@ -922,7 +922,7 @@
|
||||
<!--end::Radio-->
|
||||
<h6>
|
||||
<div id="manageSubAdminFive"
|
||||
class="accordion-collapse collapse"
|
||||
class="accordion-collapse collapse show"
|
||||
aria-labelledby="manageSubAdmin-accordion"
|
||||
data-bs-parent="#accordionExample">
|
||||
<div class="accordion-body">
|
||||
@@ -1219,9 +1219,9 @@
|
||||
}
|
||||
} else {
|
||||
if ($('#dashboardOne').hasClass('show') == true) {
|
||||
$('#dashboardOne').removeClass('show');
|
||||
$('#dashboard').addClass('collapsed');
|
||||
$('#dashboard').prop('aria-expanded', false);
|
||||
// $('#dashboardOne').removeClass('show');
|
||||
// $('#dashboard').addClass('collapsed');
|
||||
// $('#dashboard').prop('aria-expanded', false);
|
||||
}
|
||||
unCheckCheckbox('#dashboard');
|
||||
}
|
||||
@@ -1237,9 +1237,9 @@
|
||||
}
|
||||
} else {
|
||||
if ($('#manageCommissionOne').hasClass('show') == true) {
|
||||
$('#manageCommissionOne').removeClass('show');
|
||||
$('#manageCommission').addClass('collapsed');
|
||||
$('#manageCommission').prop('aria-expanded', false);
|
||||
// $('#manageCommissionOne').removeClass('show');
|
||||
// $('#manageCommission').addClass('collapsed');
|
||||
// $('#manageCommission').prop('aria-expanded', false);
|
||||
}
|
||||
unCheckCheckbox('#manageCommission');
|
||||
}
|
||||
@@ -1256,9 +1256,9 @@
|
||||
}
|
||||
} else {
|
||||
if ($('#investorOne').hasClass('show') == true) {
|
||||
$('#investorOne').removeClass('show');
|
||||
$('#investor').addClass('collapsed');
|
||||
$('#investor').prop('aria-expanded', false);
|
||||
// $('#investorOne').removeClass('show');
|
||||
// $('#investor').addClass('collapsed');
|
||||
// $('#investor').prop('aria-expanded', false);
|
||||
}
|
||||
unCheckCheckbox('#investor');
|
||||
}
|
||||
@@ -1274,9 +1274,9 @@
|
||||
}
|
||||
} else {
|
||||
if ($('#primary_market').hasClass('show') == true) {
|
||||
$('#primary_market').removeClass('show');
|
||||
$('#primaryMarket').addClass('collapsed');
|
||||
$('#primaryMarket').prop('aria-expanded', false);
|
||||
// $('#primary_market').removeClass('show');
|
||||
// $('#primaryMarket').addClass('collapsed');
|
||||
// $('#primaryMarket').prop('aria-expanded', false);
|
||||
}
|
||||
unCheckCheckbox('#primaryMarket');
|
||||
}
|
||||
@@ -1293,9 +1293,9 @@
|
||||
}
|
||||
} else {
|
||||
if ($('#secondaryMarketThree').hasClass('show') == true) {
|
||||
$('#secondaryMarketThree').removeClass('show');
|
||||
$('#secondary_market').addClass('collapsed');
|
||||
$('#secondary_market').prop('aria-expanded', false);
|
||||
// $('#secondaryMarketThree').removeClass('show');
|
||||
// $('#secondary_market').addClass('collapsed');
|
||||
// $('#secondary_market').prop('aria-expanded', false);
|
||||
}
|
||||
unCheckCheckbox('#secondary_market');
|
||||
}
|
||||
@@ -1312,9 +1312,9 @@
|
||||
}
|
||||
} else {
|
||||
if ($('#cmsPanelFour').hasClass('show') == true) {
|
||||
$('#cmsPanelFour').removeClass('show');
|
||||
$('#cms_panel').addClass('collapsed');
|
||||
$('#cms_panel').prop('aria-expanded', false);
|
||||
// $('#cmsPanelFour').removeClass('show');
|
||||
// $('#cms_panel').addClass('collapsed');
|
||||
// $('#cms_panel').prop('aria-expanded', false);
|
||||
}
|
||||
unCheckCheckbox('#cms_panel');
|
||||
}
|
||||
@@ -1330,9 +1330,9 @@
|
||||
}
|
||||
} else {
|
||||
if ($('#manageSubAdminFive').hasClass('show') == true) {
|
||||
$('#manageSubAdminFive').removeClass('show');
|
||||
$('#manage_sub_admin').addClass('collapsed');
|
||||
$('#manage_sub_admin').prop('aria-expanded', false);
|
||||
// $('#manageSubAdminFive').removeClass('show');
|
||||
// $('#manage_sub_admin').addClass('collapsed');
|
||||
// $('#manage_sub_admin').prop('aria-expanded', false);
|
||||
}
|
||||
unCheckCheckbox('#manage_sub_admin');
|
||||
}
|
||||
|
||||
@@ -200,7 +200,8 @@
|
||||
// window.location.href='/dashboard';
|
||||
setTimeout(() => {
|
||||
// location.reload();
|
||||
window.location.href = "{{route('dashboard')}}";
|
||||
// window.location.href = "{{route('welcome-to-dashboard')}}";
|
||||
window.location.href = result.return_to_page;
|
||||
}, 1000);
|
||||
}
|
||||
if (result.status == 400) {
|
||||
|
||||
12
resources/views/Admin/welcome_to_dashboard.blade.php
Normal file
12
resources/views/Admin/welcome_to_dashboard.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@extends('Admin.layouts.master')
|
||||
@section('content')
|
||||
<div class="text-center">
|
||||
<div>
|
||||
<img src="{{ asset('public/assets/media/FrontendImages/menu-logo.png') }}" width="50%" height="90%"
|
||||
alt="logo">
|
||||
</div>
|
||||
<div>
|
||||
<h1>Welcome to dashboard</h1>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -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,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">
|
||||
|
||||
@@ -400,7 +400,7 @@
|
||||
@endif
|
||||
<img src="{{ asset(getCategoryIcons($pick->categories_id)) }}">
|
||||
|
||||
<p>{{ $pick->product_name }}-{{ $pick->categories_id }}</p>
|
||||
<p>{{ $pick->product_name }}</p>
|
||||
</div>
|
||||
<div class="middle-sec p-0">
|
||||
<p class="cate">Category: {{ $pick->category_name }}</p>
|
||||
|
||||
@@ -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">×</span>
|
||||
</button>
|
||||
</div> -->
|
||||
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div> -->
|
||||
<div class="modal-body">
|
||||
<h4 class="text-center">Currently, No Secondary Sale Opportunities Available.</h4>
|
||||
</div>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -858,6 +858,7 @@ Route::middleware([BackendAccess::class])->group(function () {
|
||||
Route::get("role_list", 'addPage')->name('role_list')->name('role_list');
|
||||
Route::post("view_role", 'store')->name('view_role')->name('view_role');
|
||||
Route::post("status", 'status')->name('status');
|
||||
Route::view('welcome-to-dashboard', 'Admin.welcome_to_dashboard')->name('welcome-to-dashboard');
|
||||
});
|
||||
// Manage Sub Admin middleware
|
||||
|
||||
|
||||
Reference in New Issue
Block a user