From c1376181814280a0e0dec862d7ea82ddee6a1051 Mon Sep 17 00:00:00 2001 From: Ritikesh yadav Date: Wed, 10 Apr 2024 11:41:39 +0530 Subject: [PATCH 1/8] minor chnages update --- .../FractionalRealEstateResource.php | 4 +-- .../Pages/marketplace/index.blade.php | 32 +++++++++---------- resources/views/Frontend/footer.blade.php | 6 ++-- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/app/Http/Resources/FractionalRealEstateResource.php b/app/Http/Resources/FractionalRealEstateResource.php index 24f5013..9c9dc63 100644 --- a/app/Http/Resources/FractionalRealEstateResource.php +++ b/app/Http/Resources/FractionalRealEstateResource.php @@ -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, diff --git a/resources/views/Frontend/Pages/marketplace/index.blade.php b/resources/views/Frontend/Pages/marketplace/index.blade.php index fecf553..306defd 100644 --- a/resources/views/Frontend/Pages/marketplace/index.blade.php +++ b/resources/views/Frontend/Pages/marketplace/index.blade.php @@ -168,7 +168,7 @@ @php($style = '') @endif {{ $data->discount }}% + style="{{ $style }}">{{ number_format((float)$data->discount, 2, '.', '') }}% @if ($data->bid > 0) @@ -181,7 +181,7 @@ @php($style = '') @endif {{ $data->bid }}% + style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}% {{ $data->discount }}% + style="{{ $style }}">{{ number_format((float)$data->discount, 2, '.', '') }}% @if ($data->bid > 0) @@ -260,7 +260,7 @@ @php($style = '') @endif {{ $data->bid }}% + style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}% {{ $data->discount }}% + style="{{ $style }}">{{ number_format((float)$data->discount, 2, '.', '') }}% @if ($data->bid > 0) @@ -332,7 +332,7 @@ @php($style = '') @endif {{ $data->bid }}% + style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}% {{ $data->discount }}% + style="{{ $style }}">{{ number_format((float) $data->discount, 2, '.', '') }}% @if ($data->bid > 0) @@ -467,7 +467,7 @@ @php($style = '') @endif {{ $data->bid }}% + style="{{ $style }}">{{ number_format((float)$data->bid, 2, '.', '') }}% {{ $data->discount }}% + style="{{ $style }}">{{ number_format((float) $data->discount, 2, '.', '') }}% @if ($data->bid > 0) @@ -538,7 +538,7 @@ @php($style = '') @endif {{ $data->bid }}% + style="{{ $style }}">{{ number_format((float) $data->bid, 2, '.', '') }}% {{ $data->discount }}% + style="{{ $style }}">{{ number_format((float) $data->discount, 2, '.', '') }}% @if ($data->bid > 0) @@ -610,7 +610,7 @@ @php($style = '') @endif {{ $data->bid }}% + style="{{ $style }}">{{ number_format((float) $data->bid, 2, '.', '') }}% + + --> diff --git a/resources/views/Frontend/footer.blade.php b/resources/views/Frontend/footer.blade.php index 54fad31..af6fa9e 100644 --- a/resources/views/Frontend/footer.blade.php +++ b/resources/views/Frontend/footer.blade.php @@ -116,7 +116,7 @@