From dbe1dc97ce9489e5c6115dbe11d7b3991ab1fae1 Mon Sep 17 00:00:00 2001 From: fatihalp Date: Sat, 7 Mar 2026 20:21:11 +0300 Subject: [PATCH] Implement oc2 listing improvements --- .../views/themes/otoplus/show.blade.php | 138 +++++++++++--- resources/css/app.css | 176 ++++++++++++++++-- 2 files changed, 274 insertions(+), 40 deletions(-) diff --git a/Modules/Listing/resources/views/themes/otoplus/show.blade.php b/Modules/Listing/resources/views/themes/otoplus/show.blade.php index b99422819..5ddb80e4f 100644 --- a/Modules/Listing/resources/views/themes/otoplus/show.blade.php +++ b/Modules/Listing/resources/views/themes/otoplus/show.blade.php @@ -59,6 +59,7 @@ $reportEmail = config('mail.from.address', 'support@example.com'); $reportUrl = 'mailto:'.$reportEmail.'?subject='.rawurlencode('Report listing #'.$listing->getKey()); + $shareUrl = route('listings.show', $listing); $overviewItems = collect([ ['label' => 'Listing ID', 'value' => '#'.$listing->getKey()], @@ -108,26 +109,41 @@ @endif - @auth -
- @csrf - + + @auth + + @csrf + +
+ @else + - - - @else - - - - - - @endauth + + @endauth + @if($initialGalleryImage) @@ -171,13 +187,13 @@

{{ $listing->category?->name ?? 'Marketplace listing' }}

-

{{ $displayTitle }}

{{ $priceLabel }}
-

- {{ $locationLabel !== '' ? $locationLabel : 'Location not specified' }} - - {{ $postedAgo }} -

+

{{ $displayTitle }}

+
+ {{ $locationLabel !== '' ? $locationLabel : 'Location not specified' }} + {{ $publishedAt }} +
+

{{ $postedAgo }}

@@ -348,6 +364,56 @@
+
+
+
+ @if(! $listing->user) + + @elseif($canContactSeller) + @if($existingConversationId) + + Message + + @else +
+ @csrf + +
+ @endif + @elseif($isOwnListing) + + @else + Message + @endif + + @if($primaryContactHref) + {{ $primaryContactLabel }} + @else + + @endif +
+ + @if(! $listing->user) + + @elseif($canContactSeller) + @if($existingConversationId) + + Make offer + + @else +
+ @csrf + +
+ @endif + @elseif($isOwnListing) + + @else + Make offer + @endif +
+
+ @if(($relatedListings ?? collect())->isNotEmpty() || ($themePillCategories ?? collect())->isNotEmpty())