@extends('agent.layout') @includeIf('backend.partials.rtl_style') @section('content')
{{ __('Properties') }}
@includeIf('agent.partials.languages')
{{ __('Add Property') }}
@if (count($properties) == 0)

{{ __('NO PROPERTIY FOUND!') }}

@else
@foreach ($properties as $property) @endforeach
{{ __('Title') }} {{ __('Type') }} {{ __('City') }} {{ __('Approval Status') }} {{ __('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 }} @endif {{ $property->type }} {{ $property->cityContent->name }} @if ($property->approve_status == 1) {{ __('Approved') }} @elseif($property->approve_status == 0) {{ __('Pending') }} @else {{ __('Rejected') }} @endif
@csrf
@endif
@endsection