@extends('front.app_front') @section('content')

{{ $detail->listing_name }}

@if(!session()->get('currency_symbol')) ${{ number_format($detail->listing_price) }} @else {{ session()->get('currency_symbol') }}{{ number_format($detail->listing_price*session()->get('currency_value')) }} @endif
{{ $detail->rListingLocation->listing_location_name }}
@if($overall_rating == 5) @elseif($overall_rating == 4.5) @elseif($overall_rating == 4) @elseif($overall_rating == 3.5) @elseif($overall_rating == 3) @elseif($overall_rating == 2.5) @elseif($overall_rating == 2) @elseif($overall_rating == 1.5) @elseif($overall_rating == 1) @elseif($overall_rating == 0) @endif ({{ count($reviews) }} {{ REVIEWS }})
{{ $detail->listing_phone }}
{{ $detail->rListingBrand->listing_brand_name }} {{ ADD_TO_WISHLIST }} {{ SEND_MESSAGE }} {{ REPORT }}
@if(!$listing_social_items->isEmpty()) @endif

{{ DESCRIPTION }}

{!! clean($detail->listing_description) !!}

@if(!$listing_photos->isEmpty())

{{ PHOTOS }}

@foreach($listing_photos as $row) @endforeach
@endif @if(!$listing_videos->isEmpty())

{{ VIDEOS }}

@foreach($listing_videos as $row) @endforeach
@endif @if($detail->listing_map!='')

{{ LOCATION_MAP }}

{!! $detail->listing_map !!}
@endif

{{ FEATURES }}

@if($detail->listing_exterior_color != '') @endif @if($detail->listing_interior_color != '') @endif @if($detail->listing_cylinder != '') @endif @if($detail->listing_fuel_type != '') @endif @if($detail->listing_transmission != '') @endif @if($detail->listing_engine_capacity != '') @endif @if($detail->listing_vin != '') @endif @if($detail->listing_body != '') @endif @if($detail->listing_seat != '') @endif @if($detail->listing_wheel != '') @endif @if($detail->listing_door != '') @endif @if($detail->listing_mileage != '') @endif @if($detail->listing_model_year != '') @endif
{{ PRICE }} @if(!session()->get('currency_symbol')) ${{ number_format($detail->listing_price) }} @else {{ session()->get('currency_symbol') }}{{ number_format($detail->listing_price*session()->get('currency_value')) }} @endif
{{ TYPE }} {{ $detail->listing_type }}
{{ EXTERIOR_COLOR }} {{ $detail->listing_exterior_color }}
{{ INTERIOR_COLOR }} {{ $detail->listing_interior_color }}
{{ CYLINDER }} {{ $detail->listing_cylinder }}
{{ FUEL_TYPE }} {{ $detail->listing_fuel_type }}
{{ TRANSMISSION }} {{ $detail->listing_transmission }}
{{ ENGINE_CAPACITY }} {{ $detail->listing_engine_capacity }}
{{ VIN }} {{ $detail->listing_vin }}
{{ BODY }} {{ $detail->listing_body }}
{{ SEAT }} {{ $detail->listing_seat }}
{{ WHEEL }} {{ $detail->listing_wheel }}
{{ DOOR }} {{ $detail->listing_door }}
{{ MILEAGE }} {{ $detail->listing_mileage }}
{{ MODEL_YEAR }} {{ $detail->listing_model_year }}
@if(!$listing_amenities->isEmpty())

{{ AMENITIES }}

    @foreach($listing_amenities as $row) @php $res = DB::table('amenities')->where('id',$row->amenity_id)->first(); @endphp
  • {{ $res->amenity_name }}
  • @endforeach
@endif @if(!$listing_additional_features->isEmpty())

{{ ADDITIONAL_FEATURES }}

@foreach($listing_additional_features as $row) @endforeach
{{ $row->additional_feature_name }} {{ $row->additional_feature_value }}
@endif

{{ CONTACT_INFORMATION }}

@if($detail->listing_address!='') @endif @if($detail->listing_email!='') @endif @if($detail->listing_website!='') @endif
{{ ADDRESS }} {!! clean(nl2br($detail->listing_address)) !!}
{{ PHONE_NUMBER }} {!! clean(nl2br($detail->listing_phone)) !!}
{{ EMAIL_ADDRESS }} {!! clean(nl2br($detail->listing_email)) !!}
{{ WEBSITE }} {{ $detail->listing_website }}

{{ REVIEWS }} ({{ count($reviews) }})

@if($overall_rating == 5) @elseif($overall_rating == 4.5) @elseif($overall_rating == 4) @elseif($overall_rating == 3.5) @elseif($overall_rating == 3) @elseif($overall_rating == 2.5) @elseif($overall_rating == 2) @elseif($overall_rating == 1.5) @elseif($overall_rating == 1) @elseif($overall_rating == 0) @endif
@if(count($reviews) != 0) ({{ OVERALL }} {{ $overall_rating }} {{ OUT_OF_5 }}) @else ({{ OVERALL }} 0 {{ OUT_OF_5 }}) @endif
@if($reviews->isEmpty()) {{ NO_REVIEW_FOUND }} @else @foreach($reviews as $item) @if($item->agent_type=="Customer") @php $u_detail = DB::table('users')->where('id',$item->agent_id)->first(); @endphp @else @php $u_detail = DB::table('admins')->where('id',$item->agent_id)->first(); @endphp @endif
@if($u_detail->photo == '') @else @endif
{{ $u_detail->name }}
{{ \Carbon\Carbon::parse($u_detail->created_at)->format('d M, Y') }}
@if($item->rating == 5) @elseif($item->rating == 4.5) @elseif($item->rating == 4) @elseif($item->rating == 3.5) @elseif($item->rating == 3) @elseif($item->rating == 2.5) @elseif($item->rating == 2) @elseif($item->rating == 1.5) @elseif($item->rating == 1) @endif

{!! clean($item->review) !!}

@endforeach @endif

{{ WRITE_A_REVIEW }}

@if($current_auth_user_id == 0) @elseif($current_auth_user_id == $agent_detail->id)
{{ OWN_PRODUCT_REVIEW_STOP }}
@elseif($already_given == 1)
{{ ALREADY_GIVEN_REVIEW_STOP }}
@else
@csrf
@endif
@endsection