@extends('layouts.webview.template') @section('title','Sub Sales Listing') @if(!request()->has('status')) @section('header')

Sub Sales

@endsection @endif @section('body') @foreach($fetch as $data)
@if(request()->has('status')) @endif @if(request()->has('userid')) @endif @if($data->created_by==Auth::user()->id) @else @endif

Details

@php $image=$data->image; $imgg=json_decode($image,true); $count=count($imgg); @endphp @if(!empty($count))
@endif
  • {{$data->listing_header}}

    {{$data->property_type}}

    {{date("d/m/Y", strtotime($data->created_at))}}

  • @php if(!empty($data->price)) { echo 'RM '; $amount = $data->price; echo number_format($amount); } @endphp

    @php if(!empty($data->built_up)) { $amount1 = $data->built_up; setlocale (LC_MONETARY, "en_IN"); $amount1 = number_format($amount1); $amount1=explode('.',$amount1); echo $amount1[0]; echo ' Square Feet'; } @endphp @if(!empty($data->market_value) && $data->market_value>=0.01) @php $cheap=(1-($data->price/$data->market_value))*100; @endphp @else @php $cheap=0; @endphp @endif @if(!empty($data->market_value_type))

    @if($data->market_value_type=='Below Market Value') @if(!empty($cheap) && $cheap>=1) @endif @elseif($data->market_value_type=='Auction Price') @if(!empty($cheap) && $cheap>=1) @endif @endif
    @endif

Description

{!! $data->description !!}

@if((int)$data->longitute != 0 &&(int)$data->longitute != 0)
Property Location:
@endif @if(empty($hide))
Contact Info

@if((Auth::user()|| request()->userid) && empty($shared))
@endif @elseif(!empty(Auth::user()) && Auth::user()->id ==$user->id)
Contact Info
Listing Source
Only yourself can view listing source when login, other people wont see this


@else
Contact Info

@endif
@if(!empty(Auth::user()->id)) Boost Listing @endif




@endforeach
@endsection @section('bottom_icon','listing')