@extends('site.layouts.master') @section('seoTags') @seoTags() @endsection @php $seo = SEO\Models\Page::where('path', URL::full())->first(); @endphp @if (empty($seo->title)) @section('title') @if (get_class($report) == 'App\Property') @lang('site.Property Report') @elseif(get_class($report) == 'App\Demand') @lang('site.Demand Report') @endif @endsection @endif @section('metatags') @if (!empty($seo)) @endif @endsection @section('content') @php if (get_class($report) == 'App\Property') { if (LaravelLocalization::getCurrentLocale() == 'ar') { $Ttype = $report->property_type->label_ar; } else { $Ttype = $report->property_type->label; } if ($report->site_property_for) { $Tfor = $report->site_property_for; } else { $Tfor = null; } if (!empty($report->location->compound)) { if (LaravelLocalization::getCurrentLocale() == 'ar' && $report->location->compound->compound_name_ar) { $Tcompound = $report->location->compound->compound_name_ar; } elseif ( LaravelLocalization::getCurrentLocale() == 'en' && $report->location->compound->compound_name_en ) { $Tcompound = $report->location->compound->compound_name_en; } else { $Tcompound = null; } } else { $Tcompound = null; } if ($Tcompound != null) { $in = __('site.In'); } else { $in = null; } $Tlocation = null; if ($Tcompound == null) { if ($report->location->district->district_name_en && $report->location->district->district_name_ar) { if (LaravelLocalization::getCurrentLocale() == 'ar') { $loc = 'district_name_ar'; } else { $loc = 'district_name_en'; } $Tlocation = $report->location->district->$loc; } elseif ( $report->location->city->city_name_en && $report->location->city->city_name_ar && $Tlocation == null ) { if (LaravelLocalization::getCurrentLocale() == 'ar') { $loc = 'city_name_ar'; } else { $loc = 'city_name_en'; } $Tlocation = $report->location->city->$loc; } elseif ( $report->location->governorate->governorate_name_en && $report->location->governorate->governorate_name_ar && $Tlocation == null ) { if (LaravelLocalization::getCurrentLocale() == 'ar') { $loc = 'governorate_name_ar'; } else { $loc = 'governorate_name_en'; } $Tlocation = $report->location->governorate->$loc; } else { $Tlocation = null; } } if ($report->options->no_of_bedrooms) { $Tbed = $report->options->no_of_bedrooms . ' ' . __('site.Bedrooms'); } else { $Tbed = null; } if ($report->options->sale_method) { $Tpayment = __('site.' . $report->options->sale_method); } else { $Tpayment = null; } $title = $Ttype . ' ' . $Tfor . ' ' . $in . ' ' . $Tcompound . ' ' . $Tlocation . ' ' . $Tbed . ' ' . $Tpayment; } elseif (get_class($report) == 'App\Demand') { $title = $report->metadata->title; } @endphp

@if (get_class($report) == 'App\Property') @lang('site.Property Report') @elseif(get_class($report) == 'App\Demand') @lang('site.Demand Report') @endif

{{ $title }} @if (get_class($report) == 'App\Property') @lang('site.Property') @elseif (get_class($report) == 'App\Demand') @lang('site.Demand') @endif #{{ $report->id }}

@if (get_class($report) == 'App\Property')
@if (isset($report->images[0]))
Property Image
@endif @if (isset($report->images[1]))
Property Image
@endif
@endif

@if (get_class($report) == 'App\Property') @lang('site.Property Listed On The Site') @elseif(get_class($report) == 'App\Demand') @lang('site.Demand Listed On The Site') @endif

{{ date('d-m-Y - g:i:s A', strtotime($report->created_at)) }}

@if (get_class($report) == 'App\Property') @lang('site.Property Viewed') @elseif(get_class($report) == 'App\Demand') @lang('site.Demand Viewed') @endif

{{ $report->views_count }} @lang('site.Time')

@lang('site.Inquire Emails Recevied')

{{ $emailsCount }} @lang('site.message')

@lang('site.Show Phone Clicks')

@if ($report->phone_clicks) {{ $report->phone_clicks }} @lang('site.Click') @endif

@lang('site.Referral')

{{ $referrals }}

@if (get_class($report) == 'App\Property')

@lang('site.Auction')

@if ($report->is_auction) @lang('site.Yes') @else @lang('site.No') @endif

@lang('site.Exchange')

@if ($report->is_exchange) @lang('site.Yes') @else @lang('site.No') @endif

@endif

@if (get_class($report) == 'App\Property') @lang('site.Property Price History') @elseif(get_class($report) == 'App\Demand') @lang('site.Demand Budget') @endif

@if (get_class($report) == 'App\Property') {{ $current_price }} @elseif (get_class($report) == 'App\Demand') {{ $report->site_price_from . ' - ' . $report->site_price_to }} @endif @if (!empty($reduced)) @if ($reduced->old_sale_price && str_contians($report->property_for, 'Sale')) {{ ' - ' + $reduced->old_sale_price }} @endif @if ($reduced->old_per_month && $report->property_for == 'Rent') {{ ' - ' + $reduced->old_per_month }} @endif @endif

@if (get_class($report) == 'App\Property')

@lang('site.Virtual Tour Views')

@if ($report->virtual_count) {{ $report->virtual_count }} @lang('site.view') @endif

@lang('site.Video Views')

@if ($report->virtual_count) {{ $report->virtual_count }} @lang('site.view') @endif
@endif

@lang('site.Share Count')

@if ($report->share_count) {{ $report->share_count }} @lang('site.share') @endif

@lang('site.matches_found_2')

@if ($matchCount) {{ $matchCount . ' ' }} @lang('site.with_average_percent') {{ ' % ' . $match_percentage }} @endif
@if (isset($report->activities[0]->sub_activity_id))
@foreach ($report->activities as $activity) @endforeach
@lang('site.Activity Name') @lang('site.Notes') @lang('site.Created')
{{ $activity->sub_activity_id }} {{ $activity->notes }} {{ date('d-m-Y - g:i:s A', strtotime($activity->created_at)) }}
@endif @if (isset($offers[0]))
@foreach ($report->activities as $activity) @endforeach
@lang('site.Name') @lang('site.offer_details') @lang('site.valid_till') @lang('site.accepted') @lang('site.pre_acceptance') @lang('site.rejected') @lang('site.under_consideration')
{{ $Offer->name }} {{ $Offer->offer_details }} {{ date('d-m-Y g:i:s A', strtotime($Offer->valid_till)) }} @if ($Offer->accepted == true) @lang('site.Yes') @else @lang('site.No') @endif @if ($Offer->pre_acceptance == true) @lang('site.Yes') @else @lang('site.No') @endif @if ($Offer->rejected == true) @lang('site.Yes') @else @lang('site.No') @endif @if ($Offer->under_consideration == true) @lang('site.Yes') @else @lang('site.No') @endif
@endif
@endsection