@extends('backend.layout') {{-- this style will be applied when the direction of language is right-to-left --}} @includeIf('backend.partials.rtl_style') @section('content')
| {{ __('Title') }} | {{ __('Post by') }} | {{ __('Type') }} | {{ __('City') }} | {{ __('Approval Status') }} | @if(request()->get('type') != 'service'){{ __('Featured') }} | {{ __('Highlight') }} | @endif{{ __('Status') }} | {{ __('Actions') }} | |
|---|---|---|---|---|---|---|---|---|---|
| @php $property_content = $property->getContent($language->id); if (is_null($property_content)) { $property_content = $property ->propertyContents() ->first(); } @endphp @if (!empty($property_content)) {{ strlen(@$property_content->title) > 100 ? mb_substr(@$property_content->title, 0, 100, 'utf-8') . '...' : @$property_content->title }} @if($property->is_highlighted) {{ __('Highlighted') }} @endif @endif | @if ($property->vendor_id != 0) {{-- {{ @$property->vendor->username }} --}} {{ @$property->vendor->username }} @else {{ __('Admin') }} @endif | @if(request()->get('type') != 'service') {{ $property->type }} @else {{ collect(vendorRoles())->where('value', $property->vendor->role)->value('name') ?? '-' }} @endif | {{ $property->cityContent?->name }} | @if(request()->get('type') != 'service') | @php $featuredProperty = $property ->featuredProperties() ->latest() ->first(); $pendingfeatured = false; $featuredExpired = false; $featured = false; if ( !empty($featuredProperty) && $featuredProperty->status == 0 && $featuredProperty->start_date == null && $featuredProperty->end_date == null ) { $pendingfeatured = true; } elseif ( !empty($featuredProperty) && $featuredProperty->status == 1 && $featuredProperty->start_date != null && $featuredProperty->end_date != null ) { $featuredExpired = Carbon\Carbon::now() ->timezone($settings->timezone) ->gte( \Carbon\Carbon::parse( $featuredProperty->end_date, ), ); } else { $featured = true; } @endphp @if (empty($featuredProperty) || $featuredExpired || $featuredProperty->payment_status == 'rejected') @elseif ($pendingfeatured) Pending @elseif(!empty($featuredProperty) && !$featuredExpired && !$pendingfeatured) @endif | @endif @if(request()->get('type') != 'service')@endif |
|