@extends($activeTheme.'layouts.app')
@section('title', ___('Favorite Listings'))
@section('active_menu', 'favorite')
@section('content')
{{ ___('My Favorite Listings') }}
@if (!$posts->count())
{{ ___('Nothing found') }}
@endif
@if ($posts->count())
@foreach ($posts as $post)
@php
$picture = explode(',' ,$post->images);
if($picture[0] != ""){
$main_picture = $picture[0];
}else{
$main_picture = "default.png";
}
@endphp
{{ $post->title }}
@if($post->featured == '1') {{ ___('Featured') }} @endif
@if($post->urgent == '1') {{ ___('Urgent') }} @endif
@if($post->highlight == '1') {{ ___('Highlight') }} @endif
@if($post->custom_field_data->count() > 0)
@foreach ($post->custom_field_data as $customdata)
@if($customdata->type == 'drop-down' || $customdata->type == 'radio-buttons')
@php
$option = get_customOptions_by_id($customdata->pivot->field_data);
@endphp
@if($option)
-
{{ $customdata->get_translated_title() }}:
{{ $option->get_translated_title() }}
@endif
@elseif($customdata->type == 'text-field' || $customdata->type == 'textarea')
-
{{ $customdata->get_translated_title() }}:
{{ $customdata->pivot->field_data }}
@endif
@endforeach
@else
-
{{ \Illuminate\Support\Str::limit(strip_tags($post->description), 110, $end='...') }}
@endif
@endforeach
@endif
@endsection